Package org.eclipse.jetty.proxy
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 classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProxyConnection(EndPoint endp, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidCallback method invoked when the endpoint is ready to be read.protected abstract intread(EndPoint endPoint, ByteBuffer buffer) voidsetConnection(ProxyConnection connection) protected abstract voidwrite(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, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onOpen, onReadTimeout, removeEventListener, setInputBufferSize, toString, tryFillInterested
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
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
-
close
-
toConnectionString
- Overrides:
toConnectionStringin classAbstractConnection
-