Class HSTSHandler
java.lang.Object
io.vertx.reactivex.ext.web.handler.HSTSHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, SecurityPolicyHandler
public class HSTSHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, SecurityPolicyHandler, Handler<RoutingContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<HSTSHandler> static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.booleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static HSTSHandlernewInstance(HSTSHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_MAX_AGE
public static final long DEFAULT_MAX_AGE- See Also:
-
-
Constructor Details
-
HSTSHandler
-
HSTSHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Specified by:
getDelegatein interfaceSecurityPolicyHandler
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Specified by:
handlein interfaceSecurityPolicyHandler- Parameters:
event- the event to handle
-
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
-