Class 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)  
      • Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter

        createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved, toString
    • Constructor Detail

      • HandshakeFilter

        public HandshakeFilter()
    • Method Detail

      • handleWrite

        public org.glassfish.grizzly.filterchain.NextAction handleWrite​(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
        Specified by:
        handleWrite in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        handleWrite in class org.glassfish.grizzly.filterchain.BaseFilter
      • handleRead

        public org.glassfish.grizzly.filterchain.NextAction handleRead​(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
        Specified by:
        handleRead in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        handleRead in class org.glassfish.grizzly.filterchain.BaseFilter