Class EPPRegistryCheckCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCheckCmd
com.verisign.epp.codec.registry.v02.EPPRegistryCheckCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Registry <check> command, which is used to determine
if a zone name is known to the server. The <registry:check> element
MUST contain the following child elements:
- One or more <registry:name> elements that contain the fully
qualified name of the queried zones. Use
getNamesandsetNamesto get and set the elements. UseaddNameto add a name to existing list or usesetNameto set an individual name.
EPPRegistryCheckResp is the concrete EPPReponse associated
with EPPRegistryCheckCmd. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPRegistryCheckCmd.static final StringXML root tag forEPPRegistryCheckCmd.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
ConstructorsConstructorDescriptionEPPRegistryCheckCmddefault constructor.EPPRegistryCheckCmd(String aTransId, EPPRegistryZoneName aName) EPPRegistryCheckCmdconstructor that will check an individual zone name.EPPRegistryCheckCmd(String aTransId, String aName) EPPRegistryCheckCmdconstructor that will check an individual zone name.EPPRegistryCheckCmd(String aTransId, List<EPPRegistryZoneName> aNames) EPPRegistryCheckCmdconstructor that will check a list of zone names. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddName(EPPRegistryZoneName aName) Append an zone name to the nameListto check.voidAppend an aLabel zone name to the nameListto check.clone()CloneEPPRegistryCheckCmd.protected voidDecode theEPPRegistryCheckCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPRegistryCheckCmdinstance.booleanCompare an instance ofEPPRegistryCheckCmdwith this instance.getKey()Gets the key for the registry object, which is the zone name.getNames()Get zone names to check.Gets the EPP command Namespace associated withEPPRegistryCheckCmd.voidsetName(EPPRegistryZoneName aName) Set an individual zone name to check.voidSet an individual aLabel zone name to check.voidsetNames(List<EPPRegistryZoneName> aNames) Set zone names to check.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCheckCmd
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
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryCheckCmd.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryCheckCmd.- See Also:
-
-
Constructor Details
-
EPPRegistryCheckCmd
public EPPRegistryCheckCmd()EPPRegistryCheckCmddefault constructor. It will set the names attribute to an emptyList. -
EPPRegistryCheckCmd
EPPRegistryCheckCmdconstructor that will check an individual zone name.- Parameters:
aTransId- Transaction Id associated with command.aName- aLabel zone name to check
-
EPPRegistryCheckCmd
EPPRegistryCheckCmdconstructor that will check an individual zone name.- Parameters:
aTransId- Transaction Id associated with command.aName- zone name to check
-
EPPRegistryCheckCmd
EPPRegistryCheckCmdconstructor that will check a list of zone names.- Parameters:
aTransId- Transaction Id associated with command.aNames-Listof zone nameStringinstances.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPRegistryCheckCmd.- 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 zone name.- Overrides:
getKeyin classEPPCommand- Returns:
- The zone name if set with a single value;
nullotherwise.
-
equals
Compare an instance ofEPPRegistryCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise.
-
clone
CloneEPPRegistryCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPRegistryCheckCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPRegistryCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryCheckCmdinstance.
-
doDecode
Decode theEPPRegistryCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPRegistryCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getNames
Get zone names to check.- Returns:
Listof zone nameEPPRegistryZoneName's
-
setNames
Set zone names to check.- Parameters:
aNames-Listof zone nameEPPRegistryZoneName's
-
setName
Set an individual aLabel zone name to check. This method clears existing zone nameList.- Parameters:
aName- aLabel zone name to check
-
setName
Set an individual zone name to check. This method clears existing zone nameList.- Parameters:
aName- zone name to check
-
addName
Append an aLabel zone name to the nameListto check. This method does NOT clear existing zone nameList.- Parameters:
aName- aLabel zone name to append
-
addName
Append an zone name to the nameListto check. This method does NOT clear existing zone nameList.- Parameters:
aName- Zone name to append
-