Class HttpConnection

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

public abstract class HttpConnection extends Object implements IConnection, org.eclipse.jetty.util.Attachable
  • Constructor Details

  • Method Details

    • getHttpClient

      public HttpClient getHttpClient()
    • getHttpDestination

      public HttpDestination getHttpDestination()
    • getHttpChannels

      protected abstract Iterator<HttpChannel> getHttpChannels()
    • send

      public void send(Request request, Response.CompleteListener listener)
      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
    • send

      protected SendFailure send(HttpChannel channel, HttpExchange exchange)
    • normalizeRequest

      protected void normalizeRequest(HttpRequest request)
    • onIdleTimeout

      public boolean onIdleTimeout(long idleTimeout, Throwable failure)
    • setAttachment

      public void setAttachment(Object obj)
      Specified by:
      setAttachment in interface org.eclipse.jetty.util.Attachable
    • getAttachment

      public Object getAttachment()
      Specified by:
      getAttachment in interface org.eclipse.jetty.util.Attachable
    • destroy

      protected void destroy()
    • toString

      public String toString()
      Overrides:
      toString in class Object