Class GIOPFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.samples.filterchain.GIOPFilter
- All Implemented Interfaces:
org.glassfish.grizzly.filterchain.Filter
public final class GIOPFilter
extends org.glassfish.grizzly.filterchain.BaseFilter
Example of parser
Filter,
which is response for Buffer <-> GIOPMessage transformation.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.grizzly.filterchain.NextActionhandleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) Method is called, when new data was read from the Connection and ready to be processed.org.glassfish.grizzly.filterchain.NextActionhandleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx) Method is called, when we write a data to the Connection.Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved, toString
-
Constructor Details
-
GIOPFilter
public GIOPFilter()
-
-
Method Details
-
handleRead
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) throws IOException Method is called, when new data was read from the Connection and ready to be processed. We override this method to perform Buffer -> GIOPMessage transformation.- 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
-
handleWrite
public org.glassfish.grizzly.filterchain.NextAction handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx) throws IOException Method is called, when we write a data to the Connection. We override this method to perform GIOPMessage -> Buffer transformation.- Specified by:
handleWritein interfaceorg.glassfish.grizzly.filterchain.Filter- Overrides:
handleWritein classorg.glassfish.grizzly.filterchain.BaseFilter- Parameters:
ctx- Context ofFilterChainContextprocessing- Returns:
- the next action
- Throws:
IOException
-