Class SubServiceFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.samples.portunif.subservice.SubServiceFilter
- All Implemented Interfaces:
org.glassfish.grizzly.filterchain.Filter
public class SubServiceFilter
extends org.glassfish.grizzly.filterchain.BaseFilter
The SUB-service
Filter, responsible for subtracting two values :)- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.grizzly.filterchain.NextActionhandleRead(org.glassfish.grizzly.filterchain.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, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onAdded, onFilterChainChanged, onRemoved, toString
-
Constructor Details
-
SubServiceFilter
public SubServiceFilter()
-
-
Method Details
-
handleRead
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) throws IOException Handle just read operation, when some message has come and ready to be processed.- Specified by:
handleReadin interfaceorg.glassfish.grizzly.filterchain.Filter- Overrides:
handleReadin classorg.glassfish.grizzly.filterchain.BaseFilter- Parameters:
ctx- Context ofFilterChainContextprocessing- Returns:
- the next action
- Throws:
IOException
-