Class SecureSaxParserFactory
java.lang.Object
javax.xml.parsers.SAXParserFactory
org.glassfish.jersey.jaxb.internal.SecureSaxParserFactory
Secure SAX parser factory wrapper.
- Author:
- Martin Matula, Michal Gajdos
-
Constructor Summary
ConstructorDescriptionCreate new secure SAX parser factory wrapper. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String s) boolean
boolean
boolean
void
setFeature
(String s, boolean b) void
setNamespaceAware
(boolean b) void
void
setValidating
(boolean b) void
setXIncludeAware
(boolean b) Methods inherited from class javax.xml.parsers.SAXParserFactory
newDefaultInstance, newDefaultNSInstance, newInstance, newInstance, newNSInstance, newNSInstance
-
Constructor Details
-
SecureSaxParserFactory
Create new secure SAX parser factory wrapper.- Parameters:
spf
- SAX parser factory.
-
-
Method Details
-
setNamespaceAware
public void setNamespaceAware(boolean b) - Overrides:
setNamespaceAware
in classSAXParserFactory
-
setValidating
public void setValidating(boolean b) - Overrides:
setValidating
in classSAXParserFactory
-
isNamespaceAware
public boolean isNamespaceAware()- Overrides:
isNamespaceAware
in classSAXParserFactory
-
isValidating
public boolean isValidating()- Overrides:
isValidating
in classSAXParserFactory
-
getSchema
- Overrides:
getSchema
in classSAXParserFactory
-
setSchema
- Overrides:
setSchema
in classSAXParserFactory
-
setXIncludeAware
public void setXIncludeAware(boolean b) - Overrides:
setXIncludeAware
in classSAXParserFactory
-
isXIncludeAware
public boolean isXIncludeAware()- Overrides:
isXIncludeAware
in classSAXParserFactory
-
newSAXParser
- Specified by:
newSAXParser
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXException
-
setFeature
public void setFeature(String s, boolean b) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeature
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-
getFeature
public boolean getFeature(String s) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException - Specified by:
getFeature
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-