Top Description Fields Constructors Methods
org.apache.http.conn

public Class HttpInetSocketAddress

extends InetSocketAddress
Class Inheritance
Annotations
@Deprecated
Imports
java.net.InetAddress, .InetSocketAddress, org.apache.http.HttpHost, org.apache.http.util.Args

Deprecated

(4.3)

Extended InetSocketAddress implementation that also provides access to the original HttpHost used to resolve the address.
Since
4.2 no longer used.

Field Summary

Modifier and TypeField and Description
private final HttpHost
private static final long

Constructor Summary

AccessConstructor and Description
public
HttpInetSocketAddress(final HttpHost httphost, final InetAddress addr, final int port)

Method Summary

Modifier and TypeMethod and Description
public HttpHost
public String
toString()

Overrides java.net.InetSocketAddress.toString.

Constructs a string representation of this InetSocketAddress.
Inherited from java.net.InetSocketAddress:
createUnresolvedequalsgetAddressgetHostNamegetHostStringgetPorthashCodeisUnresolved

Field Detail

httphostback to summary
private final HttpHost httphost
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.net.InetSocketAddress.serialVersionUID.

Constructor Detail

HttpInetSocketAddressback to summary
public HttpInetSocketAddress(final HttpHost httphost, final InetAddress addr, final int port)

Method Detail

getHttpHostback to summary
public HttpHost getHttpHost()
toStringback to summary
public String toString()

Overrides java.net.InetSocketAddress.toString.

Doc from java.net.InetSocketAddress.toString.

Constructs a string representation of this InetSocketAddress. This string is constructed by calling InetAddress#toString() on the InetAddress and concatenating the port number (with a colon).

If the address is an IPv6 address, the IPv6 literal is enclosed in square brackets, for example: "localhost/[0:0:0:0:0:0:0:1]:80". If the address is unresolved, <unresolved> is displayed in place of the address literal, for example "foo/<unresolved>:80".

To retrieve a string representation of the hostname or the address, use getHostString(), rather than parsing the string returned by this toString() method.

Returns:String

a string representation of this object.

Annotations
@Override