Class HSTSHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.HSTSHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>
,SecurityPolicyHandler
public class HSTSHandler extends Object implements SecurityPolicyHandler, Handler<RoutingContext>
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<HSTSHandler>
__TYPE_ARG
static long
DEFAULT_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 HSTSHandler
create()
Creates a new instance that does not consider the configuration for sub domains.static HSTSHandler
create(boolean includeSubDomains)
Creates a new instance that shall consider the configuration for sub domains.static HSTSHandler
create(long maxAge, boolean includeSubDomains)
Creates a new instance that shall consider the configuration for sub domains.boolean
equals(Object o)
HSTSHandler
getDelegate()
void
handle(RoutingContext event)
Something has happened, so handle it.int
hashCode()
static HSTSHandler
newInstance(HSTSHandler arg)
String
toString()
-
-
-
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:
getDelegate
in interfaceSecurityPolicyHandler
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handle
in interfaceHandler<RoutingContext>
- Specified by:
handle
in 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)
-
-