Class ExtensionSupportEvaluator
- java.lang.Object
-
- edu.wisc.library.ocfl.core.extension.ExtensionSupportEvaluator
-
public class ExtensionSupportEvaluator extends Object
Evaluates if an extension is supported and acts accordingly if it is not.
-
-
Constructor Summary
Constructors Constructor Description ExtensionSupportEvaluator()ExtensionSupportEvaluator(UnsupportedExtensionBehavior behavior, Set<String> ignore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckSupport(String extensionName)Checks if an extension is supported by ocfl-java, and returns true if it is.
-
-
-
Constructor Detail
-
ExtensionSupportEvaluator
public ExtensionSupportEvaluator()
-
ExtensionSupportEvaluator
public ExtensionSupportEvaluator(UnsupportedExtensionBehavior behavior, Set<String> ignore)
-
-
Method Detail
-
checkSupport
public boolean checkSupport(String extensionName)
Checks if an extension is supported by ocfl-java, and returns true if it is. If it is not, either an exception is thrown or a WARNing is logged based on how this class is configured.- Parameters:
extensionName- the name of the extension to check- Returns:
- true if the extension is supported
-
-