Package com.verisign.epp.codec.contact
Class EPPContactCheckCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCheckCmd
com.verisign.epp.codec.contact.EPPContactCheckCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Contact <check> command, which is used to determine
if a contact id is known to the server. In addition to the standard EPP
command elements, the <check> command MUST contain a
<contact:check> element that identifies the contact namespace and the
location of the contact schema. The <contact:check> element MUST
contain the following child elements:
-
One or more <contact:id> elements. The contact id is the the
server-unique identifier for the contact. Use
getIdsandsetIdsto get and set the elements. UsesetIdto set an individual id.
EPPContactCheckResp is the concrete EPPReponse
associated with EPPContactCheckCmd. - See Also:
-
Field Summary
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
ConstructorsConstructorDescriptionEPPContactCheckCmddefault constructor.EPPContactCheckCmd(String aTransId, String aId) EPPContactCheckCmdconstructor that will check an individual contact id.EPPContactCheckCmd(String aTransId, Vector someIds) EPPContactCheckCmdconstructor that will check a list of contact ids. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPContactCheckCmd.protected voidDecode theEPPContactCheckCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPContactCheckCmdinstance.booleanCompare an instance ofEPPContactCheckCmdwith this instance.getIds()Gets contact ids to check.getKey()Gets the key for the contact object, which is the contact identifier.Gets the EPP command Namespace associated withEPPContactCheckCmd.voidSets contact id to check.voidSets contact ids 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
-
Constructor Details
-
EPPContactCheckCmd
public EPPContactCheckCmd()EPPContactCheckCmddefault constructor. It will set the ids attribute to an emptyVector. -
EPPContactCheckCmd
EPPContactCheckCmdconstructor that will check an individual contact id.- Parameters:
aTransId- Transaction Id associated with command.aId- Contact id to check
-
EPPContactCheckCmd
EPPContactCheckCmdconstructor that will check a list of contact ids.- Parameters:
aTransId- Transaction Id associated with command.someIds-Vectorof contact idString's.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPContactCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPContactMapFactory.NS
-
getKey
Gets the key for the contact object, which is the contact identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The contact identifier if set with a single value;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPContactCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPContactCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactCheckCmdinstance.
-
doDecode
Decode theEPPContactCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPContactCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPContactCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPContactCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPContactCheckCmd - 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.
-
setId
Sets contact id to check.- Parameters:
aId- Id to check.
-
getIds
Gets contact ids to check.- Returns:
Vectorof contact idString's.
-
setIds
Sets contact ids to check.- Parameters:
someIds- Ids to check.
-