public interface HTTPRequestValidationHandler extends ValidationHandler
| Modifier and Type | Method and Description | 
|---|---|
HTTPRequestValidationHandler | 
addCustomValidatorFunction(CustomValidator customValidator)
Add a custom validator. 
 | 
HTTPRequestValidationHandler | 
addExpectedContentType(String contentType)
Add an expected content type of request. 
 | 
HTTPRequestValidationHandler | 
addFormParam(String parameterName,
            ParameterType type,
            boolean required)
Add a single parameter inside a form with included parameter types 
 | 
HTTPRequestValidationHandler | 
addFormParamsArray(String parameterName,
                  ParameterType type,
                  boolean required)
Add a form parameters array with included parameter types 
 | 
HTTPRequestValidationHandler | 
addFormParamsArrayWithPattern(String parameterName,
                             String pattern,
                             boolean required)
Add a form parameters array with a custom pattern 
 | 
HTTPRequestValidationHandler | 
addFormParamWithCustomTypeValidator(String parameterName,
                                   ParameterTypeValidator validator,
                                   boolean required,
                                   boolean allowEmptyValue)
Add a form parameter with a custom type validator. 
 | 
HTTPRequestValidationHandler | 
addFormParamWithPattern(String parameterName,
                       String pattern,
                       boolean required)
Add a single parameter inside a form with a custom pattern 
 | 
HTTPRequestValidationHandler | 
addHeaderParam(String headerName,
              ParameterType type,
              boolean required)
Add a header parameter with included parameter types 
 | 
HTTPRequestValidationHandler | 
addHeaderParamWithCustomTypeValidator(String headerName,
                                     ParameterTypeValidator validator,
                                     boolean required,
                                     boolean allowEmptyValue)
Add a header parameter with a custom type validator. 
 | 
HTTPRequestValidationHandler | 
addHeaderParamWithPattern(String headerName,
                         String pattern,
                         boolean required)
Add a header parameter with a custom pattern 
 | 
HTTPRequestValidationHandler | 
addJsonBodySchema(String jsonSchema)
Add a json schema for body with Content-Type "application/json" 
 | 
HTTPRequestValidationHandler | 
addMultipartRequiredFile(String filename,
                        String contentType)
Add an expected filename inside multipart request. 
 | 
HTTPRequestValidationHandler | 
addPathParam(String parameterName,
            ParameterType type)
Add a path parameter with included parameter types. 
 | 
HTTPRequestValidationHandler | 
addPathParamWithCustomTypeValidator(String parameterName,
                                   ParameterTypeValidator validator,
                                   boolean allowEmptyValue)
Add a path parameter with a custom type validator. 
 | 
HTTPRequestValidationHandler | 
addPathParamWithPattern(String parameterName,
                       String pattern)
Add a path parameter with a custom pattern. 
 | 
HTTPRequestValidationHandler | 
addQueryParam(String parameterName,
             ParameterType type,
             boolean required)
Add a query parameter with included parameter types 
 | 
HTTPRequestValidationHandler | 
addQueryParamsArray(String arrayName,
                   ParameterType type,
                   boolean required)
Add a query parameters array with included parameter types 
 | 
HTTPRequestValidationHandler | 
addQueryParamsArrayWithPattern(String arrayName,
                              String pattern,
                              boolean required)
Add a query parameters array with a custom pattern 
 | 
HTTPRequestValidationHandler | 
addQueryParamWithCustomTypeValidator(String parameterName,
                                    ParameterTypeValidator validator,
                                    boolean required,
                                    boolean allowEmptyValue)
Add a query parameter with a custom type validator. 
 | 
HTTPRequestValidationHandler | 
addQueryParamWithPattern(String parameterName,
                        String pattern,
                        boolean required)
Add a query parameter with a custom pattern 
 | 
HTTPRequestValidationHandler | 
addXMLBodySchema(String xmlSchema)
Add a xml schema for body with Content-Type "application/xml" 
 | 
static HTTPRequestValidationHandler | 
create()
Factory method to create an HTTPRequestValidationHandler 
 | 
static HTTPRequestValidationHandler create()
HTTPRequestValidationHandler addPathParam(String parameterName, ParameterType type)
parameterName - expected name of parameter inside the pathtype - expected type of parameterHTTPRequestValidationHandler addPathParamWithPattern(String parameterName, String pattern)
parameterName - expected name of parameter inside the pathpattern - regular expression for validationHTTPRequestValidationHandler addPathParamWithCustomTypeValidator(String parameterName, ParameterTypeValidator validator, boolean allowEmptyValue)
ParameterTypeValidatorparameterName - expected name of parameter inside the pathvalidator - type validatorallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour:
 ParameterValidationRule.allowEmptyValue()HTTPRequestValidationHandler addQueryParam(String parameterName, ParameterType type, boolean required)
parameterName - expected name of parameter inside the querytype - expected type of parameterrequired - true if parameter is requiredHTTPRequestValidationHandler addQueryParamWithPattern(String parameterName, String pattern, boolean required)
parameterName - expected name of parameter inside the querypattern - regular expression for validationrequired - true if parameter is requiredHTTPRequestValidationHandler addQueryParamsArray(String arrayName, ParameterType type, boolean required)
arrayName - expected name of array inside the querytype - expected type of parameterrequired - true if parameter is requiredHTTPRequestValidationHandler addQueryParamsArrayWithPattern(String arrayName, String pattern, boolean required)
arrayName - expected name of array inside the querypattern - regular expression for validationrequired - true if parameter is requiredHTTPRequestValidationHandler addQueryParamWithCustomTypeValidator(String parameterName, ParameterTypeValidator validator, boolean required, boolean allowEmptyValue)
ParameterTypeValidatorparameterName - expected name of parameter inside the queryvalidator - type validatorrequired - true if parameter is requiredallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour:
 ParameterValidationRule.allowEmptyValue()HTTPRequestValidationHandler addHeaderParam(String headerName, ParameterType type, boolean required)
headerName - expected header nametype - expected type of parameterrequired - true if parameter is requiredHTTPRequestValidationHandler addHeaderParamWithPattern(String headerName, String pattern, boolean required)
headerName - expected header namepattern - regular expression for validationrequired - true if parameter is requiredHTTPRequestValidationHandler addHeaderParamWithCustomTypeValidator(String headerName, ParameterTypeValidator validator, boolean required, boolean allowEmptyValue)
ParameterTypeValidatorheaderName - expected header nameryvalidator - type validatorrequired - true if parameter is requiredallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour:
 ParameterValidationRule.allowEmptyValue()HTTPRequestValidationHandler addFormParam(String parameterName, ParameterType type, boolean required)
parameterName - expected name of parameter inside the formtype - expected type of parameterrequired - true if parameter is requiredHTTPRequestValidationHandler addFormParamWithPattern(String parameterName, String pattern, boolean required)
parameterName - expected name of parameter inside the formpattern - regular expression for validationrequired - true if parameter is requiredHTTPRequestValidationHandler addFormParamsArray(String parameterName, ParameterType type, boolean required)
parameterName - expected name of array of parameters inside the formtype - expected type of array of parametersrequired - true if parameter is requiredHTTPRequestValidationHandler addFormParamsArrayWithPattern(String parameterName, String pattern, boolean required)
parameterName - expected name of array of parameters inside the formpattern - regular expression for validationrequired - true if parameter is requiredHTTPRequestValidationHandler addFormParamWithCustomTypeValidator(String parameterName, ParameterTypeValidator validator, boolean required, boolean allowEmptyValue)
ParameterTypeValidatorparameterName - expected name of parameter inside the formvalidator - type validatorrequired - true if parameter is requiredallowEmptyValue - true if parameter allowEmptyValue. For more informations about allowEmptyValue behaviour:
 ParameterValidationRule.allowEmptyValue()HTTPRequestValidationHandler addCustomValidatorFunction(CustomValidator customValidator)
CustomValidatorcustomValidator - HTTPRequestValidationHandler addJsonBodySchema(String jsonSchema)
jsonSchema - HTTPRequestValidationHandler addXMLBodySchema(String xmlSchema)
xmlSchema - HTTPRequestValidationHandler addMultipartRequiredFile(String filename, String contentType)
filename - name of the file inside the formcontentType - expected content type of fileHTTPRequestValidationHandler addExpectedContentType(String contentType)
contentType - expected content type of fileCopyright © 2020 Eclipse. All rights reserved.