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,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryInfoCmd extends EPPInfoCmd
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.
EPPRegistryInfoCmdmust contains one and only one of the above elements.
EPPRegistryInfoRespis the concreteEPPReponseassociated withEPPRegistryInfoResp.
- See Also:
EPPRegistryInfoResp, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPRegistryInfoCmd.ModePossible values for themodeattribute, which defines the mode to query.static classEPPRegistryInfoCmd.ScopePossible values for thescopeattribute.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_SCOPEXML attribute name for thescopeattribute.static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryInfoCmd.static java.lang.StringELM_NAMEXML 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
Constructors Constructor Description EPPRegistryInfoCmd()EPPRegistryInfoCmddefault constructor.EPPRegistryInfoCmd(java.lang.String aTransId, EPPRegistryInfoCmd.Mode aMode)EPPRegistryInfoCmdconstructor defines the query mode to use.EPPRegistryInfoCmd(java.lang.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(java.lang.String aTransId, EPPRegistryZoneName aName)EPPRegistryInfoCmdconstructor that takes the qualified zone object name as an argument.EPPRegistryInfoCmd(java.lang.String aTransId, java.lang.String aName)EPPRegistryInfoCmdconstructor that takes the qualified aLabel zone object name as an argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryInfoCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPRegistryInfoCmdattributes 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 theEPPRegistryInfoCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRegistryInfoCmdwith this instance.java.lang.StringgetKey()Gets the key for the registry object, which is the registry zone name.EPPRegistryInfoCmd.ModegetMode()Gets the query mode.EPPRegistryZoneNamegetName()Gets the zone name.java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPRegistryInfoCmd.EPPRegistryInfoCmd.ScopegetScope()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.voidsetName(java.lang.String aName)Sets 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, getType
-
Methods 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 Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryInfoCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryInfoCmd.- See Also:
- Constant Field Values
-
ATTR_SCOPE
public static final java.lang.String ATTR_SCOPE
XML attribute name for thescopeattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryInfoCmd
public EPPRegistryInfoCmd()
EPPRegistryInfoCmddefault constructor. Themodemust be set usingsetMode(Mode)prior to invokingEPPCommand.encode(Document).
-
EPPRegistryInfoCmd
public EPPRegistryInfoCmd(java.lang.String aTransId, java.lang.String aName)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
public EPPRegistryInfoCmd(java.lang.String aTransId, EPPRegistryZoneName aName)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
public EPPRegistryInfoCmd(java.lang.String aTransId, EPPRegistryInfoCmd.Mode aMode)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
public EPPRegistryInfoCmd(java.lang.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. 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 Detail
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPRegistryInfoCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPRegistryMapFactory.NS
-
getKey
public java.lang.String 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
public boolean equals(java.lang.Object aObject)
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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryInfoCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPRegistryInfoCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
hasName
public boolean hasName()
Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
public EPPRegistryZoneName getName()
Gets the zone name.- Returns:
- Zone name if set;
nullotherwise.
-
setName
public void setName(EPPRegistryZoneName aName)
Sets the zone name to query for. The mode is set toEnum.name().- Parameters:
aName- Zone name
-
setName
public void setName(java.lang.String aName)
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
public EPPRegistryInfoCmd.Mode getMode()
Gets the query mode.- Returns:
- The query mode if defined;
nullotherwise.
-
setMode
public void setMode(EPPRegistryInfoCmd.Mode aMode)
Sets the query mode.- Parameters:
aMode- Query mode to use
-
getScope
public EPPRegistryInfoCmd.Scope getScope()
Gets the zone scope used with the query all option.- Returns:
- Scope passed with the <registry:all> "scope" attribute if defined;
nullotherwise.
-
setScope
public void setScope(EPPRegistryInfoCmd.Scope aScope)
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.
-
-