Class EPPRegistryInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.registry.v02.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 Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistryInfoResp
.static java.lang.String
ELM_NAME
XML root tag forEPPRegistryInfoResp
.-
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()
EPPRegistryInfoResp
default constructor.EPPRegistryInfoResp(EPPTransId aTransId, EPPRegistrySystemInfo aSystemInfo)
Create aEPPRegistryInfoResp
instance with system detailed information.EPPRegistryInfoResp(EPPTransId aTransId, EPPRegistryZoneData aZoneInfo)
Create aEPPRegistryInfoResp
instance with zone detailed information.EPPRegistryInfoResp(EPPTransId aTransId, EPPRegistryZoneList aZoneList)
Create aEPPRegistryInfoResp
instance with a set of zone summary attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPRegistryInfoResp
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPRegistryInfoResp
attributes from the aElement DOM Element tree.protected org.w3c.dom.Element
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistryInfoResp
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryInfoResp
with this instance.java.lang.String
getNamespace()
Gets the EPP command namespace associated withEPPRegistryInfoResp
.EPPRegistrySystemInfo
getSystemInfo()
Gets the system information.java.lang.String
getType()
Gets the EPP response type associated withEPPRegistryInfoResp
.EPPRegistryZoneData
getZoneInfo()
Gets the zone information.EPPRegistryZoneList
getZoneList()
Gets the zone list.boolean
hasSystemInfo()
Is the system info set?boolean
hasZoneInfo()
Is the zone info set?boolean
hasZoneList()
Is the zone list set?void
setSystemInfo(EPPRegistrySystemInfo aSystemInfo)
Sets the system information.void
setZoneInfo(EPPRegistryZoneData aZoneInfo)
Sets the zone information.void
setZoneList(EPPRegistryZoneList aZoneList)
Sets the zone list.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryInfoResp
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryInfoResp
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryInfoResp
public EPPRegistryInfoResp()
EPPRegistryInfoResp
default constructor. Must call eithersetZoneList
,setZoneInfo
, orsetSystemInfo
setter methods before invokingencode
.
-
EPPRegistryInfoResp
public EPPRegistryInfoResp(EPPTransId aTransId, EPPRegistryZoneList aZoneList)
Create aEPPRegistryInfoResp
instance with a set of zone summary attributes.- Parameters:
aTransId
- transaction Id associated with responseaZoneList
- object containing a list of zone summary attributes
-
EPPRegistryInfoResp
public EPPRegistryInfoResp(EPPTransId aTransId, EPPRegistryZoneData aZoneInfo)
Create aEPPRegistryInfoResp
instance with zone detailed information.- Parameters:
aTransId
- transaction Id associated with responseaZoneInfo
- object containing detailed zone info
-
EPPRegistryInfoResp
public EPPRegistryInfoResp(EPPTransId aTransId, EPPRegistrySystemInfo aSystemInfo)
Create aEPPRegistryInfoResp
instance with system detailed information.- Parameters:
aTransId
- transaction Id associated with responseaSystemInfo
- object containing detailed system info
-
-
Method Detail
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryInfoResp
instance.- Overrides:
doEncode
in 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 encodeEPPRegistryInfoResp
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryInfoResp
attributes from the aElement DOM Element tree.- Overrides:
doDecode
in classEPPResponse
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryInfoResp
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryInfoResp
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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:
getType
in classEPPResponse
- Returns:
EPPRegistryInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPRegistryInfoResp
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Overrides:
getNamespace
in classEPPResponse
- Returns:
EPPRegistryMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryInfoResp
with this instance.- Overrides:
equals
in classEPPResponse
- Parameters:
aObject
- Object to compare with.- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPResponse
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
hasZoneList
public boolean hasZoneList()
Is the zone list set?- Returns:
true
if the zone list is defined;false
otherwise.
-
getZoneList
public EPPRegistryZoneList getZoneList()
Gets the zone list.- Returns:
- The zone list if defined:
null
otherwise.
-
setZoneList
public void setZoneList(EPPRegistryZoneList aZoneList)
Sets the zone list.- Parameters:
aZoneList
- Zone list. Set tonull
if undefined.
-
hasZoneInfo
public boolean hasZoneInfo()
Is the zone info set?- Returns:
true
if the zone info is defined;false
otherwise.
-
getZoneInfo
public EPPRegistryZoneData getZoneInfo()
Gets the zone information.- Returns:
- The detailed zone information if defined;
null
otherwise.
-
setZoneInfo
public void setZoneInfo(EPPRegistryZoneData aZoneInfo)
Sets the zone information.- Parameters:
aZoneInfo
- The detailed system information. Set tonull
if undefined.
-
hasSystemInfo
public boolean hasSystemInfo()
Is the system info set?- Returns:
true
if the system info is defined;false
otherwise.
-
getSystemInfo
public EPPRegistrySystemInfo getSystemInfo()
Gets the system information.- Returns:
- The detailed system information if defined;
null
otherwise.
-
setSystemInfo
public void setSystemInfo(EPPRegistrySystemInfo aSystemInfo)
Sets the system information.- Parameters:
aSystemInfo
- The detailed system information. Set tonull
if undefined.
-
-