Package org.eclipse.jetty.server.handler
Class ConnectHandler.UpstreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.server.handler.ConnectHandler.UpstreamConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connection
,Invocable
- Enclosing class:
- ConnectHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP
-
Constructor Summary
ConstructorDescriptionUpstreamConnection
(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
Callback method invoked when the endpoint is ready to be read.void
onOpen()
Callback method invoked when this connection is opened.protected int
read
(EndPoint endPoint, ByteBuffer buffer) void
setConnection
(org.eclipse.jetty.server.handler.ConnectHandler.TunnelConnection connection) protected void
write
(EndPoint endPoint, ByteBuffer buffer, Callback callback) Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getInvocationType, 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:Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpen
in interfaceConnection
- Overrides:
onOpen
in 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:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
-
close
-
toConnectionString
- Overrides:
toConnectionString
in classAbstractConnection
-