Class ProxyConnection

java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.proxy.ProxyConnection
All Implemented Interfaces:
Closeable, AutoCloseable, org.eclipse.jetty.io.Connection
Direct Known Subclasses:
ConnectHandler.DownstreamConnection, ConnectHandler.UpstreamConnection

public abstract class ProxyConnection extends org.eclipse.jetty.io.AbstractConnection
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection

    org.eclipse.jetty.io.Connection.Listener, org.eclipse.jetty.io.Connection.UpgradeFrom, org.eclipse.jetty.io.Connection.UpgradeTo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ProxyConnection(org.eclipse.jetty.io.EndPoint endp, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConcurrentMap<String,Object> context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    close(Throwable failure)
     
    org.eclipse.jetty.io.ByteBufferPool
     
    org.eclipse.jetty.io.Connection
     
     
    void
     
    protected abstract int
    read(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer)
     
    void
     
     
    protected abstract void
    write(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)
     

    Methods inherited from class org.eclipse.jetty.io.AbstractConnection

    addEventListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onOpen, onReadTimeout, removeEventListener, setInputBufferSize, toString, tryFillInterested

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

    • ProxyConnection

      protected ProxyConnection(org.eclipse.jetty.io.EndPoint endp, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConcurrentMap<String,Object> context)
  • Method Details

    • getByteBufferPool

      public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
    • getContext

      public ConcurrentMap<String,Object> getContext()
    • getConnection

      public org.eclipse.jetty.io.Connection getConnection()
    • setConnection

      public void setConnection(ProxyConnection connection)
    • onFillable

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

      protected abstract int read(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer) throws IOException
      Throws:
      IOException
    • write

      protected abstract void write(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)
    • close

      protected void close(Throwable failure)
    • toConnectionString

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