Class WSITXMLFactory


  • public class WSITXMLFactory
    extends Object
    Author:
    Nithya Subramanian Class to invoke secure XML Factory methods. TODO: Refactor this code to istack-commons, Replica of XMLFactory in JAXB internal
    • Field Detail

      • DISABLE_SECURE_PROCESSING

        public static final boolean DISABLE_SECURE_PROCESSING
    • Constructor Detail

      • WSITXMLFactory

        public WSITXMLFactory()
    • Method Detail

      • createSchemaFactory

        public static final SchemaFactory createSchemaFactory​(String language,
                                                              boolean disableSecureProcessing)
                                                       throws IllegalArgumentException
        Returns properly configured (e.g. security features) schema factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true
        Throws:
        IllegalArgumentException
      • createParserFactory

        public static final SAXParserFactory createParserFactory​(boolean disableSecureProcessing)
                                                          throws IllegalArgumentException
        Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true
        Throws:
        IllegalArgumentException
      • createXPathFactory

        public static final XPathFactory createXPathFactory​(boolean disableSecureProcessing)
                                                     throws IllegalArgumentException
        Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true
        Throws:
        IllegalArgumentException
      • createTransformerFactory

        public static final TransformerFactory createTransformerFactory​(boolean disableSecureProcessing)
                                                                 throws IllegalArgumentException
        Returns properly configured (e.g. security features) factory - securityProcessing == is set based on security processing property, default is true
        Throws:
        IllegalArgumentException
      • createDocumentBuilderFactory

        public static final 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