org.glassfish.grizzly.comet
Class CometFilter

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.BaseFilter
      extended by org.glassfish.grizzly.comet.CometFilter
All Implemented Interfaces:
Filter

public class CometFilter
extends BaseFilter


Constructor Summary
CometFilter()
           
 
Method Summary
 NextAction handleRead(FilterChainContext ctx)
          Execute a unit of processing work to be performed, when channel will become available for reading.
 void onAdded(FilterChain filterChain)
          Method is called, when the Filter has been added to the passed FilterChain.
 
Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onFilterChainChanged, onRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CometFilter

public CometFilter()
Method Detail

onAdded

public void onAdded(FilterChain filterChain)
Description copied from interface: Filter
Method is called, when the Filter has been added to the passed FilterChain.

Specified by:
onAdded in interface Filter
Overrides:
onAdded in class BaseFilter
Parameters:
filterChain - the FilterChain this Filter was added to.

handleRead

public NextAction handleRead(FilterChainContext ctx)
                      throws IOException
Description copied from class: BaseFilter
Execute a unit of processing work to be performed, when channel will become available for reading. This Filter may either complete the required processing and return false, or delegate remaining processing to the next Filter in a FilterChain containing this Filter by returning true.

Specified by:
handleRead in interface Filter
Overrides:
handleRead in class BaseFilter
Parameters:
ctx - FilterChainContext
Returns:
NextAction instruction for FilterChain, how it should continue the execution
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.