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, waitnewInstancepublic 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 SecurityPolicyHandlerpublic void handle(RoutingContext event)
handle in interface Handler<RoutingContext>handle in interface SecurityPolicyHandlerevent - 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 © 2023 Eclipse. All rights reserved.