Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.xmlfactory
Class XmlFactories

java.lang.Object
  extended by 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:

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:


Field Summary
static java.lang.String DOC_BUILDER_FACTORY_CLASSNAME_PROPERTY
           
static java.lang.String TRANSFORMER_FACTORY_CLASSNAME_PROPERTY
           
static java.lang.String XPATH_FACTORY_CLASSNAME_PROPERTY
          Deprecated. 
 
Constructor Summary
XmlFactories()
           
 
Method Summary
static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
           
static javax.xml.parsers.DocumentBuilder newDocumentBuilder(boolean useNS)
           
static javax.xml.parsers.DocumentBuilderFactory newDocumentBuilderFactory()
           
static javax.xml.parsers.DocumentBuilder newDocumentBuilderNS()
           
static javax.xml.transform.Transformer newTransformer()
           
static javax.xml.transform.Transformer newTransformer(javax.xml.transform.Source source)
           
static javax.xml.transform.TransformerFactory newTransformerFactory()
           
static javax.xml.xpath.XPath newXPath()
          Deprecated. 
static javax.xml.xpath.XPathFactory newXPathFactory()
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

XmlFactories

public XmlFactories()
Method Detail

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. 


Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.