Package com.verisign.epp.codec.defReg
Class EPPDefRegTransferCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPTransferCmd
com.verisign.epp.codec.defReg.EPPDefRegTransferCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP DefReg
<transfer> command, which
provides either a query operation that allows a client to determine
real-time status of pending and completed transfer requests, or a transform operation that allows
a client to manage requests to transfer the sponsorship of a defReg object. In addition
to the standard EPP
command elements, the <transfer> command MUST contain a
<defReg:transfer> element that identifies the defReg namespace.
The <defReg:transfer> element
contains the following child elements:
-
A
<defReg:roid>element that contains that contains the repository object identifier assigned to the defReg object when the object was created. -
A
<defReg:periodelement that contains the number of units to be added to the registration period of the defReg object at completion of the transfer process. This element is only applicable in a transform command where the "op" attribute of the EPP<transfer>command is set to "request". -
An OPTIONAL
<defReg:authInfo>element that contains authorization information associated with the defReg object or authorization information associated with the defReg object's registrant or associated contacts. An OPTIONAL "roid" attribute MUST be used to identify the registrant or contact object if and only if the given authInfo is associated with a registrant or contact object and not the defReg itself. If this element is not provided or if the authorization information is invalid, server policy determines if the command is rejected or if response information will be returned to the client.
- See Also:
-
Field Summary
Fields inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
opFields 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 newEPPDefRegTransferCmdwith default attribute values.EPPDefRegTransferCmd(String aTransId, String aOp, String aRoid) EPPDefRegTransferCmdconstructor that takes the required attributes as arguments.EPPDefRegTransferCmd(String aTransId, String aOp, String aRoid, EPPAuthInfo aAuthInfo, EPPDefRegPeriod aPeriod) EPPDefRegTransferCmdconstructor that takes the required attributes plus the optional attibuteaPeriod. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegTransferCmd.protected voidDecode theEPPDefRegTransferCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDefRegTransferCmdinstance.booleanCompare an instance ofEPPDefRegTransferCmdwith this instance.Get authorization informationgetKey()Gets the key for the defensive registration object, which is the defensive registration ROID.Gets the EPP command Namespace associated withEPPDefRegTransferCmd.Gets the registration period of the transfer command in years.getRoid()Gets the defReg name to query.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization informationvoidsetPeriod(EPPDefRegPeriod aPeriod) Sets the registration period of the transfer command.voidSets the defReg name to query.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
doGenDecode, doGenEncode, getOp, getType, setOpMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Constructor Details
-
EPPDefRegTransferCmd
public EPPDefRegTransferCmd()Allocates a newEPPDefRegTransferCmdwith default attribute values. the defaults include the following:
-
roid is set to
null -
period is set to
null -
authInfo is set to to
null
The transaction ID, operation, name, and authInfo must be set before invokingencode. -
roid is set to
-
EPPDefRegTransferCmd
EPPDefRegTransferCmdconstructor that takes the required attributes as arguments. The period attribute is set toUNSPEC_PERIODand will not be included whenencodeis invoked.- Parameters:
aTransId- Transaction Id associated with the command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.aRoid- DefReg roid to create.
-
EPPDefRegTransferCmd
public EPPDefRegTransferCmd(String aTransId, String aOp, String aRoid, EPPAuthInfo aAuthInfo, EPPDefRegPeriod aPeriod) EPPDefRegTransferCmdconstructor that takes the required attributes plus the optional attibuteaPeriod.- Parameters:
aTransId- Transaction Id associated with the command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.aRoid- DefReg roid to create.aAuthInfo- Authorization Information for operating with the defReg.aPeriod- Registration period to be added to the defReg upon transfer.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPDefRegTransferCmd.- 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.
-
getAuthInfo
Get authorization information- Returns:
- EPPAuthInfo
-
setAuthInfo
Set authorization information- Parameters:
newAuthInfo- java.lang.String
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDefRegTransferCmdinstance.- Specified by:
doEncodein classEPPTransferCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPDefRegTransferCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegTransferCmdinstance.
-
doDecode
Decode theEPPDefRegTransferCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPTransferCmd- Parameters:
aElement- Root DOM Element to decodeEPPDefRegTransferCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getRoid
Gets the defReg name to query.- Returns:
- DefReg Name if defined;
nullotherwise.
-
setRoid
Sets the defReg name to query.- Parameters:
aRoid- DefReg Name
-
getPeriod
Gets the registration period of the transfer command in years.- Returns:
- Registration Period in years if defined;
nullotherwise.
-
setPeriod
Sets the registration period of the transfer command.- Parameters:
aPeriod- Registration Period.
-
equals
Compare an instance ofEPPDefRegTransferCmdwith this instance.- Overrides:
equalsin classEPPTransferCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPDefRegTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPTransferCmd- Returns:
- clone of
EPPDefRegTransferCmd - 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.
-