Class EPPRelatedDomainExtDomainData
java.lang.Object
com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtDomainData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPRelatedDomainExtDomainDatadefault constructor.Constructor which takes the name of domain.EPPRelatedDomainExtDomainData(String aName, String aDeleteResult) Constructor which takes the name of domain and deletion resultEPPRelatedDomainExtDomainData(String aName, String aTransferStatus, String aRequestClient, Date aRequestDate, String aActionClient, Date aActionDate, Date aExpirationDate) Constructor which takes the name of domain, transfer status, request client, request date, action client, action date and expiration date.EPPRelatedDomainExtDomainData(String aName, Date aExpirationDate) Constructor which takes the name of domain and expiration dateEPPRelatedDomainExtDomainData(String aName, Date aCreationDate, Date aExpirationDate) Constructor which takes the name of domain, creation date and expiration date -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRelatedDomainExtDomainData.voidDecode theEPPRelatedDomainExtDomainDataattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRelatedDomainExtDomainDatainstance.booleanCompare an instance ofEPPRelatedDomainExtDomainDatawith this instance.Gets the identifier of the client that SHOULD respond to the transfer request.Gets the date and time of a required or completed response.Returns the createdDateReturns the deleteResultGets 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.getName()Gets the domain nameReturns the XML namespace associated with theEPPCodecComponent.Gets the identifier of the client that initiated the transfer request.Gets the date and time that the transfer was requested.Gets the state of the most recent transfer request.booleanbooleanbooleanbooleanbooleanbooleanhasName()booleanbooleanbooleanvoidsetActionClient(String aActionClient) Sets the identifier of the client that SHOULD respond to the transfer request.voidsetActionDate(Date aActionDate) Sets the date and time of a required or completed response.voidsetCreatedDate(Date aCreatedDate) Sets createdDate value to createdDatevoidsetDeleteResult(String aDeleteResult) Sets deleteResult value to deleteResultvoidsetExpirationDate(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.voidSets the domain name.voidsetRequestClient(String aRequestClient) Sets the identifier of the client that initiated the transfer request.voidsetRequestDate(Date aRequestDate) Sets the date and time that the transfer was requested.voidsetTransferStatus(String aTransferStatus) Sets the state of the most recent transfer request.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
DELETE_DELETED
Constant for the delete result when the domain is deleted.- See Also:
-
DELETE_PENDING_DELETE
- See Also:
-
-
Constructor Details
-
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
Constructor which takes the name of domain.- Parameters:
aName- Domain name
-
EPPRelatedDomainExtDomainData
Constructor which takes the name of domain, creation date and expiration date- Parameters:
aName- Domain nameaCreationDate- Creation date of domain nameaExpirationDate- Expiration date
-
EPPRelatedDomainExtDomainData
Constructor which takes the name of domain and expiration date- Parameters:
aName- Domain nameaExpirationDate- Expiration date
-
EPPRelatedDomainExtDomainData
Constructor which takes the name of domain and deletion result- Parameters:
aName- Domain nameaDeleteResult- Deletion result
-
EPPRelatedDomainExtDomainData
public EPPRelatedDomainExtDomainData(String aName, String aTransferStatus, String aRequestClient, Date aRequestDate, String aActionClient, Date aActionDate, 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 Details
-
encode
Encode 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
Decode 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
Compare an instance ofEPPRelatedDomainExtDomainDatawith this instance. -
clone
CloneEPPRelatedDomainExtDomainData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRelatedDomainExtDomainData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getName
Gets the domain name- Returns:
- Domain Name if set;
nullotherwise.
-
setName
Sets the domain name.- Parameters:
aName- Domain Name
-
getRequestClient
Gets the identifier of the client that initiated the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setRequestClient
Sets the identifier of the client that initiated the transfer request.- Parameters:
aRequestClient- The Request Client IdString
-
getActionClient
Gets the identifier of the client that SHOULD respond to the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setActionClient
Sets the identifier of the client that SHOULD respond to the transfer request.- Parameters:
aActionClient- The Action Client IdString
-
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
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
Gets the date and time that the transfer was requested.- Returns:
- The request date and time if defined;
nullotherwise.
-
setRequestDate
Sets the date and time that the transfer was requested.- Parameters:
aRequestDate- The request date and time
-
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
Sets the date and time of a required or completed response.- Parameters:
aActionDate- The required or complete response data and time.
-
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
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
Returns the createdDate- Returns:
- the createdDate
-
setCreatedDate
Sets createdDate value to createdDate- Parameters:
aCreatedDate- the createdDate to set
-
getDeleteResult
Returns the deleteResult- Returns:
- the deleteResult
-
setDeleteResult
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
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-