Class ProxyConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.proxy.ProxyConnection
- All Implemented Interfaces:
Closeable, AutoCloseable, Connection
- Direct Known Subclasses:
ConnectHandler.DownstreamConnection, ConnectHandler.UpstreamConnection
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBufferPoolprivate Connectionprivate final ConcurrentMap<String, Object> protected static final Loggerprivate final IteratingCallback -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProxyConnection(EndPoint endp, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionvoidCallback method invoked when the endpoint is ready to be read.protected abstract intread(EndPoint endPoint, ByteBuffer buffer) voidsetConnection(Connection connection) protected abstract voidwrite(EndPoint endPoint, ByteBuffer buffer, Callback callback) Methods inherited from class AbstractConnection
addListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onOpen, onReadTimeout, removeListener, setInputBufferSize, toString, tryFillInterested, tryFillInterested
-
Field Details
-
LOG
-
pipe
-
bufferPool
-
context
-
connection
-
-
Constructor Details
-
ProxyConnection
protected ProxyConnection(EndPoint endp, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String, Object> context)
-
-
Method Details
-
getByteBufferPool
-
getContext
-
getConnection
-
setConnection
-
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:
-
read
- Throws:
IOException
-
write
-
toConnectionString
- Overrides:
toConnectionStringin classAbstractConnection
-