org.apache.commons.httpclient
public class HttpHost extends Object implements Cloneable
Since: 3.0
| Constructor Summary | |
|---|---|
| HttpHost(String hostname, int port, Protocol protocol)
Constructor for HttpHost.
| |
| HttpHost(String hostname, int port)
Constructor for HttpHost.
| |
| HttpHost(String hostname)
Constructor for HttpHost.
| |
| HttpHost(URI uri)
URI constructor for HttpHost.
| |
| HttpHost(HttpHost httphost)
Copy constructor for HttpHost
| |
| Method Summary | |
|---|---|
| Object | clone() |
| boolean | equals(Object o) |
| String | getHostName()
Returns the host name (IP or DNS name).
|
| int | getPort()
Returns the port.
|
| Protocol | getProtocol()
Returns the protocol. |
| int | hashCode() |
| String | toString() |
| String | toURI()
Return the host uri.
|
Parameters: hostname the hostname (IP or DNS name). Can be null. port the port. Value -1 can be used to set default protocol port protocol the protocol. Value null can be used to set default protocol
Parameters: hostname the hostname (IP or DNS name). Can be null. port the port. Value -1 can be used to set default protocol port
Parameters: hostname the hostname (IP or DNS name). Can be null.
Parameters: uri the URI.
Parameters: httphost the HTTP host to copy details from
Throws: CloneNotSupportedException
See Also: java.lang.Object#clone()
See Also: java.lang.Object#equals(java.lang.Object)
Returns: the host name (IP or DNS name), or null if not set
Returns: the host port, or -1 if not set
Returns: The protocol.
See Also: java.lang.Object#hashCode()
See Also: java.lang.Object#toString()
Returns: The host uri.