com.google.gdata.util.common.xml.parsing
Class SecureGenericXMLFactory

java.lang.Object
  extended by com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory

public class SecureGenericXMLFactory
extends java.lang.Object

Secures JDK-inbuilt Xerces parsers using the public APIs.


Nested Class Summary
protected static class SecureGenericXMLFactory.SecureDocumentBuilderFactory
          Wraps an existing DocumentBuilderFactory and ensures that any returned DocumentBuilder instances are secure.
protected static class SecureGenericXMLFactory.SecureSAXParserFactory
          Wraps an existing SAXParserFactory and ensures that any returned SAXParser instances are secure.
 
Constructor Summary
protected SecureGenericXMLFactory()
           
 
Method Summary
static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory factory)
           
static javax.xml.parsers.SAXParserFactory getSAXParserFactory(javax.xml.parsers.SAXParserFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureGenericXMLFactory

protected SecureGenericXMLFactory()
Method Detail

getSAXParserFactory

public static javax.xml.parsers.SAXParserFactory getSAXParserFactory(javax.xml.parsers.SAXParserFactory factory)
                                                              throws javax.xml.parsers.ParserConfigurationException,
                                                                     org.xml.sax.SAXException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getDocumentBuilderFactory

public static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory factory)