org.apache.hc.core5.net.Host
| Modifier and Type | Field and Description |
|---|---|
| private final InetAddress | |
| public static final URIScheme | DEFAULT_SCHEME
The default scheme is "http". |
| private final Host | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | HttpHost(final String
the name of the scheme.
scheme, final InetAddress null indicates the
default schemethe inet address. Can be address, final String nullthe hostname (IP or DNS name) hostname, final int the port number.
port)-1 indicates the scheme default port.Creates a new |
| public | HttpHost(final String
the name of the scheme.
scheme, final String null indicates the
default schemethe hostname (IP or DNS name) hostname, final int the port number.
port)-1 indicates the scheme default port.Creates |
| public | |
| public | HttpHost(final String
the name of the scheme.
scheme, final String null indicates the
default schemethe hostname (IP or DNS name) hostname)Creates |
| public | |
| public | HttpHost(final String
the name of the scheme.
scheme, final InetAddress null indicates the
default schemethe inet address. address, final int the port number.
port)-1 indicates the scheme default port.Creates |
| 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 | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpHost | |
| 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 | Returns: the host name (IP or DNS name)Implements org. |
| public int | Returns: the host port, or-1 if not setImplements org. |
| 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 |
|---|---|
| private final InetAddress address | |
| DEFAULT_SCHEME | back to summary |
|---|---|
| public static final URIScheme DEFAULT_SCHEME The default scheme is "http". | |
| host | back to summary |
|---|---|
| private final Host host | |
| schemeName | back to summary |
|---|---|
| private final String schemeName | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String scheme, final InetAddress address, final String hostname, final int port) Creates a new
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String scheme, final String hostname, final int port) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String hostname, final int port) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String scheme, final String hostname) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String hostname) Creates
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final String scheme, final InetAddress address, final int port) Creates
| |
| 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 String scheme, final NamedEndpoint namedEndpoint)
| |
| HttpHost | back to summary |
|---|---|
| public HttpHost(final URIAuthority authority)
Deprecated
| |
| create | back to summary |
|---|---|
| public static HttpHost create(final String s) throws URISyntaxException Creates
| |
| create | back to summary |
|---|---|
| public static HttpHost create(final URI uri) Creates an | |
| 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() Implements org. Returns the host name. | |
| getPort | back to summary |
|---|---|
| public int getPort() Implements org. 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.
| |