org.opensaml.xml.parse
Class BasicParserPool.DocumentBuilderProxy

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilder
      extended by org.opensaml.xml.parse.BasicParserPool.DocumentBuilderProxy
Enclosing class:
BasicParserPool

protected class BasicParserPool.DocumentBuilderProxy
extends javax.xml.parsers.DocumentBuilder

A proxy that prevents the manages document builders retrieved from the parser pool.


Constructor Summary
BasicParserPool.DocumentBuilderProxy(javax.xml.parsers.DocumentBuilder target, BasicParserPool owner)
          Constructor.
 
Method Summary
protected  void finalize()
          
 org.w3c.dom.DOMImplementation getDOMImplementation()
          
protected  ParserPool getOwningPool()
          Gets the pool that owns this parser.
protected  long getPoolVersion()
          Gets the version of the pool that owns this parser at the time of the proxy's creation.
protected  javax.xml.parsers.DocumentBuilder getProxiedBuilder()
          Gets the proxied document builder.
 javax.xml.validation.Schema getSchema()
          
 boolean isNamespaceAware()
          
 boolean isValidating()
          
 boolean isXIncludeAware()
          
 org.w3c.dom.Document newDocument()
          
 org.w3c.dom.Document parse(java.io.File f)
          
 org.w3c.dom.Document parse(org.xml.sax.InputSource is)
          
 org.w3c.dom.Document parse(java.io.InputStream is)
          
 org.w3c.dom.Document parse(java.io.InputStream is, java.lang.String systemId)
          
 org.w3c.dom.Document parse(java.lang.String uri)
          
 void reset()
          
 void setEntityResolver(org.xml.sax.EntityResolver er)
          
 void setErrorHandler(org.xml.sax.ErrorHandler eh)
          
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicParserPool.DocumentBuilderProxy

public BasicParserPool.DocumentBuilderProxy(javax.xml.parsers.DocumentBuilder target,
                                            BasicParserPool owner)
Constructor.

Parameters:
target - document builder to proxy
owner - the owning pool
Method Detail

getDOMImplementation

public org.w3c.dom.DOMImplementation getDOMImplementation()

Specified by:
getDOMImplementation in class javax.xml.parsers.DocumentBuilder

getSchema

public javax.xml.validation.Schema getSchema()

Overrides:
getSchema in class javax.xml.parsers.DocumentBuilder

isNamespaceAware

public boolean isNamespaceAware()

Specified by:
isNamespaceAware in class javax.xml.parsers.DocumentBuilder

isValidating

public boolean isValidating()

Specified by:
isValidating in class javax.xml.parsers.DocumentBuilder

isXIncludeAware

public boolean isXIncludeAware()

Overrides:
isXIncludeAware in class javax.xml.parsers.DocumentBuilder

newDocument

public org.w3c.dom.Document newDocument()

Specified by:
newDocument in class javax.xml.parsers.DocumentBuilder

parse

public org.w3c.dom.Document parse(java.io.File f)
                           throws org.xml.sax.SAXException,
                                  java.io.IOException

Overrides:
parse in class javax.xml.parsers.DocumentBuilder
Throws:
org.xml.sax.SAXException
java.io.IOException

parse

public org.w3c.dom.Document parse(org.xml.sax.InputSource is)
                           throws org.xml.sax.SAXException,
                                  java.io.IOException

Specified by:
parse in class javax.xml.parsers.DocumentBuilder
Throws:
org.xml.sax.SAXException
java.io.IOException

parse

public org.w3c.dom.Document parse(java.io.InputStream is)
                           throws org.xml.sax.SAXException,
                                  java.io.IOException

Overrides:
parse in class javax.xml.parsers.DocumentBuilder
Throws:
org.xml.sax.SAXException
java.io.IOException

parse

public org.w3c.dom.Document parse(java.io.InputStream is,
                                  java.lang.String systemId)
                           throws org.xml.sax.SAXException,
                                  java.io.IOException

Overrides:
parse in class javax.xml.parsers.DocumentBuilder
Throws:
org.xml.sax.SAXException
java.io.IOException

parse

public org.w3c.dom.Document parse(java.lang.String uri)
                           throws org.xml.sax.SAXException,
                                  java.io.IOException

Overrides:
parse in class javax.xml.parsers.DocumentBuilder
Throws:
org.xml.sax.SAXException
java.io.IOException

reset

public void reset()

Overrides:
reset in class javax.xml.parsers.DocumentBuilder

setEntityResolver

public void setEntityResolver(org.xml.sax.EntityResolver er)

Specified by:
setEntityResolver in class javax.xml.parsers.DocumentBuilder

setErrorHandler

public void setErrorHandler(org.xml.sax.ErrorHandler eh)

Specified by:
setErrorHandler in class javax.xml.parsers.DocumentBuilder

getOwningPool

protected ParserPool getOwningPool()
Gets the pool that owns this parser.

Returns:
pool that owns this parser

getPoolVersion

protected long getPoolVersion()
Gets the version of the pool that owns this parser at the time of the proxy's creation.

Returns:
version of the pool that owns this parser at the time of the proxy's creation

getProxiedBuilder

protected javax.xml.parsers.DocumentBuilder getProxiedBuilder()
Gets the proxied document builder.

Returns:
proxied document builder

finalize

protected void finalize()
                 throws java.lang.Throwable

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable


Copyright © 2006-2010 Internet2. All Rights Reserved.