Package org.eclipse.jetty.proxy
Class ConnectHandler.UpstreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.proxy.ProxyConnection
org.eclipse.jetty.proxy.ConnectHandler.UpstreamConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,EventListener
,javax.servlet.AsyncListener
,Connection
- Enclosing class:
- ConnectHandler
public class ConnectHandler.UpstreamConnection
extends ProxyConnection
implements javax.servlet.AsyncListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
Field Summary
Fields inherited from class org.eclipse.jetty.proxy.ProxyConnection
LOG
-
Constructor Summary
ConstructorDescriptionUpstreamConnection
(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onComplete
(javax.servlet.AsyncEvent event) void
onError
(javax.servlet.AsyncEvent event) void
onOpen()
Callback method invoked when this connection is opened.void
onStartAsync
(javax.servlet.AsyncEvent event) void
onTimeout
(javax.servlet.AsyncEvent event) protected int
read
(EndPoint endPoint, ByteBuffer buffer) protected void
write
(EndPoint endPoint, ByteBuffer buffer, Callback callback) Methods inherited from class org.eclipse.jetty.proxy.ProxyConnection
close, getByteBufferPool, getConnection, getContext, onFillable, setConnection, toConnectionString
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, onReadTimeout, removeEventListener, setInputBufferSize, toString, tryFillInterested
-
Constructor Details
-
UpstreamConnection
public UpstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext)
-
-
Method Details
-
onOpen
public void onOpen()Description copied from interface:Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpen
in interfaceConnection
- Overrides:
onOpen
in classAbstractConnection
-
read
- Specified by:
read
in classProxyConnection
- Throws:
IOException
-
write
- Specified by:
write
in classProxyConnection
-
onComplete
public void onComplete(javax.servlet.AsyncEvent event) - Specified by:
onComplete
in interfacejavax.servlet.AsyncListener
-
onTimeout
public void onTimeout(javax.servlet.AsyncEvent event) - Specified by:
onTimeout
in interfacejavax.servlet.AsyncListener
-
onError
public void onError(javax.servlet.AsyncEvent event) - Specified by:
onError
in interfacejavax.servlet.AsyncListener
-
onStartAsync
public void onStartAsync(javax.servlet.AsyncEvent event) - Specified by:
onStartAsync
in interfacejavax.servlet.AsyncListener
-