Package com.verisign.epp.util
Class EPPXMLParser
- java.lang.Object
-
- javax.xml.parsers.DocumentBuilder
-
- com.verisign.epp.util.EPPXMLParser
-
public class EPPXMLParser extends javax.xml.parsers.DocumentBuilder
XML Parser class used for EPP parsing. This class is a subclass ofDocumentBuilder
and is a thin-wrapper around an initializedDocumentBuilder
instance. TheEPPXMLParser
sets the required parser settings (i.e. Namespace aware, validating) and sets a standard error handler and entity resolver. Instances ofEPPXMLParser
can be polled, since the default constructor will do all of the initialization required for the parser to properly parse EPP XML messages.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
POOL
Name of the EPP XML Parser Pool managed byGenericPoolManager
.
-
Constructor Summary
Constructors Constructor Description EPPXMLParser()
Default constructor, which will create the containedDocumentBuilder
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.DOMImplementation
getDOMImplementation()
Delegates to the containedDocumentBuilder
instance for behavior.boolean
isNamespaceAware()
Delegates to the containedDocumentBuilder
instance for behavior.boolean
isValidating()
Delegates to the containedDocumentBuilder
instance for behavior.org.w3c.dom.Document
newDocument()
Delegates to the containedDocumentBuilder
instance for behavior.org.w3c.dom.Document
parse(java.io.File aFile)
Delegates to the containedDocumentBuilder
instance for behavior.org.w3c.dom.Document
parse(java.io.InputStream aStream)
Delegates to the containedDocumentBuilder
instance for behavior.org.w3c.dom.Document
parse(java.io.InputStream aStream, java.lang.String aSystemId)
Delegates to the containedDocumentBuilder
instance for behavior.org.w3c.dom.Document
parse(java.lang.String aURI)
Delegates to the containedDocumentBuilder
instance for behavior.org.w3c.dom.Document
parse(org.xml.sax.InputSource aSource)
Delegates to the containedDocumentBuilder
instance for behavior.void
setEntityResolver(org.xml.sax.EntityResolver aResolver)
Delegates to the containedDocumentBuilder
instance for behavior.void
setErrorHandler(org.xml.sax.ErrorHandler aHandler)
Delegates to the containedDocumentBuilder
instance for behavior.
-
-
-
Field Detail
-
POOL
public static final java.lang.String POOL
Name of the EPP XML Parser Pool managed byGenericPoolManager
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPXMLParser
public EPPXMLParser()
Default constructor, which will create the containedDocumentBuilder
and will set the default error handler (EPPXMLErrorHandler
) and the default entity resolver (EPPEntityResolver
).
-
EPPXMLParser
public EPPXMLParser(boolean validateSchema)
Create a new EPPXMLParser with the specified validation setting.- Parameters:
validateSchema
- Parser will perform schema validation if true and won't if false.
-
-
Method Detail
-
getDOMImplementation
public org.w3c.dom.DOMImplementation getDOMImplementation()
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
getDOMImplementation
in classjavax.xml.parsers.DocumentBuilder
-
isNamespaceAware
public boolean isNamespaceAware()
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
isNamespaceAware
in classjavax.xml.parsers.DocumentBuilder
-
isValidating
public boolean isValidating()
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
isValidating
in classjavax.xml.parsers.DocumentBuilder
-
parse
public org.w3c.dom.Document parse(java.io.File aFile) throws org.xml.sax.SAXException, java.io.IOException
Delegates to the containedDocumentBuilder
instance for behavior.- Overrides:
parse
in classjavax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
parse
public org.w3c.dom.Document parse(java.io.InputStream aStream) throws org.xml.sax.SAXException, java.io.IOException
Delegates to the containedDocumentBuilder
instance for behavior.- Overrides:
parse
in classjavax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
parse
public org.w3c.dom.Document parse(org.xml.sax.InputSource aSource) throws org.xml.sax.SAXException, java.io.IOException
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
parse
in classjavax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
parse
public org.w3c.dom.Document parse(java.io.InputStream aStream, java.lang.String aSystemId) throws org.xml.sax.SAXException, java.io.IOException
Delegates to the containedDocumentBuilder
instance for behavior.- Overrides:
parse
in classjavax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
parse
public org.w3c.dom.Document parse(java.lang.String aURI) throws org.xml.sax.SAXException, java.io.IOException
Delegates to the containedDocumentBuilder
instance for behavior.- Overrides:
parse
in classjavax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver aResolver)
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
setEntityResolver
in classjavax.xml.parsers.DocumentBuilder
-
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler aHandler)
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
setErrorHandler
in classjavax.xml.parsers.DocumentBuilder
-
newDocument
public org.w3c.dom.Document newDocument()
Delegates to the containedDocumentBuilder
instance for behavior.- Specified by:
newDocument
in classjavax.xml.parsers.DocumentBuilder
-
-