public class CSPHandlerImpl extends Object implements CSPHandler
| Constructor and Description |
|---|
CSPHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
CSPHandler |
addDirective(String name,
String value)
Adds a single directive entry to the handler.
|
void |
handle(RoutingContext ctx)
Something has happened, so handle it.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic CSPHandler setDirective(String name, String value)
CSPHandlersetDirective in interface CSPHandlername - the directive namevalue - the directive value.public CSPHandler addDirective(String name, String value)
CSPHandleraddDirective in interface CSPHandlername - the directive namevalue - the directive value.public CSPHandler setReportOnly(boolean reportOnly)
CSPHandlersetReportOnly in interface CSPHandlerreportOnly - enable report onlypublic void handle(RoutingContext ctx)
Handlerhandle in interface Handler<RoutingContext>ctx - the event to handleCopyright © 2021. All rights reserved.