public class TunnelFilter extends BaseFilter
| Constructor and Description |
|---|
TunnelFilter(SocketConnectorHandler transport,
SocketAddress redirectAddress) |
TunnelFilter(SocketConnectorHandler transport,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
NextAction |
handleClose(FilterChainContext ctx)
This method will be called, to notify about
Connection closing. |
NextAction |
handleRead(FilterChainContext ctx)
This method will be called, once
Connection has some available data |
createContext, exceptionOccurred, handleAccept, handleConnect, handleEvent, handleWrite, onAdded, onFilterChainChanged, onRemoved, toStringpublic TunnelFilter(SocketConnectorHandler transport, String host, int port)
public TunnelFilter(SocketConnectorHandler transport, SocketAddress redirectAddress)
public NextAction handleRead(FilterChainContext ctx) throws IOException
Connection has some available datahandleRead in interface FilterhandleRead in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleClose(FilterChainContext ctx) throws IOException
Connection closing.handleClose in interface FilterhandleClose in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionCopyright © 2016 Oracle Corporation. All rights reserved.