public static interface StreamValidator.Validator
Modifier and Type | Method and Description |
---|---|
String |
getMimeType()
The mime type which can be expected to be produced by this validator.
|
String |
getPathExpression()
A regular expression which the name of the resource will be matched against.
|
String |
getResourceType()
A descriptive type name for the resource that this validator handles.
|
InputStream |
validate(String pResourceName,
Map<String,String> pTemplateMap,
InputStream pInputStream)
Perform validation on the given resource, given the input stream.
|
String getMimeType()
String getPathExpression()
String getResourceType()
InputStream validate(String pResourceName, Map<String,String> pTemplateMap, InputStream pInputStream) throws ValidationException
pResourceName
- The name of the resource being validatedpTemplateMap
- pInputStream
- The input stream which contains the data being validated @return the original input stream wrapped in a filtered input stream which validates the data somehow.ValidationException
- if a problem occurs while setting up the validation chain.© 1998- 2018 Stibo DX