|
||||||||||
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 | |
Object |
clone()
|
boolean |
equals(Object o)
|
String |
getHost()
Returns the host. |
String |
getHostURL()
Return the host url. |
int |
getPort()
Returns the port. |
Protocol |
getProtocol()
Returns the protocol. |
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()
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,
int port,
Protocol protocol)
Sets this configuration's host infomation. |
void |
setHost(String host,
int port,
String protocol)
Set the host |
void |
setHost(URI uri)
Sets the protocol, host and port from the given URI. |
void |
setProxy(String proxyHost,
int proxyPort)
Set the proxy settings. |
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 Object clone()
clone
in class 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(String host, int port, String protocol)
host
- The host.port
- The portprotocol
- The protocol.public void setHost(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 String getHostURL()
public String getHost()
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 boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |