Class ReverseProxyService
- java.lang.Object
-
- org.smallmind.web.reverse.http1_1.ReverseProxyService
-
public class ReverseProxyService extends Object
-
-
Constructor Summary
Constructors Constructor Description ReverseProxyService(String host, int port, ProxyDictionary dictionary, int connectTimeoutMillis, int concurrencyLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectDestination(SocketChannel sourceSocketChannel, HttpRequestFrameReader httpRequestFrameReader, ProxyTarget target)voiddestroy()voidexecute(SocketChannel sourceChannel, Runnable runnable)SelectionKeykeyFor(SelectableChannel selectableChannel)ProxyTargetlookup(HttpRequestFrame httpRequestFrame)
-
-
-
Constructor Detail
-
ReverseProxyService
public ReverseProxyService(String host, int port, ProxyDictionary dictionary, int connectTimeoutMillis, int concurrencyLimit) throws IOException
- Throws:
IOException
-
-
Method Detail
-
destroy
public void destroy() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
keyFor
public SelectionKey keyFor(SelectableChannel selectableChannel)
-
execute
public void execute(SocketChannel sourceChannel, Runnable runnable)
-
lookup
public ProxyTarget lookup(HttpRequestFrame httpRequestFrame) throws ProtocolException
- Throws:
ProtocolException
-
connectDestination
public void connectDestination(SocketChannel sourceSocketChannel, HttpRequestFrameReader httpRequestFrameReader, ProxyTarget target)
-
-