| java.lang.Object |
| ↳ |
javax.xml.parsers.SAXParserFactory |
| |
↳ |
com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory.SecureSAXParserFactory |
Class Overview
Wraps an existing SAXParserFactory and ensures that any returned
SAXParser instances are secure.
Summary
|
[Expand]
Inherited Constants |
From class
javax.xml.parsers.SAXParserFactory
| String |
DEFAULT_PROPERTY_NAME |
|
|
| Fields |
|
private
SAXParserFactory |
factory |
|
|
[Expand]
Inherited Fields |
From class
javax.xml.parsers.SAXParserFactory
|
private
boolean |
namespaceAware |
|
|
private
boolean |
validating |
|
|
| Protected Constructors |
|
|
SecureGenericXMLFactory.SecureSAXParserFactory(SAXParserFactory factory)
Constructs a new SecureSAXParserFactory instance that delegates
most functionality to an existing instance, but overrides where
needed to protect against XXE attacks.
|
|
[Expand]
Inherited Methods |
From class
javax.xml.parsers.SAXParserFactory
|
abstract
boolean
|
getFeature(String arg0)
|
|
Schema
|
getSchema()
|
|
boolean
|
isNamespaceAware()
|
|
boolean
|
isValidating()
|
|
boolean
|
isXIncludeAware()
|
|
static
SAXParserFactory
|
newInstance(String arg0, ClassLoader arg1)
|
|
static
SAXParserFactory
|
newInstance()
|
|
abstract
SAXParser
|
newSAXParser()
|
|
abstract
void
|
setFeature(String arg0, boolean arg1)
|
|
void
|
setNamespaceAware(boolean arg0)
|
|
void
|
setSchema(Schema arg0)
|
|
void
|
setValidating(boolean arg0)
|
|
void
|
setXIncludeAware(boolean arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
SAXParserFactory
factory
Protected Constructors
protected
SecureGenericXMLFactory.SecureSAXParserFactory
(SAXParserFactory factory)
Constructs a new SecureSAXParserFactory instance that delegates
most functionality to an existing instance, but overrides where
needed to protect against XXE attacks.
Parameters
| factory
| The existing SAXParserFactory that should be secured. |
Throws
| ParserConfigurationException
| on configuration errors. |
| SAXException
| on configuration failures.
|
Public Methods
public
boolean
getFeature
(String name)
Throws
| ParserConfigurationException
| |
| SAXNotRecognizedException
| |
| SAXNotSupportedException
| |
public
Schema
getSchema
()
Throws
| UnsupportedOperationException
| |
public
boolean
isNamespaceAware
()
public
boolean
isValidating
()
public
boolean
isXIncludeAware
()
Throws
| UnsupportedOperationException
| |
public
SAXParser
newSAXParser
()
Throws
| ParserConfigurationException
| |
| SAXException
| |
public
void
setFeature
(String name, boolean value)
Throws
| ParserConfigurationException
| |
| SAXNotRecognizedException
| |
| SAXNotSupportedException
| |
public
void
setNamespaceAware
(boolean awareness)
public
void
setSchema
(Schema schema)
Throws
| UnsupportedOperationException
| |
public
void
setValidating
(boolean validating)
public
void
setXIncludeAware
(boolean state)
Throws
| UnsupportedOperationException
| |