Interface HeadersValidator
-
- All Known Implementing Classes:
DefaultHeadersValidator
public interface HeadersValidatorInterface for validating resource headers- Author:
- pwinckles
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(PersistencePaths paths, ResourceHeaders headers, ResourceHeaders rootHeaders)Validates resource headers.
-
-
-
Method Detail
-
validate
void validate(PersistencePaths paths, ResourceHeaders headers, ResourceHeaders rootHeaders)
Validates resource headers. The root headers MUST have a valid id and this method MUST NOT be called without first validating it.- Parameters:
paths- the persistence paths for the resource, may be nullheaders- the headers to validate, may not be nullrootHeaders- the headers for the resource at the root of the OCFL object, may not be null- Throws:
ValidationException- when problems are identified
-
-