| Modifier and Type | Field and Description |
|---|---|
| protected final InetAddress | |
| public static final String | DEFAULT_SCHEME_NAME
The default scheme is "http". |
| protected final String | hostname
The host to use. |
| protected final String | |
| protected final int | port
The port to use, defaults to -1 if not set. |
| protected final String | schemeName
The scheme (lowercased) |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | HttpHost(final String
the hostname (IP or DNS name) hostname, final int the port number.
port, final String -1 indicates the scheme default port.the name of the scheme.
scheme)null indicates the
default schemeCreates |
| public | |
| public | |
| public | HttpHost(final InetAddress
the inet address. address, final int the port number.
port, final String -1 indicates the scheme default port.the name of the scheme.
scheme)null indicates the
default schemeCreates |
| public | HttpHost(final InetAddress
the inet address. address, final String the hostname (IP or DNS name) hostname, final int the port number.
port, final String -1 indicates the scheme default port.the name of the scheme.
scheme)null indicates the
default schemeCreates a new |
| public | HttpHost(final InetAddress
the inet address. address, final int the port number.
port)-1 indicates the scheme default port.Creates |
| public | HttpHost(final InetAddress
the inet address. address)Creates |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public static HttpHost | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public InetAddress | Returns: the inet addressReturns the inet address if explicitly set by a constructor,
|
| public String | |
| public int | |
| public String | |
| public int | |
| public String | Returns: the host string, for examplelocalhost:8080Obtains the host string, without scheme prefix. |
| public String | |
| public String |
| address | back to summary |
|---|---|
| protected final InetAddress address | |
| DEFAULT_SCHEME_NAME | back to summary |
|---|---|
| public static final String DEFAULT_SCHEME_NAME The default scheme is "http". | |
| hostname | back to summary |
|---|---|
| protected final String hostname The host to use. | |
| lcHostname | back to summary |
|---|---|
| protected final String lcHostname | |
| port | back to summary |
|---|---|
| protected final int port The port to use, defaults to -1 if not set. | |
| schemeName | back to summary |
|---|---|
| protected final String schemeName The scheme (lowercased) | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String hostname, final int port, final String scheme) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String hostname, final int port) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String hostname) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final InetAddress address, final int port, final String scheme) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final InetAddress address, final String hostname, final int port, final String scheme) Creates a new
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final InetAddress address, final int port) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final InetAddress address) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final HttpHost httphost) Copy constructor for
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| create | back to summary |
|---|---|
| public static HttpHost create(final String s) Creates
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAddress | back to summary |
|---|---|
| public InetAddress getAddress() Returns the inet address if explicitly set by a constructor,
| |
| getHostName | back to summary |
|---|---|
| public String getHostName() Returns the host name.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Returns the port.
| |
| getSchemeName | back to summary |
|---|---|
| public String getSchemeName() Returns the scheme name.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toHostString | back to summary |
|---|---|
| public String toHostString() Obtains the host string, without scheme prefix.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toURI | back to summary |
|---|---|
| public String toURI() Return the host URI, as a string.
| |