public abstract class XmlRpcConfigImpl extends Object implements XmlRpcConfig, XmlRpcHttpConfig
XmlRpcConfig
.UTF8_ENCODING
Constructor and Description |
---|
XmlRpcConfigImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getBasicEncoding()
Returns the encoding being used to convert the String "username:password"
into bytes.
|
String |
getEncoding()
Returns the encoding being used for data encoding, when writing
to a stream.
|
TimeZone |
getTimeZone()
Returns the timezone, which is used to interpret date/time
values.
|
boolean |
isContentLengthOptional()
Returns, whether a "Content-Length" header may be
omitted.
|
boolean |
isEnabledForExtensions()
Returns, whether support for extensions are enabled.
|
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.
|
public boolean isEnabledForExtensions()
XmlRpcConfig
isEnabledForExtensions
in interface XmlRpcConfig
public void setEnabledForExtensions(boolean pExtensions)
pExtensions
- True to enable extensions, false otherwise.public void setBasicEncoding(String pEncoding)
pEncoding
- The encoding; may be null, in which case
UTF-8 is choosen.public String getBasicEncoding()
XmlRpcHttpConfig
getBasicEncoding
in interface XmlRpcHttpConfig
XmlRpcStreamConfig.UTF8_ENCODING
)
is being used.public void setEncoding(String pEncoding)
pEncoding
- The requests encoding or null (default
UTF-8).public String getEncoding()
XmlRpcStreamConfig
getEncoding
in interface XmlRpcStreamConfig
XmlRpcStreamConfig.UTF8_ENCODING
is being used.public boolean isContentLengthOptional()
XmlRpcHttpConfig
isContentLengthOptional
in interface XmlRpcHttpConfig
public void setContentLengthOptional(boolean pContentLengthOptional)
pContentLengthOptional
- True, if the content length may be omitted.public TimeZone getTimeZone()
XmlRpcConfig
TimeZone.getDefault()
.getTimeZone
in interface XmlRpcConfig
public void setTimeZone(TimeZone pTimeZone)
TimeZone.getDefault()
.Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.