Class HSTSHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.HSTSHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, SecurityPolicyHandler, Consumer<RoutingContext>

public class HSTSHandler extends Object implements MutinyDelegate, SecurityPolicyHandler, 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.

  • Field Details

  • Constructor Details

    • HSTSHandler

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

      public HSTSHandler(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.HSTSHandler getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Specified by:
      getDelegate in interface SecurityPolicyHandler
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public void handle(RoutingContext arg0)
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
      Specified by:
      handle in interface SecurityPolicyHandler
    • 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.
    • accept

      public void accept(RoutingContext item)
      Specified by:
      accept in interface Consumer<RoutingContext>
      Specified by:
      accept in interface SecurityPolicyHandler
    • newInstance

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