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:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private URL
private String
private XmlRpcRequestProcessor
Fields inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig
UTF8_ENCODING
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new client configuration with default settings. -
Method Summary
Modifier and TypeMethodDescriptioncloneMe()
Creates a clone of this client configuration.Returns the HTTP servers URL.Returns the user agent header to useReturns theXmlRpcRequestProcessor
being invoked.void
setServerURL
(URL pURL) Sets the servers URL.void
setUserAgent
(String pUserAgent) void
setXmlRpcServer
(XmlRpcRequestProcessor pServer) Returns theXmlRpcRequestProcessor
being 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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
serverURL
-
xmlRpcServer
-
userAgent
-
-
Constructor Details
-
XmlRpcClientConfigImpl
public XmlRpcClientConfigImpl()Creates a new client configuration with default settings.
-
-
Method Details
-
cloneMe
Creates a clone of this client configuration.- Returns:
- A clone of this configuration.
-
setServerURL
Sets the servers URL.- Parameters:
pURL
- Servers URL
-
getServerURL
Description copied from interface:XmlRpcHttpClientConfig
Returns the HTTP servers URL.- Specified by:
getServerURL
in interfaceXmlRpcHttpClientConfig
- Returns:
- XML-RPC servers URL; for example, this may be the URL of a servlet
-
setXmlRpcServer
Returns theXmlRpcRequestProcessor
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
Description copied from interface:XmlRpcRequestProcessorFactory
Returns theXmlRpcRequestProcessor
being invoked.- Specified by:
getXmlRpcServer
in 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
Returns the user agent header to use- Specified by:
getUserAgent
in interfaceXmlRpcHttpClientConfig
- Returns:
- the http user agent header to set when doing xmlrpc requests
-
setUserAgent
- Parameters:
pUserAgent
- the http user agent header to set when doing xmlrpc requests
-