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
,org.eclipse.jetty.io.Connection
- Direct Known Subclasses:
ConnectHandler.DownstreamConnection
,ConnectHandler.UpstreamConnection
public abstract class ProxyConnection extends org.eclipse.jetty.io.AbstractConnection
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProxyConnection(org.eclipse.jetty.io.EndPoint endp, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConcurrentMap<String,Object> context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.io.ByteBufferPool
getByteBufferPool()
org.eclipse.jetty.io.Connection
getConnection()
ConcurrentMap<String,Object>
getContext()
void
onFillable()
protected abstract int
read(org.eclipse.jetty.io.EndPoint endPoint, ByteBuffer buffer)
void
setConnection(org.eclipse.jetty.io.Connection connection)
String
toString()
protected abstract void
write(org.eclipse.jetty.io.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, isDispatchIO, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onOpen, onReadTimeout, removeListener, setInputBufferSize, tryFillInterested, tryFillInterested
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Constructor Detail
-
ProxyConnection
protected ProxyConnection(org.eclipse.jetty.io.EndPoint endp, Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, ConcurrentMap<String,Object> context)
-
-
Method Detail
-
getByteBufferPool
public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
-
getContext
public ConcurrentMap<String,Object> getContext()
-
getConnection
public org.eclipse.jetty.io.Connection getConnection()
-
setConnection
public void setConnection(org.eclipse.jetty.io.Connection connection)
-
onFillable
public void onFillable()
- Specified by:
onFillable
in 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, Callback callback)
-
toString
public String toString()
- Overrides:
toString
in classorg.eclipse.jetty.io.AbstractConnection
-
-