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 ClassesNested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBufferPool
private Connection
private final ConcurrentMap<String,
Object> protected static final Logger
private final IteratingCallback
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProxyConnection
(EndPoint endp, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback method invoked when the endpoint is ready to be read.protected abstract int
read
(EndPoint endPoint, ByteBuffer buffer) void
setConnection
(Connection connection) protected abstract void
write
(EndPoint endPoint, ByteBuffer buffer, Callback callback) Methods inherited from class org.eclipse.jetty.io.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:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
-
read
- Throws:
IOException
-
write
-
toConnectionString
- Overrides:
toConnectionString
in classAbstractConnection
-