- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.proxy.ProxyConnection
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.eclipse.jetty.io.Connection
- Direct Known Subclasses:
ConnectHandler.DownstreamConnection,ConnectHandler.UpstreamConnection
public abstract class ProxyConnection extends org.eclipse.jetty.io.AbstractConnection
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.eclipse.jetty.util.log.LoggerLOG
-
Constructor Summary
Constructors Modifier Constructor Description protectedProxyConnection(org.eclipse.jetty.io.EndPoint endp, java.util.concurrent.Executor executor, org.eclipse.jetty.io.ByteBufferPool bufferPool, java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidclose(java.lang.Throwable failure)org.eclipse.jetty.io.ByteBufferPoolgetByteBufferPool()org.eclipse.jetty.io.ConnectiongetConnection()java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object>getContext()voidonFillable()protected abstract intread(org.eclipse.jetty.io.EndPoint endPoint, java.nio.ByteBuffer buffer)voidsetConnection(ProxyConnection connection)java.lang.StringtoConnectionString()protected abstract voidwrite(org.eclipse.jetty.io.EndPoint endPoint, java.nio.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, tryFillInterested
-
-
-
-
Method Detail
-
getByteBufferPool
public org.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
-
getContext
public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> getContext()
-
getConnection
public org.eclipse.jetty.io.Connection getConnection()
-
setConnection
public void setConnection(ProxyConnection connection)
-
onFillable
public void onFillable()
- Specified by:
onFillablein classorg.eclipse.jetty.io.AbstractConnection
-
read
protected abstract int read(org.eclipse.jetty.io.EndPoint endPoint, java.nio.ByteBuffer buffer) throws java.io.IOException- Throws:
java.io.IOException
-
write
protected abstract void write(org.eclipse.jetty.io.EndPoint endPoint, java.nio.ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)
-
close
protected void close(java.lang.Throwable failure)
-
toConnectionString
public java.lang.String toConnectionString()
- Overrides:
toConnectionStringin classorg.eclipse.jetty.io.AbstractConnection
-
-