| java.lang.Object org.apache.commons.httpclient.HttpHost
All known Subclasses: org.apache.commons.httpclient.ProxyHost,
Constructor Summary | |
public | HttpHost(String hostname, int port, Protocol protocol) Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name). | public | HttpHost(String hostname, int port) Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name). | public | HttpHost(String hostname) Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name). | public | HttpHost(URI uri) URI constructor for HttpHost. | public | HttpHost(HttpHost httphost) |
HttpHost | public HttpHost(String hostname, int port, Protocol protocol)(Code) | | Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name). Can be null . Parameters: port - the port. Value -1 can be used to set default protocol port Parameters: protocol - the protocol. Value null can be used to set default protocol |
HttpHost | public HttpHost(String hostname, int port)(Code) | | Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name). Can be null . Parameters: port - the port. Value -1 can be used to set default protocol port |
HttpHost | public HttpHost(String hostname)(Code) | | Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name). Can be null . |
HttpHost | public HttpHost(URI uri) throws URIException(Code) | | URI constructor for HttpHost.
Parameters: uri - the URI. |
HttpHost | public HttpHost(HttpHost httphost)(Code) | | Copy constructor for HttpHost
Parameters: httphost - the HTTP host to copy details from |
getHostName | public String getHostName()(Code) | | Returns the host name (IP or DNS name).
the host name (IP or DNS name), or null if not set |
getPort | public int getPort()(Code) | | Returns the port.
the host port, or -1 if not set |
getProtocol | public Protocol getProtocol()(Code) | | Returns the protocol.
The protocol. |
toURI | public String toURI()(Code) | | Return the host uri.
The host uri. |
|
|