Package com.verisign.epp.codec.registry
Class EPPRegistryInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.registry.EPPRegistryInfoResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryInfoResp extends EPPResponse
Represents an EPP Registry <registry:infData> response to anEPPRegistryInfoCmd. When an <info> command has been processed successfully, the EPP <resData> element MUST contain a child <registry:infData> element that identifies the registry namespace and the location of the registry schema.
If the corresponding registry create command contains <registry:all> element, The <registry:infData> element must contain the following child elements:
- A <registry:zoneList> element that contains the list of supported zones by the server with a set of summary attributes per zone. Each set of summary attributes are enclosed in the <registry:zone> element.
If the corresponding registry create command contains <registry:name> element, The <registry:infData> element must contain the following child elements:
- A <registry:zone> element that contains the detail info of a zone object.
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryInfoResp()EPPRegistryInfoRespdefault constructor.EPPRegistryInfoResp(EPPTransId transId, EPPRegistryZoneInfo zoneInfo)Create aEPPRegistryInfoRespinstance with a set of zone summary attributes.EPPRegistryInfoResp(EPPTransId transId, EPPRegistryZoneList zoneList)Create aEPPRegistryInfoRespinstance with a set of zone summary attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPRegistryInfoRespattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRegistryInfoRespwith this instance.java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPRegistryInfoResp.java.lang.StringgetType()Gets the EPP response type associated withEPPRegistryInfoResp.EPPRegistryZoneInfogetZoneInfo()EPPRegistryZoneListgetZoneList()voidsetZoneInfo(EPPRegistryZoneInfo zoneInfo)voidsetZoneList(EPPRegistryZoneList zoneList)java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.-
Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
-
-
-
Constructor Detail
-
EPPRegistryInfoResp
public EPPRegistryInfoResp()
EPPRegistryInfoRespdefault constructor. Must call eithersetZoneListorsetZoneInfosetter methods before invokingencode.
-
EPPRegistryInfoResp
public EPPRegistryInfoResp(EPPTransId transId, EPPRegistryZoneList zoneList)
Create aEPPRegistryInfoRespinstance with a set of zone summary attributes. Use this to construct response to commandEPPRegistryInfoCmdwithallset totrue.- Parameters:
transId- transaction Id associated with responsezoneList- object containing a list of zone summary attributes
-
EPPRegistryInfoResp
public EPPRegistryInfoResp(EPPTransId transId, EPPRegistryZoneInfo zoneInfo)
Create aEPPRegistryInfoRespinstance with a set of zone summary attributes. Use this to construct response to commandEPPRegistryInfoCmdwithallset tofalse.- Parameters:
transId- transaction Id associated with responsezoneInfo- object containing detailed zone info
-
-
Method Detail
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPRegistryInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPRegistryInfoResp instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPRegistryInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPRegistryInfoResp - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPRegistryInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPRegistryInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPRegistryInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPRegistryMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getZoneList
public EPPRegistryZoneList getZoneList()
-
setZoneList
public void setZoneList(EPPRegistryZoneList zoneList)
-
getZoneInfo
public EPPRegistryZoneInfo getZoneInfo()
-
setZoneInfo
public void setZoneInfo(EPPRegistryZoneInfo zoneInfo)
-
-