org.apache.xmlrpc.common

Interface XmlRpcHttpConfig

public interface XmlRpcHttpConfig extends XmlRpcStreamConfig

Interface of a configuration for HTTP requests.
Method Summary
StringgetBasicEncoding()
Returns the encoding being used to convert the String "username:password" into bytes.
booleanisContentLengthOptional()
Returns, whether a "Content-Length" header may be omitted.

Method Detail

getBasicEncoding

public String getBasicEncoding()
Returns the encoding being used to convert the String "username:password" into bytes.

Returns: Encoding being used for basic HTTP authentication credentials, or null, if the default encoding ({@link org.apache.xmlrpc.common.XmlRpcStreamRequestConfig#UTF8_ENCODING}) is being used.

isContentLengthOptional

public boolean isContentLengthOptional()
Returns, whether a "Content-Length" header may be omitted. The XML-RPC specification demands, that such a header be present.

Returns: True, if the content length may be omitted.

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