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,java.io.Serializable,java.lang.Cloneable
public class EPPDefRegTransferCmd extends EPPTransferCmd
Represents an EPP DefReg <transfer> command. The EPP <transfer> command provides a query operation that allows a client to determine real-time status of pending and completed transfer requests. In addition to the standard EPPhttp://www.niscom.nic.in/NISTXT/services/Ser1AA.htm command elements, the <transfer> command MUST contain anopattribute with valuequery, and a <defReg:transfer> element that identifies the defReg namespace and the location of the defReg schema. The <defReg:transfer> element SHALL contain the following child elements:
- A <defReg:roid> element that contains that contains the roid of the object to be transferred
-
Use
getRoidandsetRoidto get and set the element. -
An OPTIONAL <defReg:period> element that contains the initial
registration period of the defReg object. Use
getPeriodandsetPeriodto get and set the element. If returnnull, period has not been specified yet. -
An "op" attribute that identifies the transfer operation to be performed.
Valid values, definitions, and authorizations for all attribute values are
defined in [EPP]. Use
getOpandsetOpto get and set the element. One of theEPPCommand.OP_constants need to be specified. -
A <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. This element is
REQUIRED only when a transfer is requested, and it SHALL be ignored if used
otherwise. Use
getAuthInfoandsetAuthInfoto get and set the element.EPPDefRegTransferRespis the concreteEPPReponseassociated withEPPDefRegTransferCmd.
- See Also:
EPPDefRegTransferResp, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
op
-
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
Constructors Constructor Description EPPDefRegTransferCmd()Allocates a newEPPDefRegTransferCmdwith default attribute values.EPPDefRegTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aRoid)EPPDefRegTransferCmdconstructor that takes the required attributes as arguments.EPPDefRegTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aRoid, EPPAuthInfo aAuthInfo, EPPDefRegPeriod aPeriod)EPPDefRegTransferCmdconstructor that takes the required attributes plus the optional attibuteaPeriod.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPDefRegTransferCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPDefRegTransferCmdattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPDefRegTransferCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPDefRegTransferCmdwith this instance.EPPAuthInfogetAuthInfo()Get authorization informationjava.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPDefRegTransferCmd.EPPDefRegPeriodgetPeriod()Gets the registration period of the transfer command in years.java.lang.StringgetRoid()Gets the defReg name to query.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization informationvoidsetPeriod(EPPDefRegPeriod aPeriod)Sets the registration period of the transfer command.voidsetRoid(java.lang.String aRoid)Sets the defReg name to query.java.lang.StringtoString()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, setOp
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Constructor Detail
-
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
public EPPDefRegTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aRoid)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(java.lang.String aTransId, java.lang.String aOp, java.lang.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 Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPDefRegTransferCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDefRegMapFactory.NS
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Get authorization information- Returns:
- EPPAuthInfo
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information- Parameters:
newAuthInfo- java.lang.String
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.String getRoid()
Gets the defReg name to query.- Returns:
- DefReg Name if defined;
nullotherwise.
-
setRoid
public void setRoid(java.lang.String aRoid)
Sets the defReg name to query.- Parameters:
aRoid- DefReg Name
-
getPeriod
public EPPDefRegPeriod getPeriod()
Gets the registration period of the transfer command in years.- Returns:
- Registration Period in years if defined;
nullotherwise.
-
setPeriod
public void setPeriod(EPPDefRegPeriod aPeriod)
Sets the registration period of the transfer command.- Parameters:
aPeriod- Registration Period.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPDefRegTransferCmdwith this instance.- Overrides:
equalsin classEPPTransferCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPDefRegTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPTransferCmd- Returns:
- clone of
EPPDefRegTransferCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-