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, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<CSPHandler> __TYPE_ARG
public CSPHandler(CSPHandler delegate)
public CSPHandler(Object delegate)
public CSPHandler 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 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 © 2024 Eclipse. All rights reserved.