Package org.apache.xmlrpc.client
Class XmlRpcClientConfigImpl
- java.lang.Object
-
- org.apache.xmlrpc.XmlRpcConfigImpl
-
- org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl
-
- org.apache.xmlrpc.client.XmlRpcClientConfigImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,XmlRpcClientConfig,XmlRpcHttpClientConfig,XmlRpcLocalClientConfig,XmlRpcHttpConfig,XmlRpcHttpRequestConfig,XmlRpcRequestProcessorFactory,XmlRpcStreamConfig,XmlRpcStreamRequestConfig,XmlRpcConfig,XmlRpcRequestConfig
public class XmlRpcClientConfigImpl extends XmlRpcHttpRequestConfigImpl implements XmlRpcHttpClientConfig, XmlRpcLocalClientConfig, java.lang.Cloneable, java.io.Serializable
Default implementation of a clients request configuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate java.net.URLserverURLprivate java.lang.StringuserAgentprivate XmlRpcRequestProcessorxmlRpcServer-
Fields inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig
UTF8_ENCODING
-
-
Constructor Summary
Constructors Constructor Description XmlRpcClientConfigImpl()Creates a new client configuration with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlRpcClientConfigImplcloneMe()Creates a clone of this client configuration.java.net.URLgetServerURL()Returns the HTTP servers URL.java.lang.StringgetUserAgent()Returns the user agent header to useXmlRpcRequestProcessorgetXmlRpcServer()Returns theXmlRpcRequestProcessorbeing invoked.voidsetServerURL(java.net.URL pURL)Sets the servers URL.voidsetUserAgent(java.lang.String pUserAgent)voidsetXmlRpcServer(XmlRpcRequestProcessor pServer)Returns theXmlRpcRequestProcessorbeing invoked.-
Methods inherited from class org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl
getBasicPassword, getBasicUserName, getConnectionTimeout, getReplyTimeout, isEnabledForExceptions, isGzipCompressing, isGzipRequesting, setBasicPassword, setBasicUserName, setConnectionTimeout, setEnabledForExceptions, setGzipCompressing, setGzipRequesting, setReplyTimeout
-
Methods inherited from class org.apache.xmlrpc.XmlRpcConfigImpl
getBasicEncoding, getEncoding, getTimeZone, isContentLengthOptional, isEnabledForExtensions, setBasicEncoding, setContentLengthOptional, setEnabledForExtensions, setEncoding, setTimeZone
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.xmlrpc.XmlRpcConfig
getTimeZone, isEnabledForExtensions
-
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcHttpConfig
getBasicEncoding, isContentLengthOptional
-
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcHttpRequestConfig
getBasicPassword, getBasicUserName, getConnectionTimeout, getReplyTimeout
-
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig
getEncoding
-
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcStreamRequestConfig
isEnabledForExceptions, isGzipCompressing, isGzipRequesting
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
serverURL
private java.net.URL serverURL
-
xmlRpcServer
private XmlRpcRequestProcessor xmlRpcServer
-
userAgent
private java.lang.String userAgent
-
-
Method Detail
-
cloneMe
public XmlRpcClientConfigImpl cloneMe()
Creates a clone of this client configuration.- Returns:
- A clone of this configuration.
-
setServerURL
public void setServerURL(java.net.URL pURL)
Sets the servers URL.- Parameters:
pURL- Servers URL
-
getServerURL
public java.net.URL getServerURL()
Description copied from interface:XmlRpcHttpClientConfigReturns the HTTP servers URL.- Specified by:
getServerURLin interfaceXmlRpcHttpClientConfig- Returns:
- XML-RPC servers URL; for example, this may be the URL of a servlet
-
setXmlRpcServer
public void setXmlRpcServer(XmlRpcRequestProcessor pServer)
Returns theXmlRpcRequestProcessorbeing 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:XmlRpcRequestProcessorFactoryReturns theXmlRpcRequestProcessorbeing invoked.- Specified by:
getXmlRpcServerin interfaceXmlRpcRequestProcessorFactory- 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 java.lang.String getUserAgent()
Returns the user agent header to use- Specified by:
getUserAgentin interfaceXmlRpcHttpClientConfig- Returns:
- the http user agent header to set when doing xmlrpc requests
-
setUserAgent
public void setUserAgent(java.lang.String pUserAgent)
- Parameters:
pUserAgent- the http user agent header to set when doing xmlrpc requests
-
-