public class CSPHandler extends Object implements SecurityPolicyHandler, Handler<RoutingContext>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<CSPHandler> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
CSPHandler(CSPHandler delegate)  | 
CSPHandler(Object delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
CSPHandler | 
addDirective(String name,
            String value)
Adds a single directive entry to the handler. 
 | 
static CSPHandler | 
create()
Creates a new instance of the handler. 
 | 
boolean | 
equals(Object o)  | 
CSPHandler | 
getDelegate()  | 
void | 
handle(RoutingContext event)
Something has happened, so handle it. 
 | 
int | 
hashCode()  | 
static CSPHandler | 
newInstance(CSPHandler arg)  | 
CSPHandler | 
setDirective(String name,
            String value)
Sets a single directive entry to the handler. 
 | 
CSPHandler | 
setReportOnly(boolean reportOnly)
To ease deployment, CSP can be deployed in report-only mode. 
 | 
String | 
toString()  | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstancepublic static final io.vertx.lang.rx.TypeArg<CSPHandler> __TYPE_ARG
public CSPHandler(CSPHandler delegate)
public CSPHandler(Object delegate)
public CSPHandler getDelegate()
getDelegate in interface SecurityPolicyHandlerpublic void handle(RoutingContext event)
handle in interface Handler<RoutingContext>handle in interface SecurityPolicyHandlerevent - the event to handlepublic static CSPHandler create()
public CSPHandler setDirective(String name, String value)
name - the directive namevalue - the directive value.public CSPHandler addDirective(String name, String value)
name - the directive namevalue - the directive value.public CSPHandler setReportOnly(boolean reportOnly)
reportOnly - enable report onlypublic static CSPHandler newInstance(CSPHandler arg)
Copyright © 2023 Eclipse. All rights reserved.