Class DefaultHeadersValidator
- java.lang.Object
-
- org.fcrepo.storage.ocfl.validation.DefaultHeadersValidator
-
- All Implemented Interfaces:
HeadersValidator
public class DefaultHeadersValidator extends Object implements HeadersValidator
Headers validator that supports version 1.0 of the resource headers- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description DefaultHeadersValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(PersistencePaths paths, ResourceHeaders headers, ResourceHeaders rootHeaders)Validates resource headers.
-
-
-
Method Detail
-
validate
public 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.- Specified by:
validatein interfaceHeadersValidator- 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
-
-