Class SecureSaxParserFactory
- java.lang.Object
-
- javax.xml.parsers.SAXParserFactory
-
- org.glassfish.jersey.jaxb.internal.SecureSaxParserFactory
-
public class SecureSaxParserFactory extends javax.xml.parsers.SAXParserFactorySecure SAX parser factory wrapper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSecureSaxParserFactory.WrappingSAXParser
-
Field Summary
Fields Modifier and Type Field Description private static org.xml.sax.EntityResolverEMPTY_ENTITY_RESOLVERprivate static java.lang.StringEXTERNAL_GENERAL_ENTITIES_FEATUREprivate static java.lang.StringEXTERNAL_PARAMETER_ENTITIES_FEATUREprivate static java.util.logging.LoggerLOGGERprivate javax.xml.parsers.SAXParserFactoryspf
-
Constructor Summary
Constructors Constructor Description SecureSaxParserFactory(javax.xml.parsers.SAXParserFactory spf)Create new secure SAX parser factory wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetFeature(java.lang.String s)javax.xml.validation.SchemagetSchema()booleanisNamespaceAware()booleanisValidating()booleanisXIncludeAware()javax.xml.parsers.SAXParsernewSAXParser()voidsetFeature(java.lang.String s, boolean b)voidsetNamespaceAware(boolean b)voidsetSchema(javax.xml.validation.Schema schema)voidsetValidating(boolean b)voidsetXIncludeAware(boolean b)
-
-
-
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
-
-
Method Detail
-
setNamespaceAware
public void setNamespaceAware(boolean b)
- Overrides:
setNamespaceAwarein classjavax.xml.parsers.SAXParserFactory
-
setValidating
public void setValidating(boolean b)
- Overrides:
setValidatingin classjavax.xml.parsers.SAXParserFactory
-
isNamespaceAware
public boolean isNamespaceAware()
- Overrides:
isNamespaceAwarein classjavax.xml.parsers.SAXParserFactory
-
isValidating
public boolean isValidating()
- Overrides:
isValidatingin classjavax.xml.parsers.SAXParserFactory
-
getSchema
public javax.xml.validation.Schema getSchema()
- Overrides:
getSchemain classjavax.xml.parsers.SAXParserFactory
-
setSchema
public void setSchema(javax.xml.validation.Schema schema)
- Overrides:
setSchemain classjavax.xml.parsers.SAXParserFactory
-
setXIncludeAware
public void setXIncludeAware(boolean b)
- Overrides:
setXIncludeAwarein classjavax.xml.parsers.SAXParserFactory
-
isXIncludeAware
public boolean isXIncludeAware()
- Overrides:
isXIncludeAwarein classjavax.xml.parsers.SAXParserFactory
-
newSAXParser
public javax.xml.parsers.SAXParser newSAXParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException- Specified by:
newSAXParserin classjavax.xml.parsers.SAXParserFactory- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.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:
setFeaturein classjavax.xml.parsers.SAXParserFactory- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.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:
getFeaturein classjavax.xml.parsers.SAXParserFactory- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
-