| java.lang.Object |
| ↳ |
javax.xml.parsers.DocumentBuilderFactory |
| |
↳ |
com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory.SecureDocumentBuilderFactory |
Class Overview
Wraps an existing DocumentBuilderFactory and ensures that any returned
DocumentBuilder instances are secure.
Summary
|
[Expand]
Inherited Constants |
From class
javax.xml.parsers.DocumentBuilderFactory
| String |
DEFAULT_PROPERTY_NAME |
|
|
| Fields |
|
private
DocumentBuilderFactory |
factory |
|
|
[Expand]
Inherited Fields |
From class
javax.xml.parsers.DocumentBuilderFactory
|
private
boolean |
canonicalState |
|
|
private
boolean |
coalescing |
|
|
private
boolean |
expandEntityRef |
|
|
private
boolean |
ignoreComments |
|
|
private
boolean |
namespaceAware |
|
|
private
boolean |
validating |
|
|
private
boolean |
whitespace |
|
|
| Protected Constructors |
|
|
SecureGenericXMLFactory.SecureDocumentBuilderFactory(DocumentBuilderFactory factory)
Constructs a new SecureDocumentBuilderFactory 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.DocumentBuilderFactory
|
abstract
Object
|
getAttribute(String arg0)
|
|
abstract
boolean
|
getFeature(String arg0)
|
|
Schema
|
getSchema()
|
|
boolean
|
isCoalescing()
|
|
boolean
|
isExpandEntityReferences()
|
|
boolean
|
isIgnoringComments()
|
|
boolean
|
isIgnoringElementContentWhitespace()
|
|
boolean
|
isNamespaceAware()
|
|
boolean
|
isValidating()
|
|
boolean
|
isXIncludeAware()
|
|
abstract
DocumentBuilder
|
newDocumentBuilder()
|
|
static
DocumentBuilderFactory
|
newInstance(String arg0, ClassLoader arg1)
|
|
static
DocumentBuilderFactory
|
newInstance()
|
|
abstract
void
|
setAttribute(String arg0, Object arg1)
|
|
void
|
setCoalescing(boolean arg0)
|
|
void
|
setExpandEntityReferences(boolean arg0)
|
|
abstract
void
|
setFeature(String arg0, boolean arg1)
|
|
void
|
setIgnoringComments(boolean arg0)
|
|
void
|
setIgnoringElementContentWhitespace(boolean arg0)
|
|
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
DocumentBuilderFactory
factory
Protected Constructors
protected
SecureGenericXMLFactory.SecureDocumentBuilderFactory
(DocumentBuilderFactory factory)
Constructs a new SecureDocumentBuilderFactory instance that delegates
most functionality to an existing instance, but overrides where
needed to protect against XXE attacks.
Parameters
| factory
| The existing DocumentBuilderFactory that should be
secured.
|
Public Methods
public
Object
getAttribute
(String name)
public
boolean
getFeature
(String name)
Throws
| ParserConfigurationException
| |
public
Schema
getSchema
()
Throws
| UnsupportedOperationException
| |
public
boolean
isCoalescing
()
public
boolean
isExpandEntityReferences
()
public
boolean
isIgnoringComments
()
public
boolean
isIgnoringElementContentWhitespace
()
public
boolean
isIncludeAware
()
Throws
| UnsupportedOperationException
| |
public
boolean
isNamespaceAware
()
public
boolean
isValidating
()
public
DocumentBuilder
newDocumentBuilder
()
Throws
| ParserConfigurationException
| |
public
void
setAttribute
(String name, Object value)
public
void
setCoalescing
(boolean coalescing)
public
void
setExpandEntityReferences
(boolean expandEntityRef)
public
void
setFeature
(String name, boolean value)
Throws
| ParserConfigurationException
| |
public
void
setIgnoringComments
(boolean ignoreComments)
public
void
setIgnoringElementContentWhitespace
(boolean whitespace)
public
void
setNamespaceAware
(boolean awareness)
public
void
setSchema
(Schema schema)
Throws
| UnsupportedOperationException
| |
public
void
setValidating
(boolean validating)
public
void
setXIncludeAware
(boolean state)
Throws
| UnsupportedOperationException
| |