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
public 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 Filter
handleRead
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleClose(FilterChainContext ctx) throws IOException
Connection
closing.handleClose
in interface Filter
handleClose
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
Copyright © 2015 Oracle Corporation. All rights reserved.