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
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProxyConnection
(EndPoint endp, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
Callback method invoked when the endpoint is ready to be read.protected abstract int
read
(EndPoint endPoint, ByteBuffer buffer) void
setConnection
(ProxyConnection connection) protected abstract 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, 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:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
-
read
- Throws:
IOException
-
write
-
close
-
toConnectionString
- Overrides:
toConnectionString
in classAbstractConnection
-