org.glassfish.jersey.message.internal
Class SecureSaxParserFactory

java.lang.Object
  extended by javax.xml.parsers.SAXParserFactory
      extended by org.glassfish.jersey.message.internal.SecureSaxParserFactory

public class SecureSaxParserFactory
extends SAXParserFactory

Secure SAX parser factory wrapper.

Author:
Martin Matula (martin.matula at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)

Constructor Summary
SecureSaxParserFactory(SAXParserFactory spf)
          Create new secure SAX parser factory wrapper.
 
Method Summary
 boolean getFeature(String s)
           
 Schema getSchema()
           
 boolean isNamespaceAware()
           
 boolean isValidating()
           
 boolean isXIncludeAware()
           
 SAXParser newSAXParser()
           
 void setFeature(String s, boolean b)
           
 void setNamespaceAware(boolean b)
           
 void setSchema(Schema schema)
           
 void setValidating(boolean b)
           
 void setXIncludeAware(boolean b)
           
 
Methods inherited from class javax.xml.parsers.SAXParserFactory
newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureSaxParserFactory

public SecureSaxParserFactory(SAXParserFactory spf)
Create new secure SAX parser factory wrapper.

Parameters:
spf - SAX parser factory.
Method Detail

setNamespaceAware

public void setNamespaceAware(boolean b)
Overrides:
setNamespaceAware in class SAXParserFactory

setValidating

public void setValidating(boolean b)
Overrides:
setValidating in class SAXParserFactory

isNamespaceAware

public boolean isNamespaceAware()
Overrides:
isNamespaceAware in class SAXParserFactory

isValidating

public boolean isValidating()
Overrides:
isValidating in class SAXParserFactory

getSchema

public Schema getSchema()
Overrides:
getSchema in class SAXParserFactory

setSchema

public void setSchema(Schema schema)
Overrides:
setSchema in class SAXParserFactory

setXIncludeAware

public void setXIncludeAware(boolean b)
Overrides:
setXIncludeAware in class SAXParserFactory

isXIncludeAware

public boolean isXIncludeAware()
Overrides:
isXIncludeAware in class SAXParserFactory

newSAXParser

public SAXParser newSAXParser()
                       throws ParserConfigurationException,
                              SAXException
Specified by:
newSAXParser in class SAXParserFactory
Throws:
ParserConfigurationException
SAXException

setFeature

public void setFeature(String s,
                       boolean b)
                throws ParserConfigurationException,
                       SAXNotRecognizedException,
                       SAXNotSupportedException
Specified by:
setFeature in class SAXParserFactory
Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException

getFeature

public boolean getFeature(String s)
                   throws ParserConfigurationException,
                          SAXNotRecognizedException,
                          SAXNotSupportedException
Specified by:
getFeature in class SAXParserFactory
Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.