Class SecureSaxParserFactory


  • public class SecureSaxParserFactory
    extends javax.xml.parsers.SAXParserFactory
    Secure SAX parser factory wrapper.
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • EMPTY_ENTITY_RESOLVER

        private static final org.xml.sax.EntityResolver EMPTY_ENTITY_RESOLVER
      • EXTERNAL_GENERAL_ENTITIES_FEATURE

        private static final java.lang.String EXTERNAL_GENERAL_ENTITIES_FEATURE
        See Also:
        Constant Field Values
      • EXTERNAL_PARAMETER_ENTITIES_FEATURE

        private static final java.lang.String EXTERNAL_PARAMETER_ENTITIES_FEATURE
        See Also:
        Constant Field Values
      • spf

        private final javax.xml.parsers.SAXParserFactory spf
    • Constructor Detail

      • SecureSaxParserFactory

        public SecureSaxParserFactory​(javax.xml.parsers.SAXParserFactory spf)
        Create new secure SAX parser factory wrapper.
        Parameters:
        spf - SAX parser factory.
    • Method Detail

      • setNamespaceAware

        public void setNamespaceAware​(boolean b)
        Overrides:
        setNamespaceAware in class javax.xml.parsers.SAXParserFactory
      • setValidating

        public void setValidating​(boolean b)
        Overrides:
        setValidating in class javax.xml.parsers.SAXParserFactory
      • isNamespaceAware

        public boolean isNamespaceAware()
        Overrides:
        isNamespaceAware in class javax.xml.parsers.SAXParserFactory
      • isValidating

        public boolean isValidating()
        Overrides:
        isValidating in class javax.xml.parsers.SAXParserFactory
      • getSchema

        public javax.xml.validation.Schema getSchema()
        Overrides:
        getSchema in class javax.xml.parsers.SAXParserFactory
      • setSchema

        public void setSchema​(javax.xml.validation.Schema schema)
        Overrides:
        setSchema in class javax.xml.parsers.SAXParserFactory
      • setXIncludeAware

        public void setXIncludeAware​(boolean b)
        Overrides:
        setXIncludeAware in class javax.xml.parsers.SAXParserFactory
      • isXIncludeAware

        public boolean isXIncludeAware()
        Overrides:
        isXIncludeAware in class javax.xml.parsers.SAXParserFactory
      • newSAXParser

        public javax.xml.parsers.SAXParser newSAXParser()
                                                 throws javax.xml.parsers.ParserConfigurationException,
                                                        org.xml.sax.SAXException
        Specified by:
        newSAXParser in class javax.xml.parsers.SAXParserFactory
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
      • setFeature

        public void setFeature​(java.lang.String s,
                               boolean b)
                        throws javax.xml.parsers.ParserConfigurationException,
                               org.xml.sax.SAXNotRecognizedException,
                               org.xml.sax.SAXNotSupportedException
        Specified by:
        setFeature in class javax.xml.parsers.SAXParserFactory
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXNotRecognizedException
        org.xml.sax.SAXNotSupportedException
      • getFeature

        public boolean getFeature​(java.lang.String s)
                           throws javax.xml.parsers.ParserConfigurationException,
                                  org.xml.sax.SAXNotRecognizedException,
                                  org.xml.sax.SAXNotSupportedException
        Specified by:
        getFeature in class javax.xml.parsers.SAXParserFactory
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXNotRecognizedException
        org.xml.sax.SAXNotSupportedException