public class EPPDomainPendActionMsg extends EPPResponse
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPDomainPendActionMsg . |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPDomainPendActionMsg root element. |
extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
Constructor and Description |
---|
EPPDomainPendActionMsg()
EPPDomainPendActionMsg default constructor. |
EPPDomainPendActionMsg(EPPTransId aTransId,
java.lang.String aName,
boolean aSuccess,
EPPTransId aPendingTransId,
java.util.Date aPendingDate)
EPPDomainPendActionMsg constructor that takes all of the required
attributes. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPDomainPendActionMsg . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPDomainPendActionMsg 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
EPPDomainPendActionMsg instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPDomainPendActionMsg with this instance. |
java.lang.String |
getName()
Gets the domain name
|
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPDomainPendActionMsg . |
java.util.Date |
getPendingDate()
Gets the date that the pending action was completed.
|
EPPTransId |
getPendingTransId()
Gets the pending transaction id.
|
java.lang.String |
getType()
Gets the EPP command type associated with
EPPDomainPendActionMsg . |
boolean |
isPASuccess()
Was the pending action successful?
|
void |
setName(java.lang.String aName)
Sets the domain name.
|
void |
setPASuccess(boolean success)
Sets if the pending action was successful.
|
void |
setPendingDate(java.util.Date pendingDate)
Sets the date that the pending action was completed.
|
void |
setPendingTransId(EPPTransId pendingTransId)
Sets the pending transaction id.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
addExtension, decode, encode, findDuplicateExtNamespaces, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
public static final java.lang.String ELM_LOCALNAME
EPPDomainPendActionMsg
.public static final java.lang.String ELM_NAME
EPPDomainPendActionMsg
root element.public EPPDomainPendActionMsg()
EPPDomainPendActionMsg
default constructor. Must call required
setter methods before encode.public EPPDomainPendActionMsg(EPPTransId aTransId, java.lang.String aName, boolean aSuccess, EPPTransId aPendingTransId, java.util.Date aPendingDate)
EPPDomainPendActionMsg
constructor that takes all of the required
attributes.aTransId
- Poll command transaction idaName
- Domain name of pending actionaSuccess
- Was the pending action successfulaPendingTransId
- Pending action transaction idaPendingDate
- Date of pending action completionpublic java.lang.String getType()
EPPDomainPendActionMsg
.getType
in class EPPResponse
public java.lang.String getNamespace()
EPPDomainPendActionMsg
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPResponse
EPPDomainMapFactory.NS
public java.lang.String getName()
String
instance if defined; null
otherwise.public void setName(java.lang.String aName)
aName
- Domain Namepublic java.util.Date getPendingDate()
public void setPendingDate(java.util.Date pendingDate)
pendingDate
- The pendingDate to set.public EPPTransId getPendingTransId()
public void setPendingTransId(EPPTransId pendingTransId)
pendingTransId
- The pendingTransId to set.public boolean isPASuccess()
true
if the pending action was successfully
completed; false
otherwise.public void setPASuccess(boolean success)
success
- The success to set.public boolean equals(java.lang.Object aObject)
EPPDomainPendActionMsg
with this instance.equals
in class EPPResponse
aObject
- Object to compare with.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDomainPendActionMsg
.clone
in interface EPPCodecComponent
clone
in class EPPResponse
EPPDomainPendActionMsg
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 EPPResponse
String
if successful; ERROR
otherwise.protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPDomainPendActionMsg
instance.doEncode
in class EPPResponse
aDocument
- DOM Document that is being built. Used as an Element factory.EPPDomainPendActionMsg
instance.EPPEncodeException
- Unable to encode EPPDomainPendActionMsg
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPDomainPendActionMsg
attributes from the
aElement
DOM Element tree.doDecode
in class EPPResponse
aElement
- Root DOM Element to decode EPPDomainPendActionMsg
from.EPPDecodeException
- Unable to decode aElement