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.DocumentBuilderXML Parser class used for EPP parsing. This class is a subclass ofDocumentBuilderand is a thin-wrapper around an initializedDocumentBuilderinstance. TheEPPXMLParsersets the required parser settings (i.e. Namespace aware, validating) and sets a standard error handler and entity resolver. Instances ofEPPXMLParsercan 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.StringPOOLName of the EPP XML Parser Pool managed byGenericPoolManager.
-
Constructor Summary
Constructors Constructor Description EPPXMLParser()Default constructor, which will create the containedDocumentBuilderand 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.DOMImplementationgetDOMImplementation()Delegates to the containedDocumentBuilderinstance for behavior.booleanisNamespaceAware()Delegates to the containedDocumentBuilderinstance for behavior.booleanisValidating()Delegates to the containedDocumentBuilderinstance for behavior.org.w3c.dom.DocumentnewDocument()Delegates to the containedDocumentBuilderinstance for behavior.org.w3c.dom.Documentparse(java.io.File aFile)Delegates to the containedDocumentBuilderinstance for behavior.org.w3c.dom.Documentparse(java.io.InputStream aStream)Delegates to the containedDocumentBuilderinstance for behavior.org.w3c.dom.Documentparse(java.io.InputStream aStream, java.lang.String aSystemId)Delegates to the containedDocumentBuilderinstance for behavior.org.w3c.dom.Documentparse(java.lang.String aURI)Delegates to the containedDocumentBuilderinstance for behavior.org.w3c.dom.Documentparse(org.xml.sax.InputSource aSource)Delegates to the containedDocumentBuilderinstance for behavior.voidsetEntityResolver(org.xml.sax.EntityResolver aResolver)Delegates to the containedDocumentBuilderinstance for behavior.voidsetErrorHandler(org.xml.sax.ErrorHandler aHandler)Delegates to the containedDocumentBuilderinstance 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 containedDocumentBuilderand 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 containedDocumentBuilderinstance for behavior.- Specified by:
getDOMImplementationin classjavax.xml.parsers.DocumentBuilder
-
isNamespaceAware
public boolean isNamespaceAware()
Delegates to the containedDocumentBuilderinstance for behavior.- Specified by:
isNamespaceAwarein classjavax.xml.parsers.DocumentBuilder
-
isValidating
public boolean isValidating()
Delegates to the containedDocumentBuilderinstance for behavior.- Specified by:
isValidatingin classjavax.xml.parsers.DocumentBuilder
-
parse
public org.w3c.dom.Document parse(java.io.File aFile) throws org.xml.sax.SAXException, java.io.IOExceptionDelegates to the containedDocumentBuilderinstance for behavior.- Overrides:
parsein classjavax.xml.parsers.DocumentBuilder- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
parse
public org.w3c.dom.Document parse(java.io.InputStream aStream) throws org.xml.sax.SAXException, java.io.IOExceptionDelegates to the containedDocumentBuilderinstance for behavior.- Overrides:
parsein classjavax.xml.parsers.DocumentBuilder- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
parse
public org.w3c.dom.Document parse(org.xml.sax.InputSource aSource) throws org.xml.sax.SAXException, java.io.IOExceptionDelegates to the containedDocumentBuilderinstance for behavior.- Specified by:
parsein classjavax.xml.parsers.DocumentBuilder- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
parse
public org.w3c.dom.Document parse(java.io.InputStream aStream, java.lang.String aSystemId) throws org.xml.sax.SAXException, java.io.IOExceptionDelegates to the containedDocumentBuilderinstance for behavior.- Overrides:
parsein classjavax.xml.parsers.DocumentBuilder- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
parse
public org.w3c.dom.Document parse(java.lang.String aURI) throws org.xml.sax.SAXException, java.io.IOExceptionDelegates to the containedDocumentBuilderinstance for behavior.- Overrides:
parsein classjavax.xml.parsers.DocumentBuilder- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver aResolver)
Delegates to the containedDocumentBuilderinstance for behavior.- Specified by:
setEntityResolverin classjavax.xml.parsers.DocumentBuilder
-
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler aHandler)
Delegates to the containedDocumentBuilderinstance for behavior.- Specified by:
setErrorHandlerin classjavax.xml.parsers.DocumentBuilder
-
newDocument
public org.w3c.dom.Document newDocument()
Delegates to the containedDocumentBuilderinstance for behavior.- Specified by:
newDocumentin classjavax.xml.parsers.DocumentBuilder
-
-