com.genesyslab.platform.commons.xmlfactory
Class XmlFactories
java.lang.Object
com.genesyslab.platform.commons.xmlfactory.XmlFactories
public class XmlFactories
- extends java.lang.Object
This class allows PSDK customization for base Java XML factories implementation.
PSDK uses following XML framework engines: javax.xml.parsers
,
javax.xml.transform
and javax.xml.xpath
.
The Java default "entry point" classes are following:
DocumentBuilderFactory
-
DocumentBuilderFactory.newInstance()
TransformerFactory
-
TransformerFactory.newInstance()
XPathFactory
-
XPathFactory.newInstance()
Java allows substitution of its default implementation with custom XML engines
(see appropriate Java documentation for details), but sometimes it may be required
to change XML engine implementation for PSDK separately.
To let PSDK use non-jvm-default implementation it is possible
to use jvm parameters like:
java ... -Dcom.genesyslab.platform.commons.xml-doc-builder-factory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl ...
or with java code before any PSDK connections related code:
System.setProperty(XmlFactories.DOC_BUILDER_FACTORY_CLASSNAME_PROPERTY,
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
For example, known implementation classes are:
- Sun Java defaults (built-in):
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
"
"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
"
"com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl
"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOC_BUILDER_FACTORY_CLASSNAME_PROPERTY
public static final java.lang.String DOC_BUILDER_FACTORY_CLASSNAME_PROPERTY
- See Also:
- Constant Field Values
TRANSFORMER_FACTORY_CLASSNAME_PROPERTY
public static final java.lang.String TRANSFORMER_FACTORY_CLASSNAME_PROPERTY
- See Also:
- Constant Field Values
XPATH_FACTORY_CLASSNAME_PROPERTY
@Deprecated
public static final java.lang.String XPATH_FACTORY_CLASSNAME_PROPERTY
- Deprecated.
- See Also:
- Constant Field Values
XmlFactories
public XmlFactories()
newDocumentBuilderFactory
public static javax.xml.parsers.DocumentBuilderFactory newDocumentBuilderFactory()
newDocumentBuilder
public static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
newDocumentBuilderNS
public static javax.xml.parsers.DocumentBuilder newDocumentBuilderNS()
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
newDocumentBuilder
public static javax.xml.parsers.DocumentBuilder newDocumentBuilder(boolean useNS)
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
newTransformerFactory
public static javax.xml.transform.TransformerFactory newTransformerFactory()
newTransformer
public static javax.xml.transform.Transformer newTransformer()
throws javax.xml.transform.TransformerConfigurationException
- Throws:
javax.xml.transform.TransformerConfigurationException
newTransformer
public static javax.xml.transform.Transformer newTransformer(javax.xml.transform.Source source)
throws javax.xml.transform.TransformerConfigurationException
- Throws:
javax.xml.transform.TransformerConfigurationException
newXPathFactory
@Deprecated
public static javax.xml.xpath.XPathFactory newXPathFactory()
- Deprecated.
newXPath
@Deprecated
public static javax.xml.xpath.XPath newXPath()
- Deprecated.
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.