|
||||||||||
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.EPPTransferCmd
com.verisign.epp.codec.domain.EPPDomainTransferCmd
public class EPPDomainTransferCmd
Represents an EPP Domain <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 EPP command elements, the <transfer> command MUST
contain an op
attribute with value query
, and a
<domain:transfer> element that identifies the domain namespace and
the location of the domain schema. The <domain:transfer> element
SHALL contain the following child elements:
getName
and setName
to get and set the element.
getPeriod
and
setPeriod
to get and set the element. If return
null
, period has not been specified yet.
getOp
and setOp
to get and
set the element. One of the EPPCommand.OP_
constants need to
be specified.
getAuthInfo
and setAuthInfo
to
get and set the element.
EPPDomainTransferResp
is the concrete EPPReponse
associated with EPPDomainTransferCmd
.
EPPDomainTransferResp
,
Serialized FormField 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 | |
---|---|
EPPDomainTransferCmd()
Allocates a new EPPDomainTransferCmd with default attribute
values. |
|
EPPDomainTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aName)
EPPDomainTransferCmd constructor that takes the required
attributes as arguments. |
|
EPPDomainTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aName,
EPPAuthInfo aAuthInfo,
EPPDomainPeriod aPeriod)
EPPDomainTransferCmd constructor that takes the required
attributes plus the optional attibute aPeriod . |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPDomainTransferCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the EPPDomainTransferCmd 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 EPPDomainTransferCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPDomainTransferCmd with this
instance. |
EPPAuthInfo |
getAuthInfo()
Get authorization Information. |
java.lang.String |
getName()
Gets the domain name to query. |
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with EPPDomainTransferCmd . |
EPPDomainPeriod |
getPeriod()
Gets the registration period of the transfer command in years. |
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information. |
void |
setName(java.lang.String aName)
Sets the domain name to query. |
void |
setPeriod(EPPDomainPeriod aPeriod)
Sets the registration period of the transfer command. |
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.EPPTransferCmd |
---|
doGenDecode, doGenEncode, getOp, getType, setOp |
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand |
---|
addExtension, decode, encode, getExtension, getExtension, getExtensions, 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 EPPDomainTransferCmd()
EPPDomainTransferCmd
with default attribute
values. the defaults include the following: null
null
null
encode
.
public EPPDomainTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aName)
EPPDomainTransferCmd
constructor that takes the required
attributes as arguments. The period attribute is set to
UNSPEC_PERIOD
and will not be included when
encode
is invoked.
aTransId
- Transaction Id associated with the command.aOp
- One of the EPPCommand.OP_
constants associated
with the transfer command.aName
- Domain name to create.public EPPDomainTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aName, EPPAuthInfo aAuthInfo, EPPDomainPeriod aPeriod)
EPPDomainTransferCmd
constructor that takes the required
attributes plus the optional attibute aPeriod
.
aTransId
- Transaction Id associated with the command.aOp
- One of the EPPCommand.OP_
constants associated
with the transfer command.aName
- Domain name to create.aAuthInfo
- Authorization Information for operating with the
domain.aPeriod
- Registration period to be added to the domain upon
transfer.Method Detail |
---|
public java.lang.String getNamespace()
EPPDomainTransferCmd
.
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPDomainMapFactory.NS
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPDomainTransferCmd
instance.
doEncode
in class EPPTransferCmd
aDocument
- DOM Document that is being built. Used as an Element
factory.
EPPDomainTransferCmd
instance.
EPPEncodeException
- Unable to encode
EPPDomainTransferCmd
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPDomainTransferCmd
attributes from the
aElement DOM Element tree.
doDecode
in class EPPTransferCmd
aElement
- Root DOM Element to decode
EPPDomainTransferCmd
from.
EPPDecodeException
- Unable to decode aElementpublic java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- Domain Namepublic boolean equals(java.lang.Object aObject)
EPPDomainTransferCmd
with this
instance.
equals
in class EPPTransferCmd
aObject
- Object to compare with.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDomainTransferCmd
.
clone
in interface EPPCodecComponent
clone
in class EPPTransferCmd
EPPDomainTransferCmd
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 EPPCommand
String
if successful;
ERROR
otherwise.public EPPAuthInfo getAuthInfo()
public EPPDomainPeriod getPeriod()
null
otherwise.public void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo
- com.verisign.epp.codec.domain.EPPAuthInfopublic void setPeriod(EPPDomainPeriod aPeriod)
aPeriod
- Registration Period.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |