public class SimpleResponseValidator extends Object implements ResponseStatusValidator
| Constructor and Description |
|---|
SimpleResponseValidator(String strList)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static ResponseStatusValidator |
loadFromProperty(String strProperty,
String strDefault)
Load a Status validator from properties
|
boolean |
validate(int nStatus)
Validate response status
|
public SimpleResponseValidator(String strList)
strList - The list of authorized statuspublic static ResponseStatusValidator loadFromProperty(String strProperty, String strDefault)
strProperty - The property keystrDefault - The default valuepublic boolean validate(int nStatus)
validate in interface ResponseStatusValidatornStatus - the response statusCopyright © 2017 City of Paris. All rights reserved.