Class XmlProvider
- java.lang.Object
-
- org.apache.activemq.artemis.utils.XmlProvider
-
public class XmlProvider extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringARTEMIS_DISABLE_XXE_PROPERTYstatic StringIGNORE_COMMENTS_PROPERTYstatic StringIGNORE_ELEMENT_CONTENT_WHITESPACE_PROPERTYstatic StringNAMESPACE_AWARE_PROPERTYstatic StringXINCLUDE_AWARE_PROPERTY
-
Constructor Summary
Constructors Constructor Description XmlProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLStreamReadercreateXMLStreamReader(InputStream inputStream)static booleanisXxeEnabled()static DocumentBuildernewDocumentBuilder()static DocumentBuildernewDocumentBuilder(Map<String,Boolean> features, Map<String,Boolean> properties)static SchemanewSchema(Source schema, Map<String,Boolean> features)static TransformernewTransformer()static ValidatornewValidator(URL schema)static voidsetXxeEnabled(boolean enabled)
-
-
-
Field Detail
-
ARTEMIS_DISABLE_XXE_PROPERTY
public static final String ARTEMIS_DISABLE_XXE_PROPERTY
- See Also:
- Constant Field Values
-
XINCLUDE_AWARE_PROPERTY
public static final String XINCLUDE_AWARE_PROPERTY
- See Also:
- Constant Field Values
-
NAMESPACE_AWARE_PROPERTY
public static final String NAMESPACE_AWARE_PROPERTY
- See Also:
- Constant Field Values
-
IGNORE_COMMENTS_PROPERTY
public static final String IGNORE_COMMENTS_PROPERTY
- See Also:
- Constant Field Values
-
IGNORE_ELEMENT_CONTENT_WHITESPACE_PROPERTY
public static final String IGNORE_ELEMENT_CONTENT_WHITESPACE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
isXxeEnabled
public static boolean isXxeEnabled()
-
setXxeEnabled
public static void setXxeEnabled(boolean enabled)
-
newDocumentBuilder
public static DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
newDocumentBuilder
public static DocumentBuilder newDocumentBuilder(Map<String,Boolean> features, Map<String,Boolean> properties) throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(InputStream inputStream) throws XMLStreamException
- Throws:
XMLStreamException
-
newSchema
public static Schema newSchema(Source schema, Map<String,Boolean> features) throws SAXException
- Throws:
SAXException
-
newTransformer
public static Transformer newTransformer() throws TransformerConfigurationException
-
newValidator
public static Validator newValidator(URL schema) throws SAXException
- Throws:
SAXException
-
-