| Modifier and Type | Field and Description |
|---|---|
| protected final Filter | |
| protected volatile Filter |
| Access | Constructor and Description |
|---|---|
| pack-priv | Filter(Filter
downstream filter. Accessible directly as downstreamFilter)downstreamFilter protected field.Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv final void | connect(SocketAddress
an address where to connect (server or proxy). address, Filter a filter positioned upstream. upstreamFilter)Initiate connect. |
| pack-priv void | handleConnect(SocketAddress
an address where to connect (server or proxy). address, Filter a filter positioned upstream. upstreamFilter)Handle |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | Returns: true if the data should be sent to processing to upper filter in the chain, false
otherwise.read data. data)Process |
| pack-priv void | |
| pack-priv void | startSsl()
Signal to turn on SSL, it is passed on in the filter chain until a filter responsible for SSL is reached. |
| pack-priv void | write(ByteBuffer
on which write operation is performed. data, CompletionHandler<ByteBuffer> will be invoked when the write operation is completed or has failed. completionHandler)Perform write operation for this filter and invokes write method on the next filter in the filter chain. |
| downstreamFilter | back to summary |
|---|---|
| protected final Filter downstreamFilter | |
| upstreamFilter | back to summary |
|---|---|
| protected volatile Filter upstreamFilter | |
| Filter | back to summary |
|---|---|
| pack-priv Filter(Filter downstreamFilter) Constructor.
| |
| close | back to summary |
|---|---|
| pack-priv void close() Close the filter, invokes close operation on the next filter in the filter chain. The filter is expected to clean up any allocated resources and pass the invocation to downstream filter. | |
| connect | back to summary |
|---|---|
| pack-priv final void connect(SocketAddress address, Filter upstreamFilter) Initiate connect.
If the
| |
| handleConnect | back to summary |
|---|---|
| pack-priv void handleConnect(SocketAddress address, Filter upstreamFilter) Handle
| |
| onConnect | back to summary |
|---|---|
| pack-priv final void onConnect() An event listener that is called when a connection is set up. This event travels up in the filter chain.
If the | |
| onConnectionClosed | back to summary |
|---|---|
| pack-priv final void onConnectionClosed() An event listener that is called when the connection is closed by the peer.
If the | |
| onError | back to summary |
|---|---|
| pack-priv final void onError(Throwable t) An event listener that is called when an error has occurred. Errors travel in direction from downstream filter to upstream filter.
If the
| |
| onRead | back to summary |
|---|---|
| pack-priv final void onRead(ByteBuffer data) An event listener that is called when some data is read.
If the
| |
| onSslHandshakeCompleted | back to summary |
|---|---|
| pack-priv final void onSslHandshakeCompleted() An event listener that is called, when SSL completes its handshake.
If the | |
| processConnect | back to summary |
|---|---|
| pack-priv void processConnect() Process
| |
| processConnectionClosed | back to summary |
|---|---|
| pack-priv void processConnectionClosed() Process
| |
| processError | back to summary |
|---|---|
| pack-priv void processError(Throwable t) Process
| |
| processRead | back to summary |
|---|---|
| pack-priv boolean processRead(ByteBuffer data) Process
| |
| processSslHandshakeCompleted | back to summary |
|---|---|
| pack-priv void processSslHandshakeCompleted() Process
| |
| startSsl | back to summary |
|---|---|
| pack-priv void startSsl() Signal to turn on SSL, it is passed on in the filter chain until a filter responsible for SSL is reached. | |
| write | back to summary |
|---|---|
| pack-priv void write(ByteBuffer data, CompletionHandler<ByteBuffer> completionHandler) Perform write operation for this filter and invokes write method on the next filter in the filter chain.
| |