Class HttpConnectionOverHTTP

java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.client.http.HttpConnectionOverHTTP
All Implemented Interfaces:
Closeable, AutoCloseable, Connection, IConnection, org.eclipse.jetty.io.Connection, org.eclipse.jetty.io.Connection.UpgradeFrom, org.eclipse.jetty.util.Attachable, org.eclipse.jetty.util.thread.Sweeper.Sweepable

public class HttpConnectionOverHTTP extends org.eclipse.jetty.io.AbstractConnection implements IConnection, org.eclipse.jetty.io.Connection.UpgradeFrom, org.eclipse.jetty.util.thread.Sweeper.Sweepable, org.eclipse.jetty.util.Attachable
  • Constructor Details

    • HttpConnectionOverHTTP

      public HttpConnectionOverHTTP(org.eclipse.jetty.io.EndPoint endPoint, Map<String,Object> context)
    • HttpConnectionOverHTTP

      public HttpConnectionOverHTTP(org.eclipse.jetty.io.EndPoint endPoint, HttpDestination destination, org.eclipse.jetty.util.Promise<Connection> promise)
  • Method Details

    • newHttpChannel

      protected HttpChannelOverHTTP newHttpChannel()
    • getHttpChannel

      public HttpChannelOverHTTP getHttpChannel()
    • getHttpDestination

      public HttpDestination getHttpDestination()
    • getBytesIn

      public long getBytesIn()
      Specified by:
      getBytesIn in interface org.eclipse.jetty.io.Connection
      Overrides:
      getBytesIn in class org.eclipse.jetty.io.AbstractConnection
    • addBytesIn

      protected void addBytesIn(long bytesIn)
    • getBytesOut

      public long getBytesOut()
      Specified by:
      getBytesOut in interface org.eclipse.jetty.io.Connection
      Overrides:
      getBytesOut in class org.eclipse.jetty.io.AbstractConnection
    • addBytesOut

      protected void addBytesOut(long bytesOut)
    • getMessagesIn

      public long getMessagesIn()
      Specified by:
      getMessagesIn in interface org.eclipse.jetty.io.Connection
      Overrides:
      getMessagesIn in class org.eclipse.jetty.io.AbstractConnection
    • getMessagesOut

      public long getMessagesOut()
      Specified by:
      getMessagesOut in interface org.eclipse.jetty.io.Connection
      Overrides:
      getMessagesOut in class org.eclipse.jetty.io.AbstractConnection
    • 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

      public SendFailure send(HttpExchange exchange)
      Specified by:
      send in interface IConnection
    • onOpen

      public void onOpen()
      Specified by:
      onOpen in interface org.eclipse.jetty.io.Connection
      Overrides:
      onOpen in class org.eclipse.jetty.io.AbstractConnection
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface Connection
      Returns:
      whether this connection has been closed
      See Also:
    • 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
    • onIdleExpired

      public boolean onIdleExpired()
      Specified by:
      onIdleExpired in interface org.eclipse.jetty.io.Connection
      Overrides:
      onIdleExpired in class org.eclipse.jetty.io.AbstractConnection
    • onIdleTimeout

      protected boolean onIdleTimeout(long idleTimeout)
    • onFillable

      public void onFillable()
      Specified by:
      onFillable in class org.eclipse.jetty.io.AbstractConnection
    • onUpgradeFrom

      public ByteBuffer onUpgradeFrom()
      Specified by:
      onUpgradeFrom in interface org.eclipse.jetty.io.Connection.UpgradeFrom
    • release

      public void release()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Connection
      Specified by:
      close in interface org.eclipse.jetty.io.Connection
      Overrides:
      close in class org.eclipse.jetty.io.AbstractConnection
    • close

      protected void close(Throwable failure)
    • abort

      protected boolean abort(Throwable failure)
    • sweep

      public boolean sweep()
      Specified by:
      sweep in interface org.eclipse.jetty.util.thread.Sweeper.Sweepable
    • remove

      public void remove()
    • toConnectionString

      public String toConnectionString()
      Overrides:
      toConnectionString in class org.eclipse.jetty.io.AbstractConnection