Class ConnectHandler.UpstreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.server.handler.ConnectHandler.UpstreamConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.io.Connection,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
ConnectHandler
public class ConnectHandler.UpstreamConnection
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.UpgradeToNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Constructor Summary
ConstructorsConstructorDescriptionUpstreamConnection(org.eclipse.jetty.io.EndPoint endPoint, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidorg.eclipse.jetty.io.ByteBufferPoolorg.eclipse.jetty.io.ConnectionvoidvoidonOpen()protected intread(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer) voidsetConnection(org.eclipse.jetty.server.handler.ConnectHandler.TunnelConnection connection) protected voidwrite(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, getInvocationType, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeEventListener, setInputBufferSize, toString, tryFillInterested
-
Constructor Details
-
UpstreamConnection
public UpstreamConnection(org.eclipse.jetty.io.EndPoint endPoint, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext)
-
-
Method Details
-
onOpen
public void onOpen()- Specified by:
onOpenin interfaceorg.eclipse.jetty.io.Connection- Overrides:
onOpenin classorg.eclipse.jetty.io.AbstractConnection
-
read
- Throws:
IOException
-
write
protected void write(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer, org.eclipse.jetty.util.Callback callback) -
getByteBufferPool
public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool() -
getContext
-
getConnection
public org.eclipse.jetty.io.Connection getConnection() -
setConnection
public void setConnection(org.eclipse.jetty.server.handler.ConnectHandler.TunnelConnection connection) -
onFillable
public void onFillable()- Specified by:
onFillablein classorg.eclipse.jetty.io.AbstractConnection
-
close
-
toConnectionString
- Overrides:
toConnectionStringin classorg.eclipse.jetty.io.AbstractConnection
-