Package org.glassfish.grizzly.config
Class HSTSFilter
- java.lang.Object
-
- org.glassfish.grizzly.filterchain.BaseFilter
-
- org.glassfish.grizzly.config.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)
-
-
-
Method Detail
-
configure
public void configure(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener, Ssl configuration)
- Specified by:
configure
in interfaceConfigAwareElement<Ssl>
-
handleRead
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) throws IOException
- Specified by:
handleRead
in interfaceorg.glassfish.grizzly.filterchain.Filter
- Overrides:
handleRead
in classorg.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 interfaceorg.glassfish.grizzly.filterchain.Filter
- Overrides:
handleWrite
in classorg.glassfish.grizzly.filterchain.BaseFilter
- Throws:
IOException
-
-