Package io.vertx.mutiny.ext.web.handler
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHSTSHandler(io.vertx.ext.web.handler.HSTSHandler delegate) HSTSHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) static HSTSHandlercreate()static HSTSHandlercreate(boolean includeSubDomains) static HSTSHandlercreate(long maxAge, boolean includeSubDomains) booleanio.vertx.ext.web.handler.HSTSHandlervoidhandle(RoutingContext arg0) inthashCode()static HSTSHandlernewInstance(io.vertx.ext.web.handler.HSTSHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_MAX_AGE
public static final long DEFAULT_MAX_AGE- See Also:
-
-
Constructor Details
-
HSTSHandler
public HSTSHandler(io.vertx.ext.web.handler.HSTSHandler delegate) -
HSTSHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.HSTSHandler getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceSecurityPolicyHandler- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfaceSecurityPolicyHandler
-
create
- Parameters:
maxAge- max age to attribute to the headerincludeSubDomains- consider sub domains when adding the header- Returns:
- an instance.
-
create
- Parameters:
includeSubDomains- consider sub domains when adding the header- Returns:
- an instance.
-
create
- Returns:
- an instance.
-
accept
- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfaceSecurityPolicyHandler
-
newInstance
-