public class EPPNameWatchRenewCmd extends EPPRenewCmd
getRoid and setRoid to get and set the
element.
getCurExpDate and setCurExpDate to
get and set the element.
getPeriod and
setPeriod to get and set the element. If return
null, period has not been specified yet.
EPPNameWatchRenewResp,
Serialized Formextensions, 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 and Description |
|---|
EPPNameWatchRenewCmd()
Allocates a new
EPPNameWatchRenewCmd with default attribute
values. |
EPPNameWatchRenewCmd(java.lang.String aTransId,
java.lang.String aRoid,
java.util.Date aCurExpDate)
EPPNameWatchRenewCmd constructor that takes the nameWatch
roid and the current expiration year as arguments. |
EPPNameWatchRenewCmd(java.lang.String aTransId,
java.lang.String aRoid,
java.util.Date aCurExpDate,
EPPNameWatchPeriod aPeriod)
EPPNameWatchRenewCmd constructor that takes all of the
attributes of the renew command as arguments. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPNameWatchRenewCmd. |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPNameWatchRenewCmd attributes from the
aElement DOM Element tree. |
protected org.w3c.dom.Element |
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPNameWatchRenewCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPNameWatchRenewCmd with this
instance. |
java.util.Date |
getCurExpDate()
Get current expiration date.
|
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPNameWatchRenewCmd. |
EPPNameWatchPeriod |
getPeriod()
Gets the registration period of the renew command in years.
|
java.lang.String |
getRoid()
Gets the nameWatch roid to renew.
|
void |
setCurExpDate(java.util.Date newCurExpDate)
Set current expiration date.
|
void |
setPeriod(EPPNameWatchPeriod aPeriod)
Sets the registration period of the renew command in years.
|
void |
setRoid(java.lang.String aRoid)
Sets the nameWatch roid to renew.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
doGenDecode, doGenEncode, getTypeaddExtension, decode, encode, findDuplicateExtNamespaces, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransIdpublic EPPNameWatchRenewCmd()
EPPNameWatchRenewCmd with default attribute
values. the defaults include the following: null
1 year
null
encode.public EPPNameWatchRenewCmd(java.lang.String aTransId,
java.lang.String aRoid,
java.util.Date aCurExpDate)
EPPNameWatchRenewCmd constructor that takes the nameWatch
roid and the current expiration year as arguments. The period will
default to 1 year.aTransId - Transaction Id associated with command.aRoid - NameWatch roid to renew.aCurExpDate - The current expiration date of the nameWatchpublic EPPNameWatchRenewCmd(java.lang.String aTransId,
java.lang.String aRoid,
java.util.Date aCurExpDate,
EPPNameWatchPeriod aPeriod)
EPPNameWatchRenewCmd constructor that takes all of the
attributes of the renew command as arguments.aTransId - Transaction Id associated with command.aRoid - NameWatch roid to renew.aCurExpDate - The current expiration date of the nameWatch.aPeriod - Registration period in years.public java.lang.String getNamespace()
EPPNameWatchRenewCmd.getNamespace in interface EPPCodecComponentgetNamespace in interface EPPMessagegetNamespace in class EPPCommandEPPNameWatchMapFactory.NSpublic java.lang.String getRoid()
public void setRoid(java.lang.String aRoid)
aRoid - NameWatch Roidpublic boolean equals(java.lang.Object aObject)
EPPNameWatchRenewCmd with this
instance.equals in class EPPRenewCmdaObject - Object to compare with.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPNameWatchRenewCmd.clone in interface EPPCodecComponentclone in class EPPCommandEPPNameWatchRenewCmdjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class EPPCommandString if successful;
ERROR otherwise.public java.util.Date getCurExpDate()
public EPPNameWatchPeriod getPeriod()
public void setCurExpDate(java.util.Date newCurExpDate)
newCurExpDate - Current Expiration Datepublic void setPeriod(EPPNameWatchPeriod aPeriod)
aPeriod - Registration Period in years.protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPNameWatchRenewCmd instance.doEncode in class EPPRenewCmdaDocument - DOM Document that is being built. Used as an Element
factory.EPPNameWatchRenewCmd instance.EPPEncodeException - Unable to encode
EPPNameWatchRenewCmd instance.protected void doDecode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPNameWatchRenewCmd attributes from the
aElement DOM Element tree.doDecode in class EPPRenewCmdaElement - Root DOM Element to decode
EPPNameWatchRenewCmd from.EPPDecodeException - Unable to decode aElement