| java.lang.Object | |
| ↳ | org.apache.http.HttpHost |
Holds all of the variables needed to describe an HTTP connection to a host. This includes remote host name, port and scheme.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DEFAULT_SCHEME_NAME | The default scheme is "http". | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| hostname | The host to use. | ||||||||||
| lcHostname | The lowercase host, for equals(Object) and hashCode(). |
||||||||||
| port | The port to use. | ||||||||||
| schemeName | The scheme | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
HttpHost, specifying all values. | |||||||||||
Creates a new
HttpHost, with default scheme. | |||||||||||
Creates a new
HttpHost, with default scheme and port. | |||||||||||
Copy constructor for
HttpHost. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the host name.
| |||||||||||
Returns the port.
| |||||||||||
Returns the scheme name.
| |||||||||||
Obtains the host string, without scheme prefix.
| |||||||||||
Return the host URI, as a string.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The port to use.
Creates a new HttpHost, specifying all values.
Constructor for HttpHost.
| hostname | the hostname (IP or DNS name) |
|---|---|
| port | the port number.
-1 indicates the scheme default port. |
| scheme | the name of the scheme.
null indicates the
default scheme
|
Creates a new HttpHost, with default scheme.
| hostname | the hostname (IP or DNS name) |
|---|---|
| port | the port number.
-1 indicates the scheme default port.
|
Creates a new HttpHost, with default scheme and port.
| hostname | the hostname (IP or DNS name) |
|---|
Copy constructor for HttpHost.
| httphost | the HTTP host to copy details from |
|---|
Returns the port.
-1 if not set
Obtains the host string, without scheme prefix.
localhost:8080