public class EPPXMLParser
extends javax.xml.parsers.DocumentBuilder
DocumentBuilder and is
a thin-wrapper around an initialized DocumentBuilder
instance. The EPPXMLParser sets the
required parser settings (i.e. Namespace aware, validating)
and sets a standard error handler and entity resolver.
Instances of EPPXMLParser can be polled,
since the default constructor will do all of the initialization
required for the parser to properly parse EPP XML messages.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
POOL
Name of the EPP XML Parser Pool managed by
GenericPoolManager. |
| Constructor and Description |
|---|
EPPXMLParser()
Default constructor, which will create the contained
DocumentBuilder and will set the default
error handler (EPPXMLErrorHandler) and the
default entity resolver (EPPEntityResolver). |
EPPXMLParser(boolean validateSchema)
Create a new EPPXMLParser with the specified validation setting.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.DOMImplementation |
getDOMImplementation()
Delegates to the contained
DocumentBuilder
instance for behavior. |
boolean |
isNamespaceAware()
Delegates to the contained
DocumentBuilder
instance for behavior. |
boolean |
isValidating()
Delegates to the contained
DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
newDocument()
Delegates to the contained
DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.io.File aFile)
Delegates to the contained
DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(org.xml.sax.InputSource aSource)
Delegates to the contained
DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.io.InputStream aStream)
Delegates to the contained
DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.io.InputStream aStream,
java.lang.String aSystemId)
Delegates to the contained
DocumentBuilder
instance for behavior. |
org.w3c.dom.Document |
parse(java.lang.String aURI)
Delegates to the contained
DocumentBuilder
instance for behavior. |
void |
setEntityResolver(org.xml.sax.EntityResolver aResolver)
Delegates to the contained
DocumentBuilder
instance for behavior. |
void |
setErrorHandler(org.xml.sax.ErrorHandler aHandler)
Delegates to the contained
DocumentBuilder
instance for behavior. |
public static final java.lang.String POOL
GenericPoolManager.public EPPXMLParser()
DocumentBuilder and will set the default
error handler (EPPXMLErrorHandler) and the
default entity resolver (EPPEntityResolver).public EPPXMLParser(boolean validateSchema)
validateSchema - Parser will perform schema validation if true and won't
if false.public org.w3c.dom.DOMImplementation getDOMImplementation()
DocumentBuilder
instance for behavior.getDOMImplementation in class javax.xml.parsers.DocumentBuilderpublic boolean isNamespaceAware()
DocumentBuilder
instance for behavior.isNamespaceAware in class javax.xml.parsers.DocumentBuilderpublic boolean isValidating()
DocumentBuilder
instance for behavior.isValidating in class javax.xml.parsers.DocumentBuilderpublic org.w3c.dom.Document parse(java.io.File aFile)
throws org.xml.sax.SAXException,
java.io.IOException
DocumentBuilder
instance for behavior.parse in class javax.xml.parsers.DocumentBuilderorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(java.io.InputStream aStream)
throws org.xml.sax.SAXException,
java.io.IOException
DocumentBuilder
instance for behavior.parse in class javax.xml.parsers.DocumentBuilderorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(org.xml.sax.InputSource aSource)
throws org.xml.sax.SAXException,
java.io.IOException
DocumentBuilder
instance for behavior.parse in class javax.xml.parsers.DocumentBuilderorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(java.io.InputStream aStream,
java.lang.String aSystemId)
throws org.xml.sax.SAXException,
java.io.IOException
DocumentBuilder
instance for behavior.parse in class javax.xml.parsers.DocumentBuilderorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(java.lang.String aURI)
throws org.xml.sax.SAXException,
java.io.IOException
DocumentBuilder
instance for behavior.parse in class javax.xml.parsers.DocumentBuilderorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void setEntityResolver(org.xml.sax.EntityResolver aResolver)
DocumentBuilder
instance for behavior.setEntityResolver in class javax.xml.parsers.DocumentBuilderpublic void setErrorHandler(org.xml.sax.ErrorHandler aHandler)
DocumentBuilder
instance for behavior.setErrorHandler in class javax.xml.parsers.DocumentBuilderpublic org.w3c.dom.Document newDocument()
DocumentBuilder
instance for behavior.newDocument in class javax.xml.parsers.DocumentBuilderCopyright © VeriSign Inc. All Rights Reserved.