org.apache.xmlrpc.common

Interface XmlRpcHttpRequestConfig

public interface XmlRpcHttpRequestConfig extends XmlRpcStreamRequestConfig, XmlRpcHttpConfig

Extension of {@link org.apache.xmlrpc.client.XmlRpcClientConfig} for HTTP based transport. Provides details like server URL, user credentials, and so on.
Method Summary
StringgetBasicPassword()
Returns the password being used for basic HTTP authentication.
StringgetBasicUserName()
Returns the user name being used for basic HTTP authentication.
intgetConnectionTimeout()
Return the connection timeout in milliseconds
intgetReplyTimeout()
Return the reply timeout in milliseconds

Method Detail

getBasicPassword

public String getBasicPassword()
Returns the password being used for basic HTTP authentication.

Returns: Password or null, if no basic HTTP authentication is beind used.

Throws: IllegalStateException A user name is configured, but no password.

getBasicUserName

public String getBasicUserName()
Returns the user name being used for basic HTTP authentication.

Returns: User name or null, if no basic HTTP authentication is being used.

getConnectionTimeout

public int getConnectionTimeout()
Return the connection timeout in milliseconds

Returns: connection timeout in milliseconds or 0 if no set

getReplyTimeout

public int getReplyTimeout()
Return the reply timeout in milliseconds

Returns: reply timeout in milliseconds or 0 if no set

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