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 longprivate URLprivate Stringprivate XmlRpcRequestProcessorFields inherited from interface 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 theXmlRpcRequestProcessorbeing invoked.voidsetServerURL(URL pURL) Sets the servers URL.voidsetUserAgent(String pUserAgent) voidsetXmlRpcServer(XmlRpcRequestProcessor pServer) Returns theXmlRpcRequestProcessorbeing invoked.Methods inherited from class XmlRpcHttpRequestConfigImpl
getBasicPassword, getBasicUserName, getConnectionTimeout, getReplyTimeout, isEnabledForExceptions, isGzipCompressing, isGzipRequesting, setBasicPassword, setBasicUserName, setConnectionTimeout, setEnabledForExceptions, setGzipCompressing, setGzipRequesting, setReplyTimeoutMethods inherited from class XmlRpcConfigImpl
getBasicEncoding, getEncoding, getTimeZone, isContentLengthOptional, isEnabledForExtensions, setBasicEncoding, setContentLengthOptional, setEnabledForExtensions, setEncoding, setTimeZoneMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XmlRpcConfig
getTimeZone, isEnabledForExtensionsMethods inherited from interface XmlRpcHttpConfig
getBasicEncoding, isContentLengthOptionalMethods inherited from interface XmlRpcHttpRequestConfig
getBasicPassword, getBasicUserName, getConnectionTimeout, getReplyTimeoutMethods inherited from interface XmlRpcStreamConfig
getEncodingMethods inherited from interface 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
-
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
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
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
Returns the user agent header to use- Specified by:
getUserAgentin 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
-