org.apache.xmlrpc

Class XmlRpcConfigImpl

Implemented Interfaces:
XmlRpcConfig, XmlRpcHttpConfig, XmlRpcStreamConfig
Known Direct Subclasses:
XmlRpcHttpRequestConfigImpl, XmlRpcServerConfigImpl

public abstract class XmlRpcConfigImpl
extends java.lang.Object
implements XmlRpcConfig, XmlRpcHttpConfig

Default implementation of XmlRpcConfig.

Fields inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig

UTF8_ENCODING

Method Summary

String
getBasicEncoding()
String
getEncoding()
TimeZone
getTimeZone()
boolean
isContentLengthOptional()
boolean
isEnabledForExtensions()
void
setBasicEncoding(String pEncoding)
Sets the encoding for basic authentication.
void
setContentLengthOptional(boolean pContentLengthOptional)
Sets, whether a "Content-Length" header may be omitted.
void
setEnabledForExtensions(boolean pExtensions)
Sets, whether extensions are enabled.
void
setEncoding(String pEncoding)
Sets the requests encoding.
void
setTimeZone(TimeZone pTimeZone)
Returns the timezone, which is used to interpret date/time values.

Method Details

getBasicEncoding

public String getBasicEncoding()
Specified by:
getBasicEncoding in interface XmlRpcHttpConfig

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface XmlRpcStreamConfig

getTimeZone

public TimeZone getTimeZone()
Specified by:
getTimeZone in interface XmlRpcConfig

isContentLengthOptional

public boolean isContentLengthOptional()
Specified by:
isContentLengthOptional in interface XmlRpcHttpConfig

isEnabledForExtensions

public boolean isEnabledForExtensions()
Specified by:
isEnabledForExtensions in interface XmlRpcConfig

setBasicEncoding

public void setBasicEncoding(String pEncoding)
Sets the encoding for basic authentication.
Parameters:
pEncoding - The encoding; may be null, in which case UTF-8 is choosen.

setContentLengthOptional

public void setContentLengthOptional(boolean pContentLengthOptional)
Sets, whether a "Content-Length" header may be omitted. The XML-RPC specification demands, that such a header be present.
Parameters:
pContentLengthOptional - True, if the content length may be omitted.

setEnabledForExtensions

public void setEnabledForExtensions(boolean pExtensions)
Sets, whether extensions are enabled. By default, the client or server is strictly compliant to the XML-RPC specification and extensions are disabled.
Parameters:
pExtensions - True to enable extensions, false otherwise.

setEncoding

public void setEncoding(String pEncoding)
Sets the requests encoding.
Parameters:
pEncoding - The requests encoding or null (default UTF-8).

setTimeZone

public void setTimeZone(TimeZone pTimeZone)
Returns the timezone, which is used to interpret date/time values. Defaults to TimeZone.getDefault().

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.