@Deprecated public interface HTTPRequestValidationHandler extends ValidationHandler
Modifier and Type | Method and Description |
---|---|
HTTPRequestValidationHandler |
addCustomValidatorFunction(CustomValidator customValidator)
Deprecated.
Add a custom validator.
|
HTTPRequestValidationHandler |
addExpectedContentType(String contentType)
Deprecated.
Add an expected content type of request.
|
HTTPRequestValidationHandler |
addFormParam(String parameterName,
ParameterType type,
boolean required)
Deprecated.
Add a single parameter inside a form with included parameter types
|
HTTPRequestValidationHandler |
addFormParamsArray(String parameterName,
ParameterType type,
boolean required)
Deprecated.
Add a form parameters array with included parameter types
|
HTTPRequestValidationHandler |
addFormParamsArrayWithPattern(String parameterName,
String pattern,
boolean required)
Deprecated.
Add a form parameters array with a custom pattern
|
HTTPRequestValidationHandler |
addFormParamWithCustomTypeValidator(String parameterName,
ParameterTypeValidator validator,
boolean required,
boolean allowEmptyValue)
Deprecated.
Add a form parameter with a custom type validator.
|
HTTPRequestValidationHandler |
addFormParamWithPattern(String parameterName,
String pattern,
boolean required)
Deprecated.
Add a single parameter inside a form with a custom pattern
|
HTTPRequestValidationHandler |
addHeaderParam(String headerName,
ParameterType type,
boolean required)
Deprecated.
Add a header parameter with included parameter types
|
HTTPRequestValidationHandler |
addHeaderParamWithCustomTypeValidator(String headerName,
ParameterTypeValidator validator,
boolean required,
boolean allowEmptyValue)
Deprecated.
Add a header parameter with a custom type validator.
|
HTTPRequestValidationHandler |
addHeaderParamWithPattern(String headerName,
String pattern,
boolean required)
Deprecated.
Add a header parameter with a custom pattern
|
HTTPRequestValidationHandler |
addJsonBodySchema(String jsonSchema)
Deprecated.
Add a json schema for body with Content-Type "application/json"
|
HTTPRequestValidationHandler |
addMultipartRequiredFile(String filename,
String contentType)
Deprecated.
Add an expected filename inside multipart request.
|
HTTPRequestValidationHandler |
addPathParam(String parameterName,
ParameterType type)
Deprecated.
Add a path parameter with included parameter types.
|
HTTPRequestValidationHandler |
addPathParamWithCustomTypeValidator(String parameterName,
ParameterTypeValidator validator,
boolean allowEmptyValue)
Deprecated.
Add a path parameter with a custom type validator.
|
HTTPRequestValidationHandler |
addPathParamWithPattern(String parameterName,
String pattern)
Deprecated.
Add a path parameter with a custom pattern.
|
HTTPRequestValidationHandler |
addQueryParam(String parameterName,
ParameterType type,
boolean required)
Deprecated.
Add a query parameter with included parameter types
|
HTTPRequestValidationHandler |
addQueryParamsArray(String arrayName,
ParameterType type,
boolean required)
Deprecated.
Add a query parameters array with included parameter types
|
HTTPRequestValidationHandler |
addQueryParamsArrayWithPattern(String arrayName,
String pattern,
boolean required)
Deprecated.
Add a query parameters array with a custom pattern
|
HTTPRequestValidationHandler |
addQueryParamWithCustomTypeValidator(String parameterName,
ParameterTypeValidator validator,
boolean required,
boolean allowEmptyValue)
Deprecated.
Add a query parameter with a custom type validator.
|
HTTPRequestValidationHandler |
addQueryParamWithPattern(String parameterName,
String pattern,
boolean required)
Deprecated.
Add a query parameter with a custom pattern
|
HTTPRequestValidationHandler |
addXMLBodySchema(String xmlSchema)
Deprecated.
Add a xml schema for body with Content-Type "application/xml"
|
static HTTPRequestValidationHandler |
create()
Deprecated.
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)
ParameterTypeValidator
parameterName
- 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)
ParameterTypeValidator
parameterName
- 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)
ParameterTypeValidator
headerName
- 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)
ParameterTypeValidator
parameterName
- 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)
CustomValidator
customValidator
- 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 © 2022 Eclipse. All rights reserved.