| java.lang.Object org.apache.http.HttpHost
HttpHost | final public class HttpHost implements Cloneable(Code) | | Holds all of the variables needed to describe an HTTP connection to a host.
This includes remote host name, port and scheme.
author: Michael Becke author: Mike Bowler author: Oleg Kalnichevski author: Laura Werner since: 4.0 |
DEFAULT_SCHEME_NAME | final public static String DEFAULT_SCHEME_NAME(Code) | | The default scheme is "http".
|
hostname | final protected String hostname(Code) | | The host to use.
|
port | final protected int port(Code) | | The port to use.
|
schemeName | final protected String schemeName(Code) | | The scheme
|
HttpHost | public HttpHost(String hostname, int port, String scheme)(Code) | | Creates a new
HttpHost HttpHost , specifying all values.
Constructor for HttpHost.
Parameters: hostname - the hostname (IP or DNS name) Parameters: port - the port number.-1 indicates the scheme default port. Parameters: scheme - the name of the scheme.null indicates theHttpHost.DEFAULT_SCHEME_NAME default scheme |
HttpHost | public HttpHost(String hostname, int port)(Code) | | Creates a new
HttpHost HttpHost , with default scheme.
Parameters: hostname - the hostname (IP or DNS name) Parameters: port - the port number.-1 indicates the scheme default port. |
HttpHost | public HttpHost(String hostname)(Code) | | Creates a new
HttpHost HttpHost , with default scheme and port.
Parameters: hostname - the hostname (IP or DNS name) |
HttpHost | public HttpHost(HttpHost httphost)(Code) | | Copy constructor for
HttpHost HttpHost .
Parameters: httphost - the HTTP host to copy details from |
getHostName | public String getHostName()(Code) | | Returns the host name.
the host name (IP or DNS name) |
getPort | public int getPort()(Code) | | Returns the port.
the host port, or -1 if not set |
getSchemeName | public String getSchemeName()(Code) | | Returns the scheme name.
the scheme name |
toHostString | public String toHostString()(Code) | | Obtains the host string, without scheme prefix.
the host string, for example localhost:8080 |
toURI | public String toURI()(Code) | | Return the host URI, as a string.
the host URI |
|
|