com.sun.grizzly.filterchain
Class FilterChainProcessorSelector

java.lang.Object
  extended by com.sun.grizzly.filterchain.FilterChainProcessorSelector
All Implemented Interfaces:
ProcessorSelector

public class FilterChainProcessorSelector
extends Object
implements ProcessorSelector

ProcessorSelector implementation, which delegates processing of IOEvent to the FilterChain.

Author:
Alexey Stashok
See Also:
ProcessorSelector

Field Summary
protected  FilterChainFactory factory
          FilterChainFactory, responsible for creating FilterChain instances
 
Constructor Summary
FilterChainProcessorSelector(FilterChainFactory factory)
           
 
Method Summary
 Processor select(IOEvent ioEvent, Connection connection)
          Returns FilterChain instance, if it's interested in processing passed IOEvent, or null otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected FilterChainFactory factory
FilterChainFactory, responsible for creating FilterChain instances

Constructor Detail

FilterChainProcessorSelector

public FilterChainProcessorSelector(FilterChainFactory factory)
Method Detail

select

public Processor select(IOEvent ioEvent,
                        Connection connection)
Returns FilterChain instance, if it's interested in processing passed IOEvent, or null otherwise.

Specified by:
select in interface ProcessorSelector
Parameters:
ioEvent - IOEvent to process.
connection - Connection, where IOEvent occured.
Returns:
FilterChain instance, if it's interested in processing passed IOEvent, or null otherwise.


Copyright © 2009 SUN Microsystems. All Rights Reserved.