Package com.verisign.epp.codec.defReg
Class EPPDefRegRenewCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPRenewCmd
com.verisign.epp.codec.defReg.EPPDefRegRenewCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP DefReg
<renew> command, which provides a transform
operation that allows a client to extend the validity period of a
defReg object. In addition to the standard EPP command elements, the
<renew> command MUST contain a <defReg:renew> element that
identifies the defReg namespace. The
<defReg:renew> element contains the following child elements:
-
A
<defReg:roid>element that contains the repository object identifier assigned to the defReg object when the object was created. -
A
<defReg:curExpDate>element that contains the date on which the current validity period ends. This value ensures that repeated<renew>commands do not result in multiple unanticipated successful renewals. -
An OPTIONAL
<defReg:period>element that contains the number of units to be added to the registration period of the defReg object.
- 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
ConstructorsConstructorDescriptionAllocates a newEPPDefRegRenewCmdwith default attribute values.EPPDefRegRenewCmd(String aTransId, String aRoid, Date aCurExpDate) EPPDefRegRenewCmdconstructor that takes the defReg name and the current expiration year as arguments.EPPDefRegRenewCmd(String aTransId, String aRoid, Date aCurExpDate, EPPDefRegPeriod aPeriod) EPPDefRegRenewCmdconstructor that takes all of the attributes of the renew command as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegRenewCmd.protected voidDecode theEPPDefRegRenewCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDefRegRenewCmdinstance.booleanCompare an instance ofEPPDefRegRenewCmdwith this instance.Get current expiration date.getKey()Gets the key for the defensive registration object, which is the defensive registration ROID.Gets the EPP command Namespace associated withEPPDefRegRenewCmd.Gets the registration period of the renew command in years.getRoid()Gets the defReg roid to renew.voidsetCurExpDate(Date newCurExpDate) Set current expiration date.voidsetPeriod(EPPDefRegPeriod aPeriod) Sets the registration period of the renew command in years.voidSets the defReg roid to renew.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPRenewCmd
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
-
EPPDefRegRenewCmd
public EPPDefRegRenewCmd()Allocates a newEPPDefRegRenewCmdwith default attribute values. the defaults include the following:
-
roid is set to
null -
period is set to
1 year -
current expiration date to
null
The name and current expiration year must be set before invokingencode. -
roid is set to
-
EPPDefRegRenewCmd
EPPDefRegRenewCmdconstructor that takes the defReg name and the current expiration year as arguments. The period will default to 1 year.- Parameters:
aTransId- Transaction Id associated with command.aRoid- DefReg name to renew.aCurExpDate- The current expiration date of the defReg
-
EPPDefRegRenewCmd
EPPDefRegRenewCmdconstructor that takes all of the attributes of the renew command as arguments.- Parameters:
aTransId- Transaction Id associated with command.aRoid- DefReg name to renew.aCurExpDate- The current expiration date of the defReg.aPeriod- Registration period in years.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPDefRegRenewCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDefRegMapFactory.NS
-
getKey
Gets the key for the defensive registration object, which is the defensive registration ROID.- Overrides:
getKeyin classEPPCommand- Returns:
- The defensive registration ROID if set;
nullotherwise.
-
getRoid
Gets the defReg roid to renew.- Returns:
- DefReg Roid if defined;
nullotherwise.
-
setRoid
Sets the defReg roid to renew.- Parameters:
aRoid- DefReg Roid
-
equals
Compare an instance ofEPPDefRegRenewCmdwith this instance.- Overrides:
equalsin classEPPRenewCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPDefRegRenewCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPDefRegRenewCmd - 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.
-
getCurExpDate
Get current expiration date.- Returns:
- java.util.Date
-
getPeriod
Gets the registration period of the renew command in years.- Returns:
- Registration Period in years.
-
setCurExpDate
Set current expiration date.- Parameters:
newCurExpDate- java.util.Date
-
setPeriod
Sets the registration period of the renew command in years.- Parameters:
aPeriod- Registration Period in years.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDefRegRenewCmdinstance.- Specified by:
doEncodein classEPPRenewCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPDefRegRenewCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegRenewCmdinstance.
-
doDecode
Decode theEPPDefRegRenewCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPRenewCmd- Parameters:
aElement- Root DOM Element to decodeEPPDefRegRenewCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-