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.api.message.Message responseMessage,
MuleContext context)
Validates whether a message should be accepted or not, failing in that case.
|
belongs, getValues, setValuespublic static SuccessStatusCodeValidator NULL_VALIDATOR
public SuccessStatusCodeValidator()
public SuccessStatusCodeValidator(String values)
public void validate(org.mule.runtime.api.message.Message responseMessage,
MuleContext context)
throws ResponseValidatorException
ResponseValidatorresponseMessage - the message to validatecontext - the Mule Context for the current application.ResponseValidatorException - if the message is not considered valid.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.