public class ValidationHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCEPT |
static java.lang.String |
HOOKS_LISTENERS_URI_PART |
static java.lang.String |
HOOKS_ROUTE_URI_PART |
| Constructor and Description |
|---|
ValidationHandler(ValidationResourceManager validationResourceManager,
org.swisspush.gateleen.core.storage.ResourceStorage storage,
io.vertx.core.http.HttpClient httpClient,
java.lang.String schemaRoot) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(io.vertx.core.http.HttpServerRequest request) |
boolean |
isFailOnError() |
boolean |
isToValidate(io.vertx.core.http.HttpServerRequest request)
Returns true when the
ValidationHandler must be applied to this request. |
void |
setFailOnError(boolean failOnError) |
public static final java.lang.String HOOKS_LISTENERS_URI_PART
public static final java.lang.String HOOKS_ROUTE_URI_PART
public static final java.lang.String ACCEPT
public ValidationHandler(ValidationResourceManager validationResourceManager, org.swisspush.gateleen.core.storage.ResourceStorage storage, io.vertx.core.http.HttpClient httpClient, java.lang.String schemaRoot)
public boolean isToValidate(io.vertx.core.http.HttpServerRequest request)
ValidationHandler must be applied to this request.request - requestpublic void handle(io.vertx.core.http.HttpServerRequest request)
public boolean isFailOnError()
public void setFailOnError(boolean failOnError)