org.apache.xmlrpc

Class XmlRpcConfigImpl

public abstract class XmlRpcConfigImpl extends Object implements XmlRpcConfig, XmlRpcHttpConfig

Default implementation of {@link org.apache.xmlrpc.XmlRpcConfig}.
Method Summary
StringgetBasicEncoding()
StringgetEncoding()
TimeZonegetTimeZone()
booleanisContentLengthOptional()
booleanisEnabledForExtensions()
voidsetBasicEncoding(String pEncoding)
Sets the encoding for basic authentication.
voidsetContentLengthOptional(boolean pContentLengthOptional)
Sets, whether a "Content-Length" header may be omitted.
voidsetEnabledForExtensions(boolean pExtensions)
Sets, whether extensions are enabled.
voidsetEncoding(String pEncoding)
Sets the requests encoding.
voidsetTimeZone(TimeZone pTimeZone)
Returns the timezone, which is used to interpret date/time values.

Method Detail

getBasicEncoding

public String getBasicEncoding()

getEncoding

public String getEncoding()

getTimeZone

public TimeZone getTimeZone()

isContentLengthOptional

public boolean isContentLengthOptional()

isEnabledForExtensions

public boolean isEnabledForExtensions()

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 {@link TimeZone#getDefault()}.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.