groovyx.net.ws.cxf
Class SSLHelper

java.lang.Object
  extended by groovyx.net.ws.cxf.AbstractSettingHelper
      extended by groovyx.net.ws.cxf.SSLHelper

public class SSLHelper
extends AbstractSettingHelper

Helper class to configure a ssl connection.

Since:
0.5
Author:
Tog
See Also:
SettingConstants.HTTPS_KEYSTORE, SettingConstants.HTTPS_KEYSTORE_PASS, SettingConstants.HTTPS_TRUSTSTORE, SettingConstants.HTTPS_TRUSTSTORE_PASS

Field Summary
 
Fields inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
properties
 
Constructor Summary
SSLHelper()
          Default constructor
 
Method Summary
 void configureClientParameters(org.apache.cxf.endpoint.Client client)
          Sets the settings for a ssl connection.
 java.net.URL getLocalWsdlUrl(java.net.URL url)
          Copy the WSDL locally and returns the local url
 void initialize()
          Configures the store managers by reading the set properties and sets the settings for a ssl connection.
protected  void setDefaultProperties()
          Reads the system properties and puts the value of SettingConstants.HTTPS_KEYSTORE, SettingConstants.HTTPS_KEYSTORE_PASS, SettingConstants.HTTPS_TRUSTSTORE and SettingConstants.HTTPS_TRUSTSTORE_PASS into the property-map.
 
Methods inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
enable, isConfigured, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLHelper

public SSLHelper()
Default constructor

Method Detail

setDefaultProperties

protected void setDefaultProperties()
Reads the system properties and puts the value of SettingConstants.HTTPS_KEYSTORE, SettingConstants.HTTPS_KEYSTORE_PASS, SettingConstants.HTTPS_TRUSTSTORE and SettingConstants.HTTPS_TRUSTSTORE_PASS into the property-map.

Specified by:
setDefaultProperties in class AbstractSettingHelper

initialize

public void initialize()
Configures the store managers by reading the set properties and sets the settings for a ssl connection.

Overrides:
initialize in class AbstractSettingHelper

configureClientParameters

public void configureClientParameters(org.apache.cxf.endpoint.Client client)
Sets the settings for a ssl connection.

Specified by:
configureClientParameters in class AbstractSettingHelper
Parameters:
client - The CXF client to configure

getLocalWsdlUrl

public java.net.URL getLocalWsdlUrl(java.net.URL url)
Copy the WSDL locally and returns the local url

Parameters:
url - The actual wsdl url
Returns:
The local wsdl file url.