public class SuccessStatusCodeValidator extends RangeStatusCodeValidator
| Modifier and Type | Field and Description |
|---|---|
static SuccessStatusCodeValidator |
NULL_VALIDATOR
An status code validator that allows any status code.
|
| Constructor and Description |
|---|
SuccessStatusCodeValidator() |
SuccessStatusCodeValidator(String values) |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> result)
Validates whether an HTTP response result should be accepted or not, failing in that case.
|
belongs, getExceptionMessage, getValues, setValuespublic static SuccessStatusCodeValidator NULL_VALIDATOR
public SuccessStatusCodeValidator()
public SuccessStatusCodeValidator(String values)
public void validate(org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> result) throws ResponseValidatorException
ResponseValidatorresult - the message to validateResponseValidatorException - if the message is not considered valid.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.