public class CSPHandler extends Object implements 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() |
public static final io.vertx.lang.rx.TypeArg<CSPHandler> __TYPE_ARG
public CSPHandler(CSPHandler delegate)
public CSPHandler(Object delegate)
public CSPHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
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 © 2022 Eclipse. All rights reserved.