public class ReverseProxyService extends Object
| Constructor and Description |
|---|
ReverseProxyService(String host,
int port,
ProxyDictionary dictionary,
int connectTimeoutMillis,
int concurrencyLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectDestination(SocketChannel sourceSocketChannel,
HttpRequestFrameReader httpRequestFrameReader,
ProxyTarget target) |
void |
destroy() |
void |
execute(SocketChannel sourceChannel,
Runnable runnable) |
SelectionKey |
keyFor(SelectableChannel selectableChannel) |
ProxyTarget |
lookup(HttpRequestFrame httpRequestFrame) |
public ReverseProxyService(String host, int port, ProxyDictionary dictionary, int connectTimeoutMillis, int concurrencyLimit) throws IOException
IOExceptionpublic void destroy()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic SelectionKey keyFor(SelectableChannel selectableChannel)
public void execute(SocketChannel sourceChannel, Runnable runnable)
public ProxyTarget lookup(HttpRequestFrame httpRequestFrame) throws ProtocolException
ProtocolExceptionpublic void connectDestination(SocketChannel sourceSocketChannel, HttpRequestFrameReader httpRequestFrameReader, ProxyTarget target)
Copyright © 2017. All rights reserved.