Package com.verisign.epp.codec.registry
Class EPPRegistryInfoCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPInfoCmd
com.verisign.epp.codec.registry.EPPRegistryInfoCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Registry <info> command that is used to retrieve
information associated with a registry. The <registry:info> element
MUST contain one of the following child elements:
-
A <registry:name> element that contains the fully qualified zone object
name for which information is requested. Use
getNameandsetNameto get and set the element. -
A <registry:all> empty element that specifies whether or not to query a list
of all supported zone objects by the server. Use
isAllandsetAllto get and set the element.
EPPRegistryInfoCmd must contains one and only one of the above
elements.
EPPRegistryInfoResp is the concrete EPPReponse
associated with EPPRegistryInfoResp. - See Also:
-
Field Summary
Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionEPPRegistryInfoCmddefault constructor.EPPRegistryInfoCmd(String aTransId, boolean all) EPPRegistryInfoCmdconstructor that tries to query a list of all supported zone objects from the server.EPPRegistryInfoCmd(String aTransId, String aName) EPPRegistryInfoCmdconstructor that takes the qualified zone object name as an argument. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDecode theEPPRegistryInfoCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPRegistryInfoCmdinstance.booleanCompare an instance ofEPPRegistryInfoCmdwith this instance.getKey()Gets the key for the registry object, which is the registry zone name.getName()Get the name of zone object to get information on.Gets the EPP namespace associated with theEPPCommand.booleanisAll()Get the flag to query all supported zone objects.voidsetAll(boolean all) Set the flag to query all supported zone objects.voidSet the name of zone object to get information on.Methods inherited from class com.verisign.epp.codec.gen.EPPInfoCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, clone, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId, toString
-
Constructor Details
-
EPPRegistryInfoCmd
public EPPRegistryInfoCmd()EPPRegistryInfoCmddefault constructor. Theallis set tofalseand thenameis set tonull. Eitherallornamemust be set before invokingencode. -
EPPRegistryInfoCmd
EPPRegistryInfoCmdconstructor that takes the qualified zone object name as an argument. Attributeallis set tofalse.- Parameters:
aTransId- transaction Id associated with commandaName- fully qualified zone object name to get information on
-
EPPRegistryInfoCmd
EPPRegistryInfoCmdconstructor that tries to query a list of all supported zone objects from the server. Attributenameis set tonulL.- Parameters:
aTransId- transaction Id associated with commandall- fully qualified zone object name to get information on
-
-
Method Details
-
doEncode
Encode a DOM Element tree from the attributes of theEPPRegistryInfoCmdinstance.- Specified by:
doEncodein classEPPInfoCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPRegistryInfoCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryInfoCmdinstance.
-
doDecode
Decode theEPPRegistryInfoCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPInfoCmd- Parameters:
aElement- Root DOM Element to decodeEPPRegistryInfoCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getNamespace
Description copied from class:EPPCommandGets the EPP namespace associated with theEPPCommand.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
- Namespace URI associated with the
EPPCommand.
-
getKey
Gets the key for the registry object, which is the registry zone name.- Overrides:
getKeyin classEPPCommand- Returns:
- The zone name if set;
nullotherwise.
-
equals
Compare an instance ofEPPRegistryInfoCmdwith this instance.- Overrides:
equalsin classEPPInfoCmd- Parameters:
aObject- Object to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
getName
Get the name of zone object to get information on.- Returns:
- fully qualified zone object name
-
setName
Set the name of zone object to get information on. Ifnameisnull,allmust be true; and vice versa.- Parameters:
name- fully qualified zone object name
-
isAll
public boolean isAll()Get the flag to query all supported zone objects.- Returns:
trueif client intends to query a list of all supported zone object (namemust be set tonull).falseif client intends to query detailed info of one zone object. (namemust be non-blank)
-
setAll
public void setAll(boolean all) Set the flag to query all supported zone objects.- Parameters:
all-trueif client intends to query a list of all supported zone object (namemust be set tonull).falseif client intends to query detailed info of one zone object. (namemust be non-blank)
-