|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.portunif.PUFilter
public class PUFilter
Port unification filter.
| Constructor Summary | |
|---|---|
PUFilter()
|
|
| Method Summary | |
|---|---|
void |
deregister(PUProtocol puProtocol)
Deregisters the PUProtocol. |
protected void |
findProtocol(PUContext puContext,
FilterChainContext ctx)
|
Filter |
getBackChannelFilter()
Get the back channel Filter implementation, which should connect the
custom protocol FilterChain with the main FilterChain. |
java.util.Set<PUProtocol> |
getProtocols()
Get registered port unification protocols - PUProtocols. |
FilterChainBuilder |
getPUFilterChainBuilder()
Returns the FilterChainBuilder, developers may use to build there
custom protocol filter chain. |
NextAction |
handleClose(FilterChainContext ctx)
|
NextAction |
handleEvent(FilterChainContext ctx,
FilterChainEvent event)
|
NextAction |
handleRead(FilterChainContext ctx)
|
PUProtocol |
register(ProtocolFinder protocolFinder,
FilterChain filterChain)
Registers new ProtocolFinder - FilterChain pair, which
defines the protocol. |
void |
register(PUProtocol puProtocol)
Registers new PUProtocol. |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
|---|
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleConnect, handleWrite, onAdded, onFilterChainChanged, onRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PUFilter()
| Method Detail |
|---|
public PUProtocol register(ProtocolFinder protocolFinder,
FilterChain filterChain)
ProtocolFinder - FilterChain pair, which
defines the protocol.
protocolFinder - ProtocolFinderfilterChain - FilterChain
PUProtocol, which wraps passed ProtocolFinder and FilterChain.public void register(PUProtocol puProtocol)
PUProtocol.
puProtocol - PUProtocolpublic void deregister(PUProtocol puProtocol)
PUProtocol.
puProtocol - PUProtocolpublic java.util.Set<PUProtocol> getProtocols()
PUProtocols.
PUProtocol Set.public Filter getBackChannelFilter()
Filter implementation, which should connect the
custom protocol FilterChain with the main FilterChain.
Usually developers shouldn't use this method, if they build custom protocol
chains using getPUFilterChainBuilder(), otherwise they have to
make sure there custom protocol FilterChain contains back channel
Filter (usually first Filter in the custom protocol filter chain).
Filter.public FilterChainBuilder getPUFilterChainBuilder()
FilterChainBuilder, developers may use to build there
custom protocol filter chain.
The returned FilterChainBuilder may have some Filters pre-added.
FilterChainBuilder.
public NextAction handleRead(FilterChainContext ctx)
throws java.io.IOException
handleRead in interface FilterhandleRead in class BaseFilterjava.io.IOException
public NextAction handleEvent(FilterChainContext ctx,
FilterChainEvent event)
throws java.io.IOException
handleEvent in interface FilterhandleEvent in class BaseFilterjava.io.IOException
public NextAction handleClose(FilterChainContext ctx)
throws java.io.IOException
handleClose in interface FilterhandleClose in class BaseFilterjava.io.IOException
protected void findProtocol(PUContext puContext,
FilterChainContext ctx)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||