All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.active24.client.fred.data.EppResponse Maven / Gradle / Ivy

There is a newer version: 2.50
Show newest version
package cz.active24.client.fred.data;

import cz.active24.client.fred.eppclient.SuccessfulResponse;
import ietf.params.xml.ns.epp_1.ResponseType;

/**
 * Every response from server must have server transaction id (svTRID) and clientTransactionId (clTRID).
 *
 * 
    *
  • {@link EppResponse#result} - see {@link SuccessfulResponse}
  • *
  • {@link EppResponse#clientTransactionId} - client transaction identifier
  • *
  • {@link EppResponse#serverTransactionId} - server transaction identifier
  • *
*/ public abstract class EppResponse extends EppCommand { private SuccessfulResponse result; private String clientTransactionId; private String serverTransactionId; public String getClientTransactionId() { return clientTransactionId; } public void setClientTransactionId(String clientTransactionId) { this.clientTransactionId = clientTransactionId; } public String getServerTransactionId() { return serverTransactionId; } public void setServerTransactionId(String serverTransactionId) { this.serverTransactionId = serverTransactionId; } public SuccessfulResponse getResult() { return result; } public void setResult(SuccessfulResponse result) { this.result = result; } public void addResponseInfo(ResponseType responseType) { this.setClientTransactionId(responseType.getTrID().getClTRID()); this.setServerTransactionId(responseType.getTrID().getSvTRID()); this.setResult(SuccessfulResponse.fromValue(responseType.getResult().get(0).getCode())); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy