|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHost()
Returns the host. |
java.lang.String |
getHostURL()
|
int |
getPort()
Returns the port. |
Protocol |
getProtocol()
Returns the protocol. |
java.lang.String |
getProxyHost()
Returns the proxyHost. |
int |
getProxyPort()
Returns the proxyPort. |
int |
hashCode()
|
boolean |
hostEquals(HttpConnection connection)
Tests if the host configuration equals the configuraiton set on the connection. |
boolean |
isHostSet()
|
boolean |
isProxySet()
|
boolean |
proxyEquals(HttpConnection connection)
Tests if the proxy configuration equals the configuraiton set on the connection. |
void |
setHost(java.lang.String host,
int port,
Protocol protocol)
Sets this configuration's host infomation. |
void |
setHost(java.lang.String host,
int port,
java.lang.String protocol)
|
void |
setHost(URI uri)
Sets the protocol, host and port from the given URI. |
void |
setProxy(java.lang.String proxyHost,
int proxyPort)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HostConfiguration()
public HostConfiguration(HostConfiguration hostConfiguration)
hostConfiguration
- the hostConfiguration to copyMethod Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public boolean hostEquals(HttpConnection connection)
connection
- the connection to test against
proxyEquals(HttpConnection)
public boolean proxyEquals(HttpConnection connection)
connection
- the connection to test against
hostEquals(HttpConnection)
public boolean isHostSet()
public void setHost(java.lang.String host, int port, java.lang.String protocol)
public void setHost(java.lang.String host, int port, Protocol protocol)
host
- the host, IP or DNS nameport
- the host port or -1 to use protocol defaultprotocol
- the protocolpublic void setHost(URI uri)
uri
- the URI.public java.lang.String getHostURL()
public java.lang.String getHost()
public int getPort()
public Protocol getProtocol()
public boolean isProxySet()
public void setProxy(java.lang.String proxyHost, int proxyPort)
public java.lang.String getProxyHost()
public int getProxyPort()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |