Class EPPRegistryInfoCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPInfoCmd
com.verisign.epp.codec.registry.v02.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: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. - 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:system> Element that is empty and that indicates that
the registry system attributes, like maximum connections and timeouts, are
queried. Use
isSystemandsetSystemto 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for themodeattribute, which defines the mode to query.static enumPossible values for thescopeattribute. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML attribute name for thescopeattribute.static final StringXML local name forEPPRegistryInfoCmd.static final StringXML root tag forEPPRegistryInfoCmd.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, EPPRegistryInfoCmd.Mode aMode) EPPRegistryInfoCmdconstructor defines the query mode to use.EPPRegistryInfoCmd(String aTransId, EPPRegistryInfoCmd.Scope aScope) EPPRegistryInfoCmdconstructor that queries for all of the accessible and/or available zone objects from the server with the desired scope.EPPRegistryInfoCmd(String aTransId, EPPRegistryZoneName aName) EPPRegistryInfoCmdconstructor that takes the qualified zone object name as an argument.EPPRegistryInfoCmd(String aTransId, String aName) EPPRegistryInfoCmdconstructor that takes the qualified aLabel zone object name as an argument. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryInfoCmd.protected 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.getMode()Gets the query mode.getName()Gets the zone name.Gets the EPP command namespace associated withEPPRegistryInfoCmd.getScope()Gets the zone scope used with the query all option.booleanhasMode()Is the query mode defined?booleanhasName()Is the name defined?voidsetMode(EPPRegistryInfoCmd.Mode aMode) Sets the query mode.voidsetName(EPPRegistryZoneName aName) Sets the zone name to query for.voidSets the zone name to query for.voidsetScope(EPPRegistryInfoCmd.Scope aScope) Sets the zone scope used with the query all mode.Methods inherited from class com.verisign.epp.codec.gen.EPPInfoCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId, toString
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryInfoCmd.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryInfoCmd.- See Also:
-
ATTR_SCOPE
XML attribute name for thescopeattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryInfoCmd
public EPPRegistryInfoCmd()EPPRegistryInfoCmddefault constructor. Themodemust be set usingsetMode(Mode)prior to invokingEPPCommand.encode(Document). -
EPPRegistryInfoCmd
EPPRegistryInfoCmdconstructor that takes the qualified aLabel zone object name as an argument. The mode is set toEnum.name().- Parameters:
aTransId- transaction Id associated with commandaName- fully qualified aLabel zone object name to get information on
-
EPPRegistryInfoCmd
EPPRegistryInfoCmdconstructor that takes the qualified zone object name as an argument. The mode is set toEnum.name().- Parameters:
aTransId- transaction Id associated with commandaName- fully qualified zone object name to get information on
-
EPPRegistryInfoCmd
EPPRegistryInfoCmdconstructor defines the query mode to use. It is most likely used when setting the mode toEPPRegistryInfoCmd.Mode.system.- Parameters:
aTransId- transaction Id associated with commandaMode- Query mode to use.
-
EPPRegistryInfoCmd
EPPRegistryInfoCmdconstructor that queries for all of the accessible and/or available zone objects from the server with the desired scope. The mode is set toEPPRegistryInfoCmd.Mode.all.- Parameters:
aTransId- transaction Id associated with commandaScope- Zone scope to query for. Passingnullwill result in the use of the default scopeScope#accessible.
-
-
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
Gets the EPP command namespace associated withEPPRegistryInfoCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPRegistryMapFactory.NS
-
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
-
clone
CloneEPPRegistryInfoCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPRegistryInfoCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the zone name.- Returns:
- Zone name if set;
nullotherwise.
-
setName
Sets the zone name to query for. The mode is set toEnum.name().- Parameters:
aName- Zone name
-
setName
Sets the zone name to query for. The mode is set toEnum.name().- Parameters:
aName- aLabel zone name
-
hasMode
public boolean hasMode()Is the query mode defined?- Returns:
trueif the query mode is defined;falseotherwise.
-
getMode
Gets the query mode.- Returns:
- The query mode if defined;
nullotherwise.
-
setMode
Sets the query mode.- Parameters:
aMode- Query mode to use
-
getScope
Gets the zone scope used with the query all option.- Returns:
- Scope passed with the <registry:all> "scope" attribute if defined;
nullotherwise.
-
setScope
Sets the zone scope used with the query all mode. The mode is set toEPPRegistryInfoCmd.Mode.all.- Parameters:
aScope- Scope passed with the <registry:all> "scope" attribute. Ifnullis passed, the default value ofEPPRegistryInfoCmd.Scope.accessiblewill be used.
-