Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchInfoCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPInfoCmd
com.verisign.epp.codec.nameWatch.EPPNameWatchInfoCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP NameWatch <info> command that is used to retrieve
information associated with a nameWatch. The <nameWatch:info>
element MUST contain the following child elements:
-
A <nameWatch:roid> element that contains the fully qualified nameWatch
name for which information is requested. Use
getRoidandsetRoidto get and set the element.
EPPNameWatchInfoResp is the concrete
EPPReponse associated with
EPPNameWatchInfoCmd. - 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
ConstructorsConstructorDescriptionEPPNameWatchInfoCmddefault constructor.EPPNameWatchInfoCmd(String aTransId, String aRoid) EPPNameWatchInfoCmdconstructor that takes the nameWatch roid as an argument.EPPNameWatchInfoCmd(String aTransId, String aRoid, EPPAuthInfo aAuthInfo) EPPNameWatchInfoCmdconstructor that takes the roid and authinfo of the NameWatch object. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchInfoCmd.protected voidDecode theEPPNameWatchInfoCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPNameWatchInfoCmdinstance.booleanCompare an instance ofEPPNameWatchInfoCmdwith this instance.Get authorization informationgetKey()Gets the key for the NameWatch object, which is the NameWatch ROID.Gets the EPP command Namespace associated withEPPNameWatchInfoCmd.getRoid()Gets the nameWatch roidvoidsetAuthInfo(EPPAuthInfo aAuthInfo) Set authorization informationvoidSets the nameWatch roidtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPInfoCmd
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
-
EPPNameWatchInfoCmd
public EPPNameWatchInfoCmd()EPPNameWatchInfoCmddefault constructor. The roid is initialized tonull. The roid must be set before invokingencode. -
EPPNameWatchInfoCmd
EPPNameWatchInfoCmdconstructor that takes the nameWatch roid as an argument.- Parameters:
aTransId- Transaction Id associated with command.aRoid- NameWatch roid to get information on.
-
EPPNameWatchInfoCmd
EPPNameWatchInfoCmdconstructor that takes the roid and authinfo of the NameWatch object.- Parameters:
aTransId- Transaction Id associated with command.aRoid- NameWatch roid to get information on.aAuthInfo- Authorization info for the NameWatch object
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPNameWatchInfoCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPNameWatchMapFactory.NS
-
getKey
Gets the key for the NameWatch object, which is the NameWatch ROID.- Overrides:
getKeyin classEPPCommand- Returns:
- The NameWatch ROID if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPNameWatchInfoCmdinstance.- Specified by:
doEncodein classEPPInfoCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPNameWatchInfoCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameWatchInfoCmdinstance.
-
doDecode
Decode theEPPNameWatchInfoCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPInfoCmd- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchInfoCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getRoid
Gets the nameWatch roid- Returns:
- NameWatch roid
-
setRoid
Sets the nameWatch roid- Parameters:
aRoid- NameWatch roid
-
getAuthInfo
Get authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
setAuthInfo
Set authorization information- Parameters:
aAuthInfo- EPPAuthInfo
-
equals
Compare an instance ofEPPNameWatchInfoCmdwith this instance.- Overrides:
equalsin classEPPInfoCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPNameWatchInfoCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPNameWatchInfoCmd - 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.
-