Package com.verisign.epp.codec.domain
Class EPPDomainCheckCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCheckCmd
com.verisign.epp.codec.domain.EPPDomainCheckCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Domain <check> command, which is used to determine if
a domain name is known to the server. The <domain:check> element MUST
contain the following child elements:
- One or more (up to a maximum of
MAX_DOMAINS) <domain:name> elements that contain the fully qualified name of the queried domains. UsegetNamesandsetNamesto get and set the elements. UsesetNameto set an individual name.
EPPDomainCheckResp is the concrete EPPReponse associated with
EPPDomainCheckCmd. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPDomainCheckCmd.static final StringXML Element Name ofEPPDomainCheckCmdroot element.static final intMaximum number of domains 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
ConstructorsConstructorDescriptionEPPDomainCheckCmddefault constructor.EPPDomainCheckCmd(String aTransId, String aName) EPPDomainCheckCmdconstructor that will check an individual domain name.EPPDomainCheckCmd(String aTransId, Vector<String> someNames) EPPDomainCheckCmdconstructor that will check a list of domain names. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDomainCheckCmd.protected voidDecode theEPPDomainCheckCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDomainCheckCmdinstance.booleanCompare an instance ofEPPDomainCheckCmdwith this instance.getKey()Gets the key for the domain name object, which is the domain name.getNames()Gets domain names to check.Gets the EPP command Namespace associated withEPPDomainCheckCmd.voidSets domain name to check.voidSets domain 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
-
MAX_DOMAINS
public static final int MAX_DOMAINSMaximum number of domains to check at once.- See Also:
-
ELM_LOCALNAME
XML local name forEPPDomainCheckCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPDomainCheckCmdroot element.- See Also:
-
-
Constructor Details
-
EPPDomainCheckCmd
public EPPDomainCheckCmd()EPPDomainCheckCmddefault constructor. It will set the names attribute to an emptyVector. -
EPPDomainCheckCmd
EPPDomainCheckCmdconstructor that will check an individual domain name.- Parameters:
aTransId- Transaction Id associated with command.aName- Domain name to check
-
EPPDomainCheckCmd
EPPDomainCheckCmdconstructor that will check a list of domain names.- Parameters:
aTransId- Transaction Id associated with command.someNames-Vectorof domain nameStringinstances.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPDomainCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDomainMapFactory.NS
-
getKey
Gets the key for the domain name object, which is the domain name.- Overrides:
getKeyin classEPPCommand- Returns:
- The domain name if set with a single value;
nullotherwise.
-
equals
Compare an instance ofEPPDomainCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPDomainCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPDomainCheckCmd - 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.
-
setName
Sets domain name to check.- Parameters:
aName- Name to check.
-
getNames
Gets domain names to check.- Returns:
- Vector of domain name
String's.
-
setNames
Sets domain names to check.- Parameters:
someNames- Names to check.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDomainCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDomainCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDomainCheckCmdinstance.
-
doDecode
Decode theEPPDomainCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPDomainCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-