org.glassfish.grizzly.util
Class EchoFilter
java.lang.Object
org.glassfish.grizzly.filterchain.FilterAdapter
org.glassfish.grizzly.util.EchoFilter
- All Implemented Interfaces:
- Filter
public class EchoFilter
- extends FilterAdapter
Echo Filter implementation
- Author:
- Alexey Stashok
| Methods inherited from class org.glassfish.grizzly.filterchain.FilterAdapter |
exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleWrite, isIndexable, postAccept, postClose, postConnect, postRead, postWrite, setIndex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EchoFilter
public EchoFilter()
handleRead
public NextAction handleRead(FilterChainContext ctx,
NextAction nextAction)
throws IOException
- Description copied from class:
FilterAdapter
- 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 FilterAdapter
- Parameters:
ctx - FilterChainContextnextAction - default NextAction, which Filter
could change in order to control how
FilterChain will continue the execution
- Returns:
NextAction instruction for FilterChain, how it
should continue the execution
- Throws:
IOException
Copyright © 2009 SUN Microsystems. All Rights Reserved.