|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.conn.HostConfiguration
public class HostConfiguration
Provides configuration data for connecting to a host. That is the host to connect to plus a proxy to use or a local IP address to select one of several network interfaces. Instances of this class are immutable. Instances of derived classes should be immutable, too.
Field Summary | |
---|---|
static HostConfiguration |
ANY_HOST_CONFIGURATION
Constant representing a configuration for any host. |
Constructor Summary | |
---|---|
HostConfiguration(org.apache.http.HttpHost host,
org.apache.http.HttpHost proxy,
java.net.InetAddress laddr)
Creates a new host configuration. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
org.apache.http.HttpHost |
getHost()
Returns the target host. |
java.net.InetAddress |
getLocalAddress()
Return the local address to be used when creating connections. |
org.apache.http.HttpHost |
getProxyHost()
Returns the proxy to use. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HostConfiguration ANY_HOST_CONFIGURATION
null
to
refer to a default value that applies to "any" host.
Constructor Detail |
---|
public HostConfiguration(org.apache.http.HttpHost host, org.apache.http.HttpHost proxy, java.net.InetAddress laddr)
host
- the target host to connect toproxy
- the proxy host to use, or
null
for a direct connectionladdr
- the local IP address to use, or
null
for anyMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public org.apache.http.HttpHost getHost()
null
if this is
ANY_HOST_CONFIGURATION
public org.apache.http.HttpHost getProxyHost()
null
if not setpublic java.net.InetAddress getLocalAddress()
null
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |