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>,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 theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HSTSHandler>__TYPE_ARGstatic longDEFAULT_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 voidaccept(RoutingContext item)static HSTSHandlercreate()static HSTSHandlercreate(boolean includeSubDomains)static HSTSHandlercreate(long maxAge, boolean includeSubDomains)booleanequals(Object o)io.vertx.ext.web.handler.HSTSHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static HSTSHandlernewInstance(io.vertx.ext.web.handler.HSTSHandler arg)StringtoString()
-
-
-
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()
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
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:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static HSTSHandler newInstance(io.vertx.ext.web.handler.HSTSHandler arg)
-
-