groovyx.net.ws.cxf
Class BasicAuthenticationHelper

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

public class BasicAuthenticationHelper
extends AbstractSettingHelper

Helper class to configure the http basic authentication

Since:
0.5
Author:
Dennis Bayer, Tog
See Also:
SettingConstants.HTTP_USER, SettingConstants.HTTP_PASSWORD

Field Summary
 
Fields inherited from class groovyx.net.ws.cxf.AbstractSettingHelper
properties
 
Constructor Summary
BasicAuthenticationHelper()
           
 
Method Summary
protected  void configureClientParameters(org.apache.cxf.endpoint.Client client)
          Sets the user and password for the http conduit.
 void setBasicAuthentication(java.lang.String user, java.lang.String password)
          Sets the basic authentication properties defined in SettingConstants
protected  void setDefaultProperties()
          Reads the system properties and puts the value of SettingConstants.HTTP_USER and SettingConstants.HTTP_PASSWORD into the property-map.
 
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

BasicAuthenticationHelper

public BasicAuthenticationHelper()
Method Detail

setBasicAuthentication

public void setBasicAuthentication(java.lang.String user,
                                   java.lang.String password)
Sets the basic authentication properties defined in SettingConstants

Parameters:
user - The username to use to connect to the proxy
password - The password.
See Also:
SettingConstants.HTTP_USER, SettingConstants.HTTP_PASSWORD

setDefaultProperties

protected void setDefaultProperties()
Reads the system properties and puts the value of SettingConstants.HTTP_USER and SettingConstants.HTTP_PASSWORD into the property-map.

Specified by:
setDefaultProperties in class AbstractSettingHelper

configureClientParameters

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

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