Implementation of a Handler that supports HTTP CONNECT.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected class | |
| public class | |
| private abstract static class | |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private ByteBufferPool | |
| private int | |
| private long | |
| private Executor | |
| private long | |
| private static final Logger | |
| private Scheduler | |
| private SelectorManager | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| public Set | |
| public int | |
| public ByteBufferPool | |
| public long | Returns: the timeout, in milliseconds, to connect to the remote serverGet the timeout, in milliseconds, to connect to the remote server. |
| public Executor | |
| public long | |
| public Scheduler | |
| public Set | |
| public boolean | handle(Request
the HTTP request to handle request, Response the HTTP response to handle response, Callback the callback to complete when the handling is complete callback)Overrides org. Implements org. Invoked to handle the passed HTTP request and response. |
| protected boolean | Returns: true to allow to connect to the remote host, false otherwisethe HTTP request request, Response the HTTP response response, String the address of the remote server in the form address)host:port.Handles the authentication before setting up the tunnel to the remote server. |
| protected void | handleConnect(Request
the jetty request request, Response the jetty response response, Callback the callback with which to generate a response callback, String the remote server address in the form serverAddress)host:portHandles a CONNECT request. |
| protected InetSocketAddress | Returns: The InetSocketAddress to connect to.The host from the CONNECT request host, int The port from the CONNECT request port)Creates the server address to connect to. |
| protected ConnectHandler. | |
| protected SelectorManager | |
| protected ConnectHandler. | |
| protected void | |
| protected void | onConnectSuccess(ConnectHandler.
|
| protected void | |
| protected int | Returns: the number of bytes read (possibly 0 since the read is non-blocking) or -1 if the channel has been closed remotelythe endPoint to read from endPoint, ByteBuffer the buffer to read data into buffer, ConcurrentMap<String, Object> the context information related to the connection context)Reads (with non-blocking semantic) into the given |
| private void | |
| public void | |
| public void | |
| public void | setConnectTimeout(long
the timeout, in milliseconds, to connect to the remote server connectTimeout)Set the timeout, in milliseconds, to connect to the remote server. |
| public void | |
| public void | setIdleTimeout(long
the idle timeout, in milliseconds idleTimeout)Set the idle timeout, in milliseconds. |
| public void | |
| private void | |
| public boolean | Returns: true if it is allowed to connect to the given host and portthe host to check host, int the port to check port)Checks the given |
| protected void | write(EndPoint
the endPoint to write to endPoint, ByteBuffer the buffer to write buffer, Callback the completion callback to invoke callback, ConcurrentMap<String, Object> the context information related to the connection context)Writes (with non-blocking semantic) the given buffer of data onto the given endPoint. |