Class EndpointDetails

java.lang.Object
org.apache.hc.core5.http.EndpointDetails
All Implemented Interfaces:
HttpConnectionMetrics
Direct Known Subclasses:
BasicEndpointDetails

public abstract class EndpointDetails extends Object implements HttpConnectionMetrics
HTTP connection endpoint details.
Since:
5.0
  • Field Details

    • remoteAddress

      private final SocketAddress remoteAddress
    • localAddress

      private final SocketAddress localAddress
    • socketTimeout

      private final Timeout socketTimeout
  • Constructor Details

  • Method Details

    • getRemoteAddress

      public SocketAddress getRemoteAddress()
    • getLocalAddress

      public SocketAddress getLocalAddress()
    • getRequestCount

      public abstract long getRequestCount()
      Gets the number of requests transferred over the connection, 0 if not available.
      Specified by:
      getRequestCount in interface HttpConnectionMetrics
    • getResponseCount

      public abstract long getResponseCount()
      Gets the number of responses transferred over the connection, 0 if not available.
      Specified by:
      getResponseCount in interface HttpConnectionMetrics
    • getSentBytesCount

      public abstract long getSentBytesCount()
      Gets the number of bytes transferred over the connection, 0 if not available.
      Specified by:
      getSentBytesCount in interface HttpConnectionMetrics
    • getReceivedBytesCount

      public abstract long getReceivedBytesCount()
      Gets the number of bytes transferred over the connection, 0 if not available.
      Specified by:
      getReceivedBytesCount in interface HttpConnectionMetrics
    • getSocketTimeout

      public Timeout getSocketTimeout()
      Gets the socket timeout.
      Returns:
      the socket timeout.
    • toString

      public String toString()
      Overrides:
      toString in class Object