- java.lang.Object
-
- org.eclipse.persistence.internal.helper.XMLHelper
-
public class XMLHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCESS_EXTERNAL_DTDstatic StringACCESS_EXTERNAL_SCHEMA
-
Constructor Summary
Constructors Constructor Description XMLHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentBuilderFactoryallowExternalAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)static TransformerFactoryallowExternalAccess(TransformerFactory tf, String value, boolean disableSecureProcessing)static SchemaFactoryallowExternalAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)static XMLReaderallowExternalAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)static DocumentBuilderFactoryallowExternalDTDAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)static SchemaFactoryallowExternalDTDAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)static XMLReaderallowExternalDTDAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)static DocumentBuilderFactorycreateDocumentBuilderFactory(boolean disableSecureProcessing)Returns properly configured (e.g.static SAXParserFactorycreateParserFactory(boolean disableSecureProcessing)Returns properly configured (e.g.static SchemaFactorycreateSchemaFactory(String language, boolean disableSecureProcessing)Returns properly configured (e.g.static TransformerFactorycreateTransformerFactory(boolean disableSecureProcessing)Returns properly configured (e.g.static XPathFactorycreateXPathFactory(boolean disableSecureProcessing)Returns properly configured (e.g.
-
-
-
Field Detail
-
ACCESS_EXTERNAL_SCHEMA
public static final String ACCESS_EXTERNAL_SCHEMA
- See Also:
- Constant Field Values
-
ACCESS_EXTERNAL_DTD
public static final String ACCESS_EXTERNAL_DTD
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSchemaFactory
public static SchemaFactory createSchemaFactory(String language, boolean disableSecureProcessing) throws IllegalStateException
Returns properly configured (e.g. security features) schema factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true- Throws:
IllegalStateException
-
createParserFactory
public static SAXParserFactory createParserFactory(boolean disableSecureProcessing) throws IllegalStateException
Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true- Throws:
IllegalStateException
-
createXPathFactory
public static XPathFactory createXPathFactory(boolean disableSecureProcessing) throws IllegalStateException
Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true- Throws:
IllegalStateException
-
createTransformerFactory
public static TransformerFactory createTransformerFactory(boolean disableSecureProcessing) throws IllegalStateException
Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true- Throws:
IllegalStateException
-
createDocumentBuilderFactory
public static DocumentBuilderFactory createDocumentBuilderFactory(boolean disableSecureProcessing) throws IllegalStateException
Returns properly configured (e.g. security features) factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true- Throws:
IllegalStateException
-
allowExternalAccess
public static SchemaFactory allowExternalAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)
-
allowExternalAccess
public static TransformerFactory allowExternalAccess(TransformerFactory tf, String value, boolean disableSecureProcessing)
-
allowExternalAccess
public static DocumentBuilderFactory allowExternalAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)
-
allowExternalAccess
public static XMLReader allowExternalAccess(XMLReader xmlReader, String value, boolean disableSecureProcessing)
-
allowExternalDTDAccess
public static SchemaFactory allowExternalDTDAccess(SchemaFactory sf, String value, boolean disableSecureProcessing)
-
allowExternalDTDAccess
public static DocumentBuilderFactory allowExternalDTDAccess(DocumentBuilderFactory dbf, String value, boolean disableSecureProcessing)
-
-