Package io.vertx.mutiny.ext.web.handler
Class HSTSHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.HSTSHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,SecurityPolicyHandler
,Consumer<RoutingContext>
public class HSTSHandler extends Object implements 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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HSTSHandler>
__TYPE_ARG
static long
DEFAULT_MAX_AGE
-
Constructor Summary
Constructors Constructor Description HSTSHandler(io.vertx.ext.web.handler.HSTSHandler delegate)
HSTSHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(RoutingContext item)
static HSTSHandler
create()
static HSTSHandler
create(boolean includeSubDomains)
static HSTSHandler
create(long maxAge, boolean includeSubDomains)
boolean
equals(Object o)
io.vertx.ext.web.handler.HSTSHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static HSTSHandler
newInstance(io.vertx.ext.web.handler.HSTSHandler arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<HSTSHandler> __TYPE_ARG
-
DEFAULT_MAX_AGE
public static final long DEFAULT_MAX_AGE
- See Also:
- Constant Field Values
-
-
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()
- Specified by:
getDelegate
in interfaceSecurityPolicyHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfaceSecurityPolicyHandler
-
create
public static HSTSHandler create(long maxAge, boolean includeSubDomains)
- Parameters:
maxAge
- max age to attribute to the headerincludeSubDomains
- 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 interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfaceSecurityPolicyHandler
-
newInstance
public static HSTSHandler newInstance(io.vertx.ext.web.handler.HSTSHandler arg)
-
-