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
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<HSTSHandler>__TYPE_ARGstatic longDEFAULT_MAX_AGE
-
Constructor Summary
Constructors Constructor Description HSTSHandler(HSTSHandler delegate)HSTSHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.booleanequals(Object o)HSTSHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static HSTSHandlernewInstance(HSTSHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<HSTSHandler> __TYPE_ARG
-
DEFAULT_MAX_AGE
public static final long DEFAULT_MAX_AGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HSTSHandler
public HSTSHandler(HSTSHandler delegate)
-
HSTSHandler
public HSTSHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public HSTSHandler getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Specified by:
getDelegatein interfaceSecurityPolicyHandler
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Specified by:
handlein interfaceSecurityPolicyHandler- Parameters:
event- the event to handle
-
create
public static HSTSHandler create(long maxAge, boolean includeSubDomains)
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
public static HSTSHandler create(boolean includeSubDomains)
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
public static HSTSHandler create()
Creates a new instance that does not consider the configuration for sub domains. Using the default max age.- Returns:
- an instance.
-
newInstance
public static HSTSHandler newInstance(HSTSHandler arg)
-
-