public class HSTSHandler extends Object implements SecurityPolicyHandler, Handler<RoutingContext>
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HSTSHandler> |
__TYPE_ARG |
static long |
DEFAULT_MAX_AGE |
Constructor and Description |
---|
HSTSHandler(HSTSHandler delegate) |
HSTSHandler(Object delegate) |
Modifier and Type | Method and 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<HSTSHandler> __TYPE_ARG
public static final long DEFAULT_MAX_AGE
public HSTSHandler(HSTSHandler delegate)
public HSTSHandler(Object delegate)
public HSTSHandler getDelegate()
getDelegate
in interface SecurityPolicyHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface SecurityPolicyHandler
event
- the event to handlepublic static HSTSHandler create(long maxAge, boolean includeSubDomains)
maxAge
- max age to attribute to the headerincludeSubDomains
- consider sub domains when adding the headerpublic static HSTSHandler create(boolean includeSubDomains)
includeSubDomains
- consider sub domains when adding the headerpublic static HSTSHandler create()
public static HSTSHandler newInstance(HSTSHandler arg)
Copyright © 2024 Eclipse. All rights reserved.