Class EPPDefRegTransferResp

  • All Implemented Interfaces:
    EPPCodecComponent, EPPMessage, java.io.Serializable, java.lang.Cloneable

    public class EPPDefRegTransferResp
    extends EPPResponse
    Represents an EPP DefReg <defReg:transfer> response to an EPPDefRegTransferCmd. When a <transfer> query command has been processed successfully, the EPP <resData> element MUST contain a child <defReg:trnData> element that identifies the defReg namespace. The <defReg:trnData> element contains the following child elements:
    • A <defReg:roid> element that contains the repository object identifier assigned to the defReg object when the object was created.
    • A <defReg:trStatus> element that contains the state of the most recent transfer request.
    • A <defReg:reID> element that contains the identifier of the client that requested the object transfer.
    • A <defReg:reDate> element that contains the date and time that the transfer was requested.
    • A <defReg:acID> element that contains the identifier of the client that SHOULD act upon the PENDING transfer request. For all other status types, the value identifies the client that took the indicated action.
    • A <defReg:acDate> element that contains the date and time of a required or completed response. For a PENDING request, the value identifies the date and time by which a response is required before an automated response action MUST be taken by the server. For all other status types, the value identifies the date and time when the request was completed.
    • An OPTIONAL <defReg:exDate> element that contains the end of the defReg object's validity period if the <transfer> command caused or causes a change in the validity period.
    See Also:
    EPPDefRegTransferCmd, Serialized Form
    • Constructor Detail

      • EPPDefRegTransferResp

        public EPPDefRegTransferResp()
        EPPDefRegTransferResp default constructor. Must call required setter methods before invoking encode, which include:

        • roid - setRoid
        • request client - setRequestClient
        • action client - setActionClient
        • transfer status - setTransferStatus
        • request date - setReqeustDate
        • action date - setActionDate
        • transaction id - setTransId
      • EPPDefRegTransferResp

        public EPPDefRegTransferResp​(EPPTransId aTransId,
                                     java.lang.String aRoid)
        EPPDefRegTransferResp which takes the roid of defReg. All other required attributes need to be set using the setter methods, which include:

        • request client - setRequestClient
        • action client - setActionClient
        • transfer status - setTransferStatus
        • request date - setReqeustDate
        • action date - setActionDate
        Parameters:
        aTransId - Transaction Id associated with response.
        aRoid - String roid
    • Method Detail

      • getType

        public java.lang.String getType()
        Gets the EPP response type associated with EPPDefRegTransferResp.
        Overrides:
        getType in class EPPResponse
        Returns:
        EPPDefRegTransferResp.ELM_NAME
      • doEncode

        protected org.w3c.dom.Element doEncode​(org.w3c.dom.Document aDocument)
                                        throws EPPEncodeException
        Encode a DOM Element tree from the attributes of the EPPDefRegTransferResp instance.
        Overrides:
        doEncode in class EPPResponse
        Parameters:
        aDocument - DOM Document that is being built. Used as an Element factory.
        Returns:
        Root DOM Element representing the EPPDefRegTransferResp instance.
        Throws:
        EPPEncodeException - Unable to encode EPPDefRegTransferResp instance.
      • doDecode

        protected void doDecode​(org.w3c.dom.Element aElement)
                         throws EPPDecodeException
        Decode the EPPDefRegTransferResp attributes from the aElement DOM Element tree.
        Overrides:
        doDecode in class EPPResponse
        Parameters:
        aElement - Root DOM Element to decode EPPDefRegTransferResp from.
        Throws:
        EPPDecodeException - Unable to decode aElement
      • equals

        public boolean equals​(java.lang.Object aObject)
        Compare an instance of EPPDefRegTransferResp with this instance.
        Overrides:
        equals in class EPPResponse
        Parameters:
        aObject - Object to compare with.
        Returns:
        DOCUMENT ME!
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Clone EPPDefRegTransferResp.
        Specified by:
        clone in interface EPPCodecComponent
        Overrides:
        clone in class EPPResponse
        Returns:
        clone of EPPDefRegTransferResp
        Throws:
        java.lang.CloneNotSupportedException - standard Object.clone exception
      • toString

        public java.lang.String toString()
        Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
        Overrides:
        toString in class EPPResponse
        Returns:
        Indented XML String if successful; ERROR otherwise.
      • getRoid

        public java.lang.String getRoid()
        Gets the defReg roid
        Returns:
        DefReg roid if set; null otherwise.
      • setRoid

        public void setRoid​(java.lang.String aRoid)
        Sets the defReg roid.
        Parameters:
        aRoid - DefReg Roid
      • getRequestClient

        public java.lang.String getRequestClient()
        Gets the identifier of the client that initiated the transfer request.
        Returns:
        The Request Client Id String if defined; null otherwise.
      • setRequestClient

        public void setRequestClient​(java.lang.String aRequestClient)
        Sets the identifier of the client that initiated the transfer request.
        Parameters:
        aRequestClient - The Request Client Id String
      • getActionClient

        public java.lang.String getActionClient()
        Gets the identifier of the client that SHOULD respond to the transfer request.
        Returns:
        The Request Client Id String if defined; null otherwise.
      • 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 Id String
      • getTransferStatus

        public java.lang.String getTransferStatus()
        Gets the state of the most recent transfer request. This should be one of the EPPResponse.TRANSFER constants.
        Returns:
        The transfer status String if defined; null otherwise.
      • setTransferStatus

        public void setTransferStatus​(java.lang.String aTransferStatus)
        Sets the state of the most recent transfer request. This should be one of the EPPResponse.TRANSFER constants.
        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; null otherwise.
      • 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; null otherwise.
      • 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 defReg's validity period if the transfer command caused or causes a change in the validity period.
        Returns:
        Transfer expiration data and time if defined; null otherwise.
      • setExpirationDate

        public void setExpirationDate​(java.util.Date aExpirationDate)
        Sets the optional attribute that contains the end of the defReg's validity period if the transfer command caused or causes a change in the validity period.
        Parameters:
        aExpirationDate - Transfer expiration data and time.