public class CSPHandler extends Object implements io.vertx.core.Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<CSPHandler> |
__TYPE_ARG |
Constructor and Description |
---|
CSPHandler(io.vertx.ext.web.handler.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) |
io.vertx.ext.web.handler.CSPHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static CSPHandler |
newInstance(io.vertx.ext.web.handler.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 TypeArg<CSPHandler> __TYPE_ARG
public CSPHandler(io.vertx.ext.web.handler.CSPHandler delegate)
public CSPHandler(Object delegate)
public io.vertx.ext.web.handler.CSPHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface io.vertx.core.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(io.vertx.ext.web.handler.CSPHandler arg)
Copyright © 2021 Eclipse. All rights reserved.