Class ConnectHandler.UpstreamConnection

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.eclipse.jetty.io.Connection
    Enclosing class:
    ConnectHandler

    public class ConnectHandler.UpstreamConnection
    extends ProxyConnection
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      UpstreamConnection​(org.eclipse.jetty.io.EndPoint endPoint, java.util.concurrent.Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onOpen()  
      protected int read​(org.eclipse.jetty.io.EndPoint endPoint, java.nio.ByteBuffer buffer)  
      protected void write​(org.eclipse.jetty.io.EndPoint endPoint, java.nio.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, onReadTimeout, removeEventListener, setInputBufferSize, toString, tryFillInterested, tryFillInterested
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UpstreamConnection

        public UpstreamConnection​(org.eclipse.jetty.io.EndPoint endPoint,
                                  java.util.concurrent.Executor executor,
                                  org.eclipse.jetty.io.ByteBufferPool bufferPool,
                                  ConnectHandler.ConnectContext connectContext)
    • Method Detail

      • onOpen

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

        protected int read​(org.eclipse.jetty.io.EndPoint endPoint,
                           java.nio.ByteBuffer buffer)
                    throws java.io.IOException
        Specified by:
        read in class ProxyConnection
        Throws:
        java.io.IOException
      • write

        protected void write​(org.eclipse.jetty.io.EndPoint endPoint,
                             java.nio.ByteBuffer buffer,
                             org.eclipse.jetty.util.Callback callback)
        Specified by:
        write in class ProxyConnection