|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensaml.XML.ParserPool
Nested class that provides XML parsers as a pooled resource
| Constructor Summary | |
XML.ParserPool()
Constructor for the ParserPool object |
|
| Method Summary | |
void |
error(org.xml.sax.SAXParseException e)
Called by parser if an error is detected, currently just throws e |
void |
fatalError(org.xml.sax.SAXParseException exception)
Called by parser if a fatal error is detected, does nothing |
org.apache.xerces.parsers.DOMParser |
get()
Get a DOM parser suitable for our task |
org.w3c.dom.Document |
newDocument()
Builds a new DOM document |
org.w3c.dom.Document |
parse(java.io.InputStream in)
Parses a document using a pooled parser with the proper settings |
org.w3c.dom.Document |
parse(java.lang.String systemId)
Parses a document using a pooled parser with the proper settings |
void |
put(org.apache.xerces.parsers.DOMParser p)
Return a parser to the pool |
void |
registerSchema(java.lang.String namespace,
java.lang.String schema,
org.xml.sax.EntityResolver resolver)
Registers an extension schema and optional resolver with the parser runtime |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
A customized entity resolver that utilizes internal machinery for the SAML, SOAP, and DSig schemas and chains to externally provided resolvers |
void |
warning(org.xml.sax.SAXParseException e)
Called by parser if a warning is issued, currently logs the condition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XML.ParserPool()
| Method Detail |
public org.apache.xerces.parsers.DOMParser get()
throws SAMLException
SAMLException - Raised if a system error prevents a parser
from being created
public org.w3c.dom.Document parse(java.io.InputStream in)
throws SAMLException,
org.xml.sax.SAXException,
java.io.IOException
in - A stream containing the content to
be parsed
SAMLException - Raised if a parser is unavailable
org.xml.sax.SAXException - Raised if a parsing error occurs
java.io.IOException - Raised if an I/O error occurs
public org.w3c.dom.Document parse(java.lang.String systemId)
throws SAMLException,
org.xml.sax.SAXException,
java.io.IOException
systemId - The URI to parse
SAMLException - Raised if a parser is unavailable
org.xml.sax.SAXException - Raised if a parsing error occurs
java.io.IOException - Raised if an I/O error occurspublic org.w3c.dom.Document newDocument()
public void registerSchema(java.lang.String namespace,
java.lang.String schema,
org.xml.sax.EntityResolver resolver)
namespace - The extension namespaceschema - The system ID of the extension schemaresolver - An optional entity resolver that can custom
resolve the schemapublic void put(org.apache.xerces.parsers.DOMParser p)
p - Description of Parameter
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
resolveEntity in interface org.xml.sax.EntityResolverpublicId - The public identifier of the entitysystemId - The system identifier of the entity
org.xml.sax.SAXException - Raised if an XML parsing problem
occurs
java.io.IOException - Raised if an I/O problem is detected
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerexception - Describes the error
org.xml.sax.SAXException - Can be raised to indicate an explicit error
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
error in interface org.xml.sax.ErrorHandlere - Description of Parameter
org.xml.sax.SAXParseException - Can be raised to indicate an explicit
error
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
warning in interface org.xml.sax.ErrorHandlere - Describes the warning
org.xml.sax.SAXParseException - Can be raised to indicate an explicit
error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||