Class EPPRelatedDomainExtDomainData
- java.lang.Object
-
- com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtDomainData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRelatedDomainExtDomainData extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a <relDom:domain> tag sent in a response. This element contains a number of child elements. Not all of them are required for all the responses listed below in which this element is used.- Domain Create Response
- Domain Delete Response
- Domain Renew Response
- Domain Transfer Response
Title: EPP 1.0 Related Domain - domain tag
Description: The EPPRelatedDomainExtDomainData object represents the collection of domains that had been processed atomically. As XML, it is represented by a <relDom:domain> element.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELETE_DELETEDConstant for the delete result when the domain is deleted.static java.lang.StringDELETE_PENDING_DELETE
-
Constructor Summary
Constructors Constructor Description EPPRelatedDomainExtDomainData()EPPRelatedDomainExtDomainDatadefault constructor.EPPRelatedDomainExtDomainData(java.lang.String aName)Constructor which takes the name of domain.EPPRelatedDomainExtDomainData(java.lang.String aName, java.lang.String aDeleteResult)Constructor which takes the name of domain and deletion resultEPPRelatedDomainExtDomainData(java.lang.String aName, java.lang.String aTransferStatus, java.lang.String aRequestClient, java.util.Date aRequestDate, java.lang.String aActionClient, java.util.Date aActionDate, java.util.Date aExpirationDate)Constructor which takes the name of domain, transfer status, request client, request date, action client, action date and expiration date.EPPRelatedDomainExtDomainData(java.lang.String aName, java.util.Date aExpirationDate)Constructor which takes the name of domain and expiration dateEPPRelatedDomainExtDomainData(java.lang.String aName, java.util.Date aCreationDate, java.util.Date aExpirationDate)Constructor which takes the name of domain, creation date and expiration date
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRelatedDomainExtDomainData.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRelatedDomainExtDomainDataattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRelatedDomainExtDomainDatainstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRelatedDomainExtDomainDatawith this instance.java.lang.StringgetActionClient()Gets the identifier of the client that SHOULD respond to the transfer request.java.util.DategetActionDate()Gets the date and time of a required or completed response.java.util.DategetCreatedDate()Returns the createdDatejava.lang.StringgetDeleteResult()Returns the deleteResultjava.util.DategetExpirationDate()Gets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.java.lang.StringgetName()Gets the domain namejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRequestClient()Gets the identifier of the client that initiated the transfer request.java.util.DategetRequestDate()Gets the date and time that the transfer was requested.java.lang.StringgetTransferStatus()Gets the state of the most recent transfer request.booleanhasActionClient()booleanhasActionDate()booleanhasCreatedDate()booleanhasDeleteResult()booleanhasExpirationDate()booleanhasName()booleanhasRequestClient()booleanhasRequestDate()booleanhasTransferStatus()voidsetActionClient(java.lang.String aActionClient)Sets the identifier of the client that SHOULD respond to the transfer request.voidsetActionDate(java.util.Date aActionDate)Sets the date and time of a required or completed response.voidsetCreatedDate(java.util.Date aCreatedDate)Sets createdDate value to createdDatevoidsetDeleteResult(java.lang.String aDeleteResult)Sets deleteResult value to deleteResultvoidsetExpirationDate(java.util.Date aExpirationDate)Sets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.voidsetName(java.lang.String aName)Sets the domain name.voidsetRequestClient(java.lang.String aRequestClient)Sets the identifier of the client that initiated the transfer request.voidsetRequestDate(java.util.Date aRequestDate)Sets the date and time that the transfer was requested.voidsetTransferStatus(java.lang.String aTransferStatus)Sets the state of the most recent transfer request.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
DELETE_DELETED
public static final java.lang.String DELETE_DELETED
Constant for the delete result when the domain is deleted.- See Also:
- Constant Field Values
-
DELETE_PENDING_DELETE
public static final java.lang.String DELETE_PENDING_DELETE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData()
EPPRelatedDomainExtDomainDatadefault constructor. Must call required setter methods before invokingencode, which may include:
- name -
setName - request client -
setRequestClient - action client -
setActionClient - transfer status -
setTransferStatus - request date -
setReqeustDate - action date -
setActionDate - expiration date -
setExpirationDate - created date -
setCreatedDate - deletion result -
setDeleteResult
- name -
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData(java.lang.String aName)
Constructor which takes the name of domain.- Parameters:
aName- Domain name
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData(java.lang.String aName, java.util.Date aCreationDate, java.util.Date aExpirationDate)Constructor which takes the name of domain, creation date and expiration date- Parameters:
aName- Domain nameaCreationDate- Creation date of domain nameaExpirationDate- Expiration date
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData(java.lang.String aName, java.util.Date aExpirationDate)Constructor which takes the name of domain and expiration date- Parameters:
aName- Domain nameaExpirationDate- Expiration date
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData(java.lang.String aName, java.lang.String aDeleteResult)Constructor which takes the name of domain and deletion result- Parameters:
aName- Domain nameaDeleteResult- Deletion result
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData(java.lang.String aName, java.lang.String aTransferStatus, java.lang.String aRequestClient, java.util.Date aRequestDate, java.lang.String aActionClient, java.util.Date aActionDate, java.util.Date aExpirationDate)Constructor which takes the name of domain, transfer status, request client, request date, action client, action date and expiration date.- Parameters:
aName- Domain nameaTransferStatus- Transfer statusaRequestClient- Requesting clientaRequestDate- Requesting dateaActionClient- Acting clientaActionDate- Action dateaExpirationDate- Expiration date
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRelatedDomainExtDomainDatainstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPRelatedDomainExtDomainDatainstance. - Throws:
EPPEncodeException- Unable to encodeEPPRelatedDomainExtDomainDatainstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRelatedDomainExtDomainDataattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRelatedDomainExtDomainDatafrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRelatedDomainExtDomainDatawith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRelatedDomainExtDomainData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRelatedDomainExtDomainData - 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 classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
public java.lang.String getName()
Gets the domain name- Returns:
- Domain Name if set;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the domain name.- Parameters:
aName- Domain Name
-
getRequestClient
public java.lang.String getRequestClient()
Gets the identifier of the client that initiated the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setRequestClient
public void setRequestClient(java.lang.String aRequestClient)
Sets the identifier of the client that initiated the transfer request.- Parameters:
aRequestClient- The Request Client IdString
-
getActionClient
public java.lang.String getActionClient()
Gets the identifier of the client that SHOULD respond to the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setActionClient
public void setActionClient(java.lang.String aActionClient)
Sets the identifier of the client that SHOULD respond to the transfer request.- Parameters:
aActionClient- The Action Client IdString
-
getTransferStatus
public java.lang.String getTransferStatus()
Gets the state of the most recent transfer request. This should be one of theEPPResponse.TRANSFERconstants.- Returns:
- The transfer status
Stringif defined;nullotherwise.
-
setTransferStatus
public void setTransferStatus(java.lang.String aTransferStatus)
Sets the state of the most recent transfer request. This should be one of theEPPResponse.TRANSFERconstants.- Parameters:
aTransferStatus- The transfer status String (EPPResponse.TRANSFER)
-
getRequestDate
public java.util.Date getRequestDate()
Gets the date and time that the transfer was requested.- Returns:
- The request date and time if defined;
nullotherwise.
-
setRequestDate
public void setRequestDate(java.util.Date aRequestDate)
Sets the date and time that the transfer was requested.- Parameters:
aRequestDate- The request date and time
-
getActionDate
public java.util.Date getActionDate()
Gets the date and time of a required or completed response.- Returns:
- The required or complete response data and time if defined;
nullotherwise.
-
setActionDate
public void setActionDate(java.util.Date aActionDate)
Sets the date and time of a required or completed response.- Parameters:
aActionDate- The required or complete response data and time.
-
getExpirationDate
public java.util.Date getExpirationDate()
Gets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.- Returns:
- Transfer expiration data and time if defined;
nullotherwise.
-
setExpirationDate
public void setExpirationDate(java.util.Date aExpirationDate)
Sets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.- Parameters:
aExpirationDate- Transfer expiration data and time.
-
getCreatedDate
public java.util.Date getCreatedDate()
Returns the createdDate- Returns:
- the createdDate
-
setCreatedDate
public void setCreatedDate(java.util.Date aCreatedDate)
Sets createdDate value to createdDate- Parameters:
aCreatedDate- the createdDate to set
-
getDeleteResult
public java.lang.String getDeleteResult()
Returns the deleteResult- Returns:
- the deleteResult
-
setDeleteResult
public void setDeleteResult(java.lang.String aDeleteResult)
Sets deleteResult value to deleteResult- Parameters:
aDeleteResult- the deleteResult to set
-
hasExpirationDate
public boolean hasExpirationDate()
- Returns:
trueif expirationDate is not null.
-
hasActionDate
public boolean hasActionDate()
- Returns:
trueif actionDate is not null.
-
hasActionClient
public boolean hasActionClient()
- Returns:
trueif actionClient is not null.
-
hasRequestDate
public boolean hasRequestDate()
- Returns:
trueif requestDate is not null.
-
hasRequestClient
public boolean hasRequestClient()
- Returns:
trueif requestClient is not null.
-
hasTransferStatus
public boolean hasTransferStatus()
- Returns:
trueif transferStatus is not null.
-
hasDeleteResult
public boolean hasDeleteResult()
- Returns:
trueif deleteResult is not null.
-
hasCreatedDate
public boolean hasCreatedDate()
- Returns:
trueif createdDate is not null.
-
hasName
public boolean hasName()
- Returns:
trueif name is not null.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-