groovyx.net.ws.cxf
Class AbstractSettingHelper

java.lang.Object
  extended by groovyx.net.ws.cxf.AbstractSettingHelper
Direct Known Subclasses:
BasicAuthenticationHelper, ConnectionTimeoutHelper, MtomHelper, ProxyHelper, SoapHelper, SSLHelper

public abstract class AbstractSettingHelper
extends java.lang.Object

Abstract helper class to set configuration properties of a Client

Since:
0.5
Author:
Dennis Bayer

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> properties
          Stores the properties.
 
Constructor Summary
AbstractSettingHelper()
           
 
Method Summary
protected abstract  void configureClientParameters(org.apache.cxf.endpoint.Client client)
          Sets the default properties.
 void enable(org.apache.cxf.endpoint.Client client)
          Enables the settings according to the values in the propertymap.
 void initialize()
          Initializes the setting.
protected  boolean isConfigured()
           
protected abstract  void setDefaultProperties()
          Sets the default properties.
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Sets the properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected java.util.Map<java.lang.String,java.lang.String> properties
Stores the properties.

Constructor Detail

AbstractSettingHelper

public AbstractSettingHelper()
Method Detail

initialize

public void initialize()
Initializes the setting. If no properties were set externally, the default properties are used.


isConfigured

protected boolean isConfigured()
Returns:
true if the properties are already set, otherwise false.

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties.

Parameters:
properties - The map containing the properties.

setDefaultProperties

protected abstract void setDefaultProperties()
Sets the default properties.


configureClientParameters

protected abstract void configureClientParameters(org.apache.cxf.endpoint.Client client)
Sets the default properties.

Parameters:
client - The CXF client to configure

enable

public void enable(org.apache.cxf.endpoint.Client client)
Enables the settings according to the values in the propertymap.

Parameters:
client - The CXF client on which to enable the properties