Top Description Fields Constructors Methods
org.apache.hc.core5.http

public abstract Class EndpointDetails

extends Object
implements HttpConnectionMetrics
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.HttpConnectionMetrics
Known Direct Subclasses
org.apache.hc.core5.http.impl.BasicEndpointDetails
Imports
java.net.SocketAddress, org.apache.hc.core5.net.InetAddressUtils, org.apache.hc.core5.util.Timeout

HTTP connection endpoint details.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final SocketAddress
private final SocketAddress
private final Timeout

Constructor Summary

AccessConstructor and Description
protected
EndpointDetails(final SocketAddress remoteAddress, final SocketAddress localAddress, final Timeout socketTimeout)

Method Summary

Modifier and TypeMethod and Description
public SocketAddress
public abstract long
getReceivedBytesCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getReceivedBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.
public SocketAddress
public abstract long
getRequestCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getRequestCount.

Gets the number of requests transferred over the connection, 0 if not available.
public abstract long
getResponseCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getResponseCount.

Gets the number of responses transferred over the connection, 0 if not available.
public abstract long
getSentBytesCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getSentBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.
public Timeout

Returns:

the socket timeout.
getSocketTimeout
()

Gets the socket timeout.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

localAddressback to summary
private final SocketAddress localAddress
remoteAddressback to summary
private final SocketAddress remoteAddress
socketTimeoutback to summary
private final Timeout socketTimeout

Constructor Detail

EndpointDetailsback to summary
protected EndpointDetails(final SocketAddress remoteAddress, final SocketAddress localAddress, final Timeout socketTimeout)

Method Detail

getLocalAddressback to summary
public SocketAddress getLocalAddress()
getReceivedBytesCountback to summary
public abstract long getReceivedBytesCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getReceivedBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.

Annotations
@Override
getRemoteAddressback to summary
public SocketAddress getRemoteAddress()
getRequestCountback to summary
public abstract long getRequestCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getRequestCount.

Gets the number of requests transferred over the connection, 0 if not available.

Annotations
@Override
getResponseCountback to summary
public abstract long getResponseCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getResponseCount.

Gets the number of responses transferred over the connection, 0 if not available.

Annotations
@Override
getSentBytesCountback to summary
public abstract long getSentBytesCount()

Redeclares org.apache.hc.core5.http.HttpConnectionMetrics.getSentBytesCount.

Gets the number of bytes transferred over the connection, 0 if not available.

Annotations
@Override
getSocketTimeoutback to summary
public Timeout getSocketTimeout()

Gets the socket timeout.

Returns:Timeout

the socket timeout.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override