Class HSTSHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>

    public class HSTSHandler
    extends Object
    implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
    HTTP Strict Transport Security (HSTS) RFC6797. This handler adds the strict transport security headers, for this domain or subdomains.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • HSTSHandler

        public HSTSHandler​(io.vertx.ext.web.handler.HSTSHandler delegate)
      • HSTSHandler

        public HSTSHandler​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.web.handler.HSTSHandler getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static HSTSHandler create​(long maxAge,
                                         boolean includeSubDomains)
        Parameters:
        maxAge - max age to attribute to the header
        includeSubDomains - consider sub domains when adding the header
        Returns:
        an instance.
      • create

        public static HSTSHandler create​(boolean includeSubDomains)
        Parameters:
        includeSubDomains - consider sub domains when adding the header
        Returns:
        an instance.
      • create

        public static HSTSHandler create()
        Returns:
        an instance.
      • newInstance

        public static HSTSHandler newInstance​(io.vertx.ext.web.handler.HSTSHandler arg)