Class HandshakeFilter
- java.lang.Object
-
- org.glassfish.grizzly.filterchain.BaseFilter
-
- org.forgerock.openig.websocket.grizzly.HandshakeFilter
-
- All Implemented Interfaces:
org.glassfish.grizzly.filterchain.Filter
public class HandshakeFilter extends org.glassfish.grizzly.filterchain.BaseFilter
Deal with the HTTP handshake message only: building the HTTP request for downstream filters, receiving and interpreting the handshake response on upstream flow.When receiving the handshake response, it sends appropriate event to modify the chain behaviour (switching to pure TCP tunnel) and completes the CHF promise (be it a successful handshake or not).
-
-
Constructor Summary
Constructors Constructor Description HandshakeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.grizzly.filterchain.NextAction
handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
org.glassfish.grizzly.filterchain.NextAction
handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
-
-
-
Method Detail
-
handleWrite
public org.glassfish.grizzly.filterchain.NextAction handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
- Specified by:
handleWrite
in interfaceorg.glassfish.grizzly.filterchain.Filter
- Overrides:
handleWrite
in classorg.glassfish.grizzly.filterchain.BaseFilter
-
handleRead
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
- Specified by:
handleRead
in interfaceorg.glassfish.grizzly.filterchain.Filter
- Overrides:
handleRead
in classorg.glassfish.grizzly.filterchain.BaseFilter
-
-