Package com.verisign.epp.codec.registry
Class EPPRegistryCheckCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCheckCmd
com.verisign.epp.codec.registry.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 (up to a maximum of
MAX_ZONES) <registry:name> elements that contain the fully qualified name of the queried zones. UsegetNamesandsetNamesto 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 intMaximum number of zones to check at once.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, String aName) EPPRegistryCheckCmdconstructor that will check an individual zone name.EPPRegistryCheckCmd(String aTransId, List names) EPPRegistryCheckCmdconstructor that will check a list of zone names. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend a 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 checkGets the EPP command Namespace associated withEPPRegistryCheckCmd.voidSet an individual zone name to check.voidSet zone names to checktoString()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
-
MAX_ZONES
public static final int MAX_ZONESMaximum number of zones to check at once.- 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- zone name to check
-
EPPRegistryCheckCmd
EPPRegistryCheckCmdconstructor that will check a list of zone names.- Parameters:
aTransId- Transaction Id associated with command.names-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 nameString's
-
setNames
Set zone names to check- Parameters:
names-Listof zone nameString's
-
setName
Set an individual zone name to check. This method clears existing zone nameList.- Parameters:
name- zone name to check
-
addName
Append a zone name to the nameListto check. This method does NOT clear existing zone nameList.- Parameters:
name- zone name to append
-