Package org.eclipse.jetty.server.handler
Class ConnectHandler.UpstreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.io.AbstractConnection.NonBlocking
org.eclipse.jetty.server.handler.ConnectHandler.UpstreamConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,Connection
- Enclosing class:
- ConnectHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.io.AbstractConnection
AbstractConnection.NonBlockingNested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.Tunnel, Connection.UpgradeFrom, Connection.UpgradeTo -
Constructor Summary
ConstructorsConstructorDescriptionUpstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidCallback method invoked when the endpoint is ready to be read.voidonOpen()Callback method invoked when this connection is opened.protected intread(EndPoint endPoint, ByteBuffer buffer) voidsetConnection(org.eclipse.jetty.server.handler.ConnectHandler.TunnelConnection connection) protected voidwrite(EndPoint endPoint, ByteBuffer buffer, Callback callback) Methods inherited from class org.eclipse.jetty.io.AbstractConnection.NonBlocking
fillInterestedMethods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeEventListener, setInputBufferSize, toString, tryFillInterested
-
Constructor Details
-
UpstreamConnection
public UpstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext)
-
-
Method Details
-
onOpen
public void onOpen()Description copied from interface:ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpenin interfaceConnection- Overrides:
onOpenin classAbstractConnection
-
read
- Throws:
IOException
-
write
-
getByteBufferPool
-
getContext
-
getConnection
-
setConnection
public void setConnection(org.eclipse.jetty.server.handler.ConnectHandler.TunnelConnection connection) -
onFillable
public void onFillable()Description copied from class:AbstractConnectionCallback method invoked when the endpoint is ready to be read.
- Specified by:
onFillablein classAbstractConnection- See Also:
-
close
-
toConnectionString
- Overrides:
toConnectionStringin classAbstractConnection
-