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 SecurityPolicyHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
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.
- Author:
- Paulo Lopes
- See Also:
-
HSTSHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.SecurityPolicyHandler
SecurityPolicyHandler.SecurityPolicyHandlerImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHSTSHandler(io.vertx.ext.web.handler.HSTSHandler delegate) Create a new instance ofHSTSHandlerdelegating to the given (non-null) instance ofHSTSHandler.HSTSHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static HSTSHandlercreate()Creates a new instance that does not consider the configuration for sub domains.static HSTSHandlercreate(boolean includeSubDomains) Creates a new instance that shall consider the configuration for sub domains.static HSTSHandlercreate(long maxAge, boolean includeSubDomains) Creates a new instance that shall consider the configuration for sub domains.booleanio.vertx.ext.web.handler.HSTSHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static HSTSHandlernewInstance(io.vertx.ext.web.handler.HSTSHandler delegate) Creates a new instance of theHSTSHandler.toString()
-
Field Details
-
DEFAULT_MAX_AGE
public static final long DEFAULT_MAX_AGE- See Also:
-
__TYPE_ARG
-
-
Constructor Details
-
HSTSHandler
public HSTSHandler(io.vertx.ext.web.handler.HSTSHandler delegate) Create a new instance ofHSTSHandlerdelegating to the given (non-null) instance ofHSTSHandler. -
HSTSHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfaceSecurityPolicyHandler
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfaceSecurityPolicyHandler
-
getDelegate
public io.vertx.ext.web.handler.HSTSHandler getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceSecurityPolicyHandler- Returns:
- the delegate instance
-
create
Creates a new instance that shall consider the configuration for sub domains.- Parameters:
maxAge- max age to attribute to the headerincludeSubDomains- consider sub domains when adding the header- Returns:
- an instance.
-
create
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
Creates a new instance that does not consider the configuration for sub domains. Using the default max age.- Returns:
- an instance.
-
newInstance
Creates a new instance of theHSTSHandler. -
hashCode
public int hashCode() -
equals
-
toString
-