cz.active24.client.fred.data.poll.PollAcknowledgementResponse 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.poll;
import cz.active24.client.fred.data.EppResponse;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;
import java.io.Serializable;
/**
* The response from the FRED EPP server contains the result, message queue information and transaction identification.
*
*
* - {@link PollAcknowledgementResponse#id} - the identification number of the first message in the queue
* - {@link PollAcknowledgementResponse#count} - the count of messages in the queue
*
*
* @see FRED documentation
*/
public class PollAcknowledgementResponse extends EppResponse implements Serializable {
private String id;
private Integer count;
public PollAcknowledgementResponse() {
setServerObjectType(ServerObjectType.OTHER);
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("PollAcknowledgementResponse{");
sb.append("id='").append(id).append('\'');
sb.append(", count=").append(count);
sb.append(", clientTransactionId='").append(getClientTransactionId()).append('\'');
sb.append(", serverTransactionId='").append(getServerTransactionId()).append('\'');
sb.append(", result=").append(getResult());
sb.append(", serverObjectType=").append(getServerObjectType());
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy