Class HttpConnection

java.lang.Object
org.eclipse.jetty.client.HttpConnection
All Implemented Interfaces:
Closeable, AutoCloseable, Connection, Attachable

@Deprecated(since="2021-05-27") public abstract class HttpConnection extends Object implements Connection, Attachable
Deprecated.
  • Method Details

    • getHttpClient

      public HttpClient getHttpClient()
      Deprecated.
    • getHttpDestination

      public HttpDestination getHttpDestination()
      Deprecated.
    • send

      public void send(Request request, Response.CompleteListener listener)
      Deprecated.
      Description copied from interface: Connection
      Sends a request with an associated response listener.

      Request.send(Response.CompleteListener) will eventually call this method to send the request. It is exposed to allow applications to send requests via unpooled connections.

      Specified by:
      send in interface Connection
      Parameters:
      request - the request to send
      listener - the response listener
    • onIdleTimeout

      public boolean onIdleTimeout(long idleTimeout)
      Deprecated.
    • setAttachment

      public void setAttachment(Object obj)
      Deprecated.
      Description copied from interface: Attachable
      Attaches the given object to this stream for later retrieval.
      Specified by:
      setAttachment in interface Attachable
      Parameters:
      obj - the object to attach to this instance
    • getAttachment

      public Object getAttachment()
      Deprecated.
      Specified by:
      getAttachment in interface Attachable
      Returns:
      the object attached to this instance
      See Also:
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object