Package com.verisign.epp.codec.registry
Class EPPRegistryMapFactory
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPMapFactory
-
- com.verisign.epp.codec.registry.EPPRegistryMapFactory
-
public class EPPRegistryMapFactory extends EPPMapFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_REGISTRY_AUTHINFO
XML tag name associated with registry authorization information.static java.lang.String
NS
Namespace URI associated with EPPRegistryMapFactory.static java.lang.String
NS_PREFIX
Namespace prefix associated with EPPRegistryMapFactory.-
Fields inherited from class com.verisign.epp.codec.gen.EPPMapFactory
EPP_CHECK, EPP_CREATE, EPP_DELETE, EPP_INFO, EPP_LOGIN, EPP_LOGOUT, EPP_RENEW, EPP_TRANSFER, EPP_UPDATE
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryMapFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EPPCommand
createCommand(org.w3c.dom.Element aMapElement)
Abstract method that creates a concreteEPPCommand
from an XML element.EPPResponse
createResponse(org.w3c.dom.Element aMapElement)
creates a concreteEPPResponse
from the passed in XML Element tree.EPPService
getService()
Gets theEPPService
associated withEPPRegistryMapFactory
.java.util.Set
getXmlSchemas()
Gets the list of XML schemas that need to be pre-loaded into the XML Parser.
-
-
-
Field Detail
-
NS
public static final java.lang.String NS
Namespace URI associated with EPPRegistryMapFactory.- See Also:
- Constant Field Values
-
NS_PREFIX
public static final java.lang.String NS_PREFIX
Namespace prefix associated with EPPRegistryMapFactory.- See Also:
- Constant Field Values
-
ELM_REGISTRY_AUTHINFO
public static final java.lang.String ELM_REGISTRY_AUTHINFO
XML tag name associated with registry authorization information. This value will be passed to the authInfo object when it is initialized in registry command mappings.- See Also:
- Constant Field Values
-
-
Method Detail
-
createCommand
public EPPCommand createCommand(org.w3c.dom.Element aMapElement) throws EPPCodecException
Description copied from class:EPPMapFactory
Abstract method that creates a concreteEPPCommand
from an XML element. For example, aEPPDomainCreateCmd
will be created byEPPDomainMapFactory
given the <domain:create> XML element.- Specified by:
createCommand
in classEPPMapFactory
- Parameters:
aMapElement
- command extension XML element. For example <domain:create>.- Returns:
- Concrete
EPPCommand
associated with command extension XML element. For example,EPPDomainCreateCmd
. - Throws:
EPPCodecException
- Error creating the concreteEPPCommand
-
createResponse
public EPPResponse createResponse(org.w3c.dom.Element aMapElement) throws EPPCodecException
creates a concreteEPPResponse
from the passed in XML Element tree.aMapElement
must be the root node for the command extension. For example, <contact:info-data> must be the element passed for a Contact Info Response.- Specified by:
createResponse
in classEPPMapFactory
- Parameters:
aMapElement
- Mapping Extension EPP XML Element.- Returns:
- Concrete
EPPResponse
instance associated withaMapElement
. - Throws:
EPPCodecException
- Error creating concreteEPPResponse
-
getService
public EPPService getService()
Gets theEPPService
associated withEPPRegistryMapFactory
. TheEPPService
is used byEPPFactory
for distributing the responsibility of creating concreteEPPCommand
andEPPResponse
objects by XML namespace. The XML namespace is defined in the returnedEPPService
.- Specified by:
getService
in classEPPMapFactory
- Returns:
- service description for the Registry Command Mapping.
-
getXmlSchemas
public java.util.Set getXmlSchemas()
Gets the list of XML schemas that need to be pre-loaded into the XML Parser.- Overrides:
getXmlSchemas
in classEPPMapFactory
- Returns:
Set
ofString
XML Schema names that should be pre-loaded in the XML Parser.- See Also:
EPPMapFactory.getXmlSchemas()
-
-