org.glassfish.grizzly.samples.portunif.subservice
Class SubServiceFilter

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.BaseFilter
      extended by org.glassfish.grizzly.samples.portunif.subservice.SubServiceFilter
All Implemented Interfaces:
Filter

public class SubServiceFilter
extends BaseFilter

The SUB-service Filter, responsible for subtracting two values :)

Author:
Alexey Stashok

Constructor Summary
SubServiceFilter()
           
 
Method Summary
 NextAction handleRead(FilterChainContext ctx)
          Handle just read operation, when some message has come and ready to be processed.
 
Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onAdded, onFilterChainChanged, onRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubServiceFilter

public SubServiceFilter()
Method Detail

handleRead

public NextAction handleRead(FilterChainContext ctx)
                      throws IOException
Handle just read operation, when some message has come and ready to be processed.

Specified by:
handleRead in interface Filter
Overrides:
handleRead in class BaseFilter
Parameters:
ctx - Context of FilterChainContext processing
Returns:
the next action
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.