Class StandardDocumentProvider
java.lang.Object
org.apache.nifi.xml.processing.parsers.StandardDocumentProvider
- All Implemented Interfaces:
DocumentProvider
Standard implementation of Document Provider with secure processing enabled
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate DocumentBuilderFactoryprotected booleanCreate new Documentparse(InputStream inputStream) Build and return DocumentBuildervoidsetErrorHandler(ErrorHandler errorHandler) Set Error HandlervoidsetNamespaceAware(boolean namespaceAware) Set Namespace Aware status on DocumentBuilderFactoryvoidSet Namespace Aware status on DocumentBuilderFactory
-
Field Details
-
namespaceAware
private boolean namespaceAware -
schema
-
errorHandler
-
-
Constructor Details
-
StandardDocumentProvider
public StandardDocumentProvider()
-
-
Method Details
-
setErrorHandler
Set Error Handler- Parameters:
errorHandler- Error Handler
-
setNamespaceAware
public void setNamespaceAware(boolean namespaceAware) Set Namespace Aware status on DocumentBuilderFactory- Parameters:
namespaceAware- Namespace Awareness
-
setSchema
Set Namespace Aware status on DocumentBuilderFactory- Parameters:
schema- Schema for validation or null to disable validation
-
newDocument
Description copied from interface:DocumentProviderCreate new Document- Specified by:
newDocumentin interfaceDocumentProvider- Returns:
- Document
-
parse
Build and return DocumentBuilder- Specified by:
parsein interfaceDocumentProvider- Parameters:
inputStream- InputStream to be parsed- Returns:
- DocumentBuilder configured using provided properties
-
isDisallowDocumentTypeDeclaration
protected boolean isDisallowDocumentTypeDeclaration() -
getDocumentBuilderFactory
-