Class HSTSFilter

  • All Implemented Interfaces:
    ConfigAwareElement<Ssl>, org.glassfish.grizzly.filterchain.Filter

    public class HSTSFilter
    extends org.glassfish.grizzly.filterchain.BaseFilter
    implements ConfigAwareElement<Ssl>
    Filter that adds HSTS header to all requests
    Since:
    5.28.0
    Author:
    jonathan coustick
    • Constructor Summary

      Constructors 
      Constructor Description
      HSTSFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener, Ssl configuration)  
      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

      • HSTSFilter

        public HSTSFilter()
    • Method Detail

      • handleRead

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

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