|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPRenewCmd
com.verisign.epp.codec.domain.EPPDomainRenewCmd
public class EPPDomainRenewCmd
Represents an EPP Domain <renew> command, which provides a transform
operation that allows a client to extend the validity period of a
domain object. The EPP <renew> command provides a transform operation
that allows a client to extend the validity period of a domain object. In
addition to the standard EPP command elements, the <renew> command
MUST contain a <domain:renew> element that identifies the domain
namespace and the location of the domain schema. The
<domain:renew> element SHALL contain the following child elements:
getName and setName 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.
EPPDomainRenewResp,
Serialized Form| 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 | |
|---|---|
EPPDomainRenewCmd()
Allocates a new EPPDomainRenewCmd with default attribute
values. |
|
EPPDomainRenewCmd(java.lang.String aTransId,
java.lang.String aName,
java.util.Date aCurExpDate)
EPPDomainRenewCmd constructor that takes the domain name
and the current expiration year as arguments. |
|
EPPDomainRenewCmd(java.lang.String aTransId,
java.lang.String aName,
java.util.Date aCurExpDate,
EPPDomainPeriod aPeriod)
EPPDomainRenewCmd constructor that takes all of the
attributes of the renew command as arguments. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone EPPDomainRenewCmd. |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the EPPDomainRenewCmd 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 EPPDomainRenewCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPDomainRenewCmd with this
instance. |
java.util.Date |
getCurExpDate()
Get current expiration date. |
java.lang.String |
getName()
Gets the domain name to renew. |
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with EPPDomainRenewCmd. |
EPPDomainPeriod |
getPeriod()
Gets the registration period of the renew command in years. |
void |
setCurExpDate(java.util.Date newCurExpDate)
Set current expiration date. |
void |
setName(java.lang.String aName)
Sets the domain name to renew. |
void |
setPeriod(EPPDomainPeriod aPeriod)
Sets the registration period of the renew command in years. |
java.lang.String |
toString()
Implementation of Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
| Methods inherited from class com.verisign.epp.codec.gen.EPPRenewCmd |
|---|
doGenDecode, doGenEncode, getType |
| Methods inherited from class com.verisign.epp.codec.gen.EPPCommand |
|---|
addExtension, decode, encode, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EPPDomainRenewCmd()
EPPDomainRenewCmd with default attribute
values. the defaults include the following: null
1 year
null
encode.
public EPPDomainRenewCmd(java.lang.String aTransId,
java.lang.String aName,
java.util.Date aCurExpDate)
EPPDomainRenewCmd constructor that takes the domain name
and the current expiration year as arguments. The period will
default to 1 year.
aTransId - Transaction Id associated with command.aName - Domain name to renew.aCurExpDate - The current expiration date of the domain
public EPPDomainRenewCmd(java.lang.String aTransId,
java.lang.String aName,
java.util.Date aCurExpDate,
EPPDomainPeriod aPeriod)
EPPDomainRenewCmd constructor that takes all of the
attributes of the renew command as arguments.
aTransId - Transaction Id associated with command.aName - Domain name to renew.aCurExpDate - The current expiration date of the domain.aPeriod - Registration period in years.| Method Detail |
|---|
public java.lang.String getNamespace()
EPPDomainRenewCmd.
getNamespace in interface EPPMessagegetNamespace in class EPPCommandEPPDomainMapFactory.NSpublic java.lang.String getName()
null otherwise.public void setName(java.lang.String aName)
aName - Domain Namepublic boolean equals(java.lang.Object aObject)
EPPDomainRenewCmd with this
instance.
equals in class EPPRenewCmdaObject - Object to compare with.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPDomainRenewCmd.
clone in interface EPPCodecComponentclone in class EPPCommandEPPDomainRenewCmd
java.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 EPPDomainPeriod getPeriod()
public void setCurExpDate(java.util.Date newCurExpDate)
newCurExpDate - java.util.Datepublic void setPeriod(EPPDomainPeriod aPeriod)
aPeriod - Registration Period in years.
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPDomainRenewCmd instance.
doEncode in class EPPRenewCmdaDocument - DOM Document that is being built. Used as an Element
factory.
EPPDomainRenewCmd
instance.
EPPEncodeException - Unable to encode
EPPDomainRenewCmd instance.
protected void doDecode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPDomainRenewCmd attributes from the aElement
DOM Element tree.
doDecode in class EPPRenewCmdaElement - Root DOM Element to decode
EPPDomainRenewCmd from.
EPPDecodeException - Unable to decode aElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||