Class HSTSHandler

java.lang.Object
io.vertx.rxjava3.ext.web.handler.HSTSHandler
All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, SecurityPolicyHandler

public class HSTSHandler extends Object implements io.vertx.lang.rx.RxDelegate, SecurityPolicyHandler, Handler<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 RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<HSTSHandler> __TYPE_ARG
    • DEFAULT_MAX_AGE

      public static final long DEFAULT_MAX_AGE
      See Also:
  • Constructor Details

    • HSTSHandler

      public HSTSHandler(HSTSHandler delegate)
    • HSTSHandler

      public HSTSHandler(Object delegate)
  • Method Details

    • 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
    • getDelegate

      public HSTSHandler getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
      Specified by:
      getDelegate in interface SecurityPolicyHandler
    • handle

      public void handle(RoutingContext event)
      Something has happened, so handle it.
      Specified by:
      handle in interface Handler<RoutingContext>
      Specified by:
      handle in interface SecurityPolicyHandler
      Parameters:
      event - the event to handle
    • create

      public static HSTSHandler create(long maxAge, boolean includeSubDomains)
      Creates a new instance that shall consider the configuration for sub domains.
      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)
      Creates a new instance that shall consider the configuration for sub domains.
      Parameters:
      includeSubDomains - consider sub domains when adding the header
      Returns:
      an instance.
    • create

      public static HSTSHandler create()
      Creates a new instance that does not consider the configuration for sub domains. Using the default max age.
      Returns:
      an instance.
    • newInstance

      public static HSTSHandler newInstance(HSTSHandler arg)