java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.proxy.ProxyConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.io.Connection
- Direct Known Subclasses:
ConnectHandler.DownstreamConnection,ConnectHandler.UpstreamConnection
public abstract class ProxyConnection
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.UpgradeTo -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProxyConnection(org.eclipse.jetty.io.EndPoint endp, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConcurrentMap<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidorg.eclipse.jetty.io.ByteBufferPoolorg.eclipse.jetty.io.Connectionvoidprotected abstract intread(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer) voidsetConnection(ProxyConnection connection) protected abstract 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, 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(org.eclipse.jetty.io.EndPoint endp, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConcurrentMap<String, Object> context)
-
-
Method Details
-
getByteBufferPool
public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool() -
getContext
-
getConnection
public org.eclipse.jetty.io.Connection getConnection() -
setConnection
-
onFillable
public void onFillable()- Specified by:
onFillablein classorg.eclipse.jetty.io.AbstractConnection
-
read
protected abstract int read(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer) throws IOException - Throws:
IOException
-
write
protected abstract void write(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer, org.eclipse.jetty.util.Callback callback) -
close
-
toConnectionString
- Overrides:
toConnectionStringin classorg.eclipse.jetty.io.AbstractConnection
-