groovyx.net.ws.cxf
Class ConnectionTimeoutHelper

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

public class ConnectionTimeoutHelper
extends AbstractSettingHelper

Helper class to set the connection timeout for a request.

Since:
0.5
Author:
Tog

Field Summary
 
Fields inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
properties
 
Constructor Summary
ConnectionTimeoutHelper()
           
 
Method Summary
protected  void configureClientParameters(org.apache.cxf.endpoint.Client client)
          Sets the user and the password for the proxy authorization.
 void setConnectionTimeout(long timeout)
          Sets the value of the connectionTimeout property.
protected  void setDefaultProperties()
          Sets the default timeout value to 0 which means forever
 
Methods inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
enable, initialize, isConfigured, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionTimeoutHelper

public ConnectionTimeoutHelper()
Method Detail

setDefaultProperties

protected void setDefaultProperties()
Sets the default timeout value to 0 which means forever

Specified by:
setDefaultProperties in class AbstractSettingHelper

setConnectionTimeout

public void setConnectionTimeout(long timeout)
Sets the value of the connectionTimeout property.

Parameters:
timeout - value of the timeout in milliseconds

configureClientParameters

protected void configureClientParameters(org.apache.cxf.endpoint.Client client)
Sets the user and the password for the proxy authorization.

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