| java.lang.Object org.apache.harmony.luni.internal.net.www.protocol.http.HttpConfiguration
HttpConfiguration | public class HttpConfiguration (Code) | | An HttpConfiguration contains all the details needed to create an http connection
and to compare whether or not two connections are the same. An HttpConfiguration
will either consist of a Proxy or a port number (int )
and host name (String ) or all three, depending on whether or not a
Proxy is used and the type of Proxy it is.
HttpConfiguration is used as a key by HttpConnectionManager
to retrieve HttpConnection s from its connection pool.
|
HttpConfiguration | public HttpConfiguration(URI uri)(Code) | | |
getHostName | public String getHostName()(Code) | | Returns the host name for this configuration, or null if an http Proxy is used
|
getHostPort | public int getHostPort()(Code) | | Returns the port for this configuration, or 0 if an http Proxy is used
|
getProxy | public Proxy getProxy()(Code) | | Returns the Proxy for this configuration, or null if a proxy
is not used
|
hashCode | public int hashCode()(Code) | | |
usesProxy | public boolean usesProxy()(Code) | | Returns true if this configuration uses a Proxy
|
|
|