com.sun.xml.bind.v2.util
Class XmlFactory

java.lang.Object
  extended by com.sun.xml.bind.v2.util.XmlFactory

public class XmlFactory
extends java.lang.Object

Provides helper methods for creating properly configured XML parser factory instances with namespace support turned on and configured for security.


Field Summary
static boolean DISABLE_SECURE_PROCESSING
           
static java.lang.Exception er
           
static java.util.logging.Logger logger
           
 
Constructor Summary
XmlFactory()
           
 
Method Summary
static javax.xml.parsers.DocumentBuilderFactory createDocumentBuilderFactory(boolean disableSecureProcessing)
          Returns properly configured (e.g.
static javax.xml.parsers.SAXParserFactory createParserFactory(boolean disableSecureProcessing)
          Returns properly configured (e.g.
static javax.xml.validation.SchemaFactory createSchemaFactory(java.lang.String language, boolean disableSecureProcessing)
          Returns properly configured (e.g.
static javax.xml.transform.TransformerFactory createTransformerFactory(boolean disableSecureProcessing)
          Returns properly configured (e.g.
static javax.xml.xpath.XPathFactory createXPathFactory(boolean disableSecureProcessing)
          Returns properly configured (e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final java.util.logging.Logger logger

DISABLE_SECURE_PROCESSING

public static final boolean DISABLE_SECURE_PROCESSING

er

public static java.lang.Exception er
Constructor Detail

XmlFactory

public XmlFactory()
Method Detail

createSchemaFactory

public static final javax.xml.validation.SchemaFactory createSchemaFactory(java.lang.String language,
                                                                           boolean disableSecureProcessing)
                                                                    throws java.lang.IllegalStateException
Returns properly configured (e.g. security features) schema factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

Throws:
java.lang.IllegalStateException

createParserFactory

public static final javax.xml.parsers.SAXParserFactory createParserFactory(boolean disableSecureProcessing)
                                                                    throws java.lang.IllegalStateException
Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

Throws:
java.lang.IllegalStateException

createXPathFactory

public static final javax.xml.xpath.XPathFactory createXPathFactory(boolean disableSecureProcessing)
                                                             throws java.lang.IllegalStateException
Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true

Throws:
java.lang.IllegalStateException

createTransformerFactory

public static final javax.xml.transform.TransformerFactory createTransformerFactory(boolean disableSecureProcessing)
                                                                             throws java.lang.IllegalStateException
Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true

Throws:
java.lang.IllegalStateException

createDocumentBuilderFactory

public static final javax.xml.parsers.DocumentBuilderFactory createDocumentBuilderFactory(boolean disableSecureProcessing)
                                                                                   throws java.lang.IllegalStateException
Returns properly configured (e.g. security features) factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true

Throws:
java.lang.IllegalStateException