org.apache.xmlrpc.common
Class XmlRpcHttpRequestConfigImpl
- XmlRpcConfig, XmlRpcHttpConfig, XmlRpcHttpRequestConfig, XmlRpcRequestConfig, XmlRpcStreamConfig, XmlRpcStreamRequestConfig
public class XmlRpcHttpRequestConfigImpl
Default implementation of a request configuration.
String | getBasicPassword() - Returns the password being used for basic HTTP authentication.
|
String | getBasicUserName() - Returns the user name being used for basic HTTP authentication.
|
int | getConnectionTimeout() - Return the connection timeout in milliseconds
|
int | getReplyTimeout() - Return the reply timeout in milliseconds
|
boolean | isEnabledForExceptions() - Returns, whether the response should contain a "faultCause" element
in case of errors.
|
boolean | isGzipCompressing() - Returns, whether the request stream is being compressed.
|
boolean | isGzipRequesting() - Returns, whether compression is requested for the response stream.
|
void | setBasicPassword(String pPassword) - Sets the password for basic authentication.
|
void | setBasicUserName(String pUser) - Sets the user name for basic authentication.
|
void | setConnectionTimeout(int pTimeout) - Set the connection timeout in milliseconds.
|
void | setEnabledForExceptions(boolean pEnabledForExceptions) - Sets, whether the response should contain a "faultCause" element
in case of errors.
|
void | setGzipCompressing(boolean pCompressing) - Sets, whether gzip compression is being used for
transmitting the request.
|
void | setGzipRequesting(boolean pRequesting) - Sets, whether gzip compression is requested for the
response.
|
void | setReplyTimeout(int pTimeout) - Set the reply timeout in milliseconds.
|
getBasicPassword
public String getBasicPassword()
Returns the password being used for basic HTTP authentication.
- getBasicPassword in interface XmlRpcHttpRequestConfig
- Password or null, if no basic HTTP authentication is beind used.
getBasicUserName
public String getBasicUserName()
Returns the user name being used for basic HTTP authentication.
- getBasicUserName in interface XmlRpcHttpRequestConfig
- User name or null, if no basic HTTP authentication is being used.
isEnabledForExceptions
public boolean isEnabledForExceptions()
Returns, whether the response should contain a "faultCause" element
in case of errors. The "faultCause" is an exception, which the
server has trapped and written into a byte stream as a serializable
object.
- isEnabledForExceptions in interface XmlRpcStreamRequestConfig
isGzipCompressing
public boolean isGzipCompressing()
Returns, whether the request stream is being compressed. Note,
that the response stream may still be uncompressed.
- isGzipCompressing in interface XmlRpcStreamRequestConfig
- Whether to use Gzip compression or not. Defaults to false.
setBasicPassword
public void setBasicPassword(String pPassword)
Sets the password for basic authentication.
pPassword
- The password.
setBasicUserName
public void setBasicUserName(String pUser)
Sets the user name for basic authentication.
setConnectionTimeout
public void setConnectionTimeout(int pTimeout)
Set the connection timeout in milliseconds.
pTimeout
- connection timeout, 0 to disable it
setEnabledForExceptions
public void setEnabledForExceptions(boolean pEnabledForExceptions)
Sets, whether the response should contain a "faultCause" element
in case of errors. The "faultCause" is an exception, which the
server has trapped and written into a byte stream as a serializable
object.
setGzipCompressing
public void setGzipCompressing(boolean pCompressing)
Sets, whether gzip compression is being used for
transmitting the request.
pCompressing
- True for enabling gzip compression,
false otherwise.
setGzipRequesting
public void setGzipRequesting(boolean pRequesting)
Sets, whether gzip compression is requested for the
response.
pRequesting
- True for requesting gzip compression,
false otherwise.
setReplyTimeout
public void setReplyTimeout(int pTimeout)
Set the reply timeout in milliseconds.
pTimeout
- reply timeout, 0 to disable it
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.