cz.active24.client.fred.data.EppResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fred-client Show documentation
Show all versions of fred-client Show documentation
A Java EPP client for FRED (Free Registry for ENUM and Domains)
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