|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.HostConfiguration
Constructor Summary | |
HostConfiguration()
Constructor for HostConfiguration. |
|
HostConfiguration(HostConfiguration hostConfiguration)
Copy constructor for HostConfiguration |
Method Summary | |
Object |
clone()
|
boolean |
equals(Object o)
|
String |
getHost()
Returns the host. |
String |
getHostURL()
Return the host url. |
InetAddress |
getLocalAddress()
Return the local address to be used when creating connections. |
int |
getPort()
Returns the port. |
Protocol |
getProtocol()
Returns the protocol. |
String |
getProxyHost()
Returns the proxyHost. |
int |
getProxyPort()
Returns the proxyPort. |
String |
getVirtualHost()
Returns the virtual host. |
int |
hashCode()
|
boolean |
hostEquals(HttpConnection connection)
Tests if the host configuration equals the configuraiton set on the connection. |
boolean |
isHostSet()
Return true if the host is set. |
boolean |
isProxySet()
|
boolean |
proxyEquals(HttpConnection connection)
Tests if the proxy configuration equals the configuraiton set on the connection. |
void |
setHost(String host)
Set the given host. |
void |
setHost(String host,
int port)
Set the given host and port. |
void |
setHost(String host,
int port,
Protocol protocol)
Set the given host, port and protocol. |
void |
setHost(String host,
int port,
String protocol)
Set the given host, port and protocol |
void |
setHost(String host,
String virtualHost,
int port,
Protocol protocol)
Set the given host, virtual host, port and protocol. |
void |
setHost(URI uri)
Sets the protocol, host and port from the given URI. |
void |
setLocalAddress(InetAddress localAddress)
Set the local address to be used when creating connections. |
void |
setProxy(String proxyHost,
int proxyPort)
Set the proxy settings. |
String |
toString()
|
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HostConfiguration()
public HostConfiguration(HostConfiguration hostConfiguration)
hostConfiguration
- the hostConfiguration to copyMethod Detail |
public Object clone()
Object.clone()
public String toString()
Object.toString()
public boolean hostEquals(HttpConnection connection)
connection
- the connection to test againstproxyEquals(HttpConnection)
public boolean proxyEquals(HttpConnection connection)
connection
- the connection to test againsthostEquals(HttpConnection)
public boolean isHostSet()
public void setHost(String host, int port, String protocol)
host
- the host, IP or DNS nameport
- The portprotocol
- The protocol.public void setHost(String host, String virtualHost, int port, Protocol protocol)
host
- the host, IP or DNS namevirtualHost
- the virtual host nameport
- the host port or -1 to use protocol defaultprotocol
- the protocolpublic void setHost(String host, int port, Protocol protocol)
host
- the host, IP or DNS nameport
- The portprotocol
- the protocolpublic void setHost(String host, int port)
host
- the host, IP or DNS nameport
- The portpublic void setHost(String host)
host
- The host.public void setHost(URI uri)
uri
- the URI.public String getHostURL()
public String getHost()
public String getVirtualHost()
public int getPort()
public Protocol getProtocol()
public boolean isProxySet()
public void setProxy(String proxyHost, int proxyPort)
proxyHost
- The proxy hostproxyPort
- The proxy portpublic String getProxyHost()
public int getProxyPort()
public void setLocalAddress(InetAddress localAddress)
localAddress
- the local address to usepublic InetAddress getLocalAddress()
public boolean equals(Object o)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |