Class XmlRpcClientConfigImpl

All Implemented Interfaces:
Serializable, Cloneable, XmlRpcClientConfig, XmlRpcHttpClientConfig, XmlRpcLocalClientConfig, XmlRpcHttpConfig, XmlRpcHttpRequestConfig, XmlRpcRequestProcessorFactory, XmlRpcStreamConfig, XmlRpcStreamRequestConfig, XmlRpcConfig, XmlRpcRequestConfig

public class XmlRpcClientConfigImpl extends XmlRpcHttpRequestConfigImpl implements XmlRpcHttpClientConfig, XmlRpcLocalClientConfig, Cloneable, Serializable
Default implementation of a clients request configuration.
See Also:
  • Field Details

  • Constructor Details

    • XmlRpcClientConfigImpl

      public XmlRpcClientConfigImpl()
      Creates a new client configuration with default settings.
  • Method Details

    • cloneMe

      public XmlRpcClientConfigImpl cloneMe()
      Creates a clone of this client configuration.
      Returns:
      A clone of this configuration.
    • setServerURL

      public void setServerURL(URL pURL)
      Sets the servers URL.
      Parameters:
      pURL - Servers URL
    • getServerURL

      public URL getServerURL()
      Description copied from interface: XmlRpcHttpClientConfig
      Returns the HTTP servers URL.
      Specified by:
      getServerURL in interface XmlRpcHttpClientConfig
      Returns:
      XML-RPC servers URL; for example, this may be the URL of a servlet
    • setXmlRpcServer

      public void setXmlRpcServer(XmlRpcRequestProcessor pServer)
      Returns the XmlRpcRequestProcessor being invoked.
      Parameters:
      pServer - Server object being invoked. This will typically be a singleton instance, but could as well create a new instance with any call.
    • getXmlRpcServer

      public XmlRpcRequestProcessor getXmlRpcServer()
      Description copied from interface: XmlRpcRequestProcessorFactory
      Returns the XmlRpcRequestProcessor being invoked.
      Specified by:
      getXmlRpcServer in interface XmlRpcRequestProcessorFactory
      Returns:
      Server object being invoked. This will typically be a singleton instance, but could as well create a new instance with any call.
    • getUserAgent

      public String getUserAgent()
      Returns the user agent header to use
      Specified by:
      getUserAgent in interface XmlRpcHttpClientConfig
      Returns:
      the http user agent header to set when doing xmlrpc requests
    • setUserAgent

      public void setUserAgent(String pUserAgent)
      Parameters:
      pUserAgent - the http user agent header to set when doing xmlrpc requests