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 TypeMethodDescriptionvoid
accept
(RoutingContext item) static HSTSHandler
create()
static HSTSHandler
create
(boolean includeSubDomains) static HSTSHandler
create
(long maxAge, boolean includeSubDomains) boolean
io.vertx.ext.web.handler.HSTSHandler
void
handle
(RoutingContext arg0) int
hashCode()
static HSTSHandler
newInstance
(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:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfaceSecurityPolicyHandler
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in 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:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfaceSecurityPolicyHandler
-
newInstance
-