com.sun.grizzly.filterchain
Interface FilterChainEnabledTransport

All Known Implementing Classes:
TCPNIOTransport, UDPNIOTransport

public interface FilterChainEnabledTransport

Common interface for Transports, which support FilterChains.

Author:
Alexey Stashok
See Also:
Transport, FilterChainFactory, FilterChain

Method Summary
 FilterChain getFilterChain()
          Get FilterChain instance.
 FilterChainFactory getFilterChainFactory()
          Get FilterChainFactory, responsible to construct FilterChain instance.
 Filter getMessageTransportFilter()
          Get transport Filter, which is aware of Transport specifics; knows how to read/write from/to Transport.
 Filter getStreamTransportFilter()
          Get transport Filter, which is aware of Transport specifics; knows how to read/write from/to Transport specific Connection streams.
 void setFilterChainFactory(FilterChainFactory factory)
          Set FilterChainFactory, responsible to construct FilterChain instance.
 

Method Detail

getFilterChainFactory

FilterChainFactory getFilterChainFactory()
Get FilterChainFactory, responsible to construct FilterChain instance.

Returns:
FilterChainFactory, responsible to construct FilterChain instance.

setFilterChainFactory

void setFilterChainFactory(FilterChainFactory factory)
Set FilterChainFactory, responsible to construct FilterChain instance.

Parameters:
factory - FilterChainFactory, responsible to construct FilterChain instance.

getFilterChain

FilterChain getFilterChain()
Get FilterChain instance.

Returns:
FilterChain instance.

getStreamTransportFilter

Filter getStreamTransportFilter()
Get transport Filter, which is aware of Transport specifics; knows how to read/write from/to Transport specific Connection streams. This Filter is used, if FilterChain supposed to work in stream mode. Each Transport should provide stream transport Filter implementation.

Returns:
transport Filter, which is aware of Transport specifics; knows how to read/write from/to Transport specific Connection streams.

getMessageTransportFilter

Filter getMessageTransportFilter()
Get transport Filter, which is aware of Transport specifics; knows how to read/write from/to Transport. This Filter is used, if FilterChain supposed to work in message mode. Each Transport should provide stream transport Filter implementation.

Returns:
transport Filter, which is aware of Transport specifics; knows how to read/write from/to Transport specific Connections.


Copyright © 2009 SUN Microsystems. All Rights Reserved.