cz.active24.client.fred.data.poll.domain.DomainExpirationPollResponse 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.domain;
import cz.active24.client.fred.data.poll.PollResponse;
import cz.active24.client.fred.eppclient.objectstrategy.PollMessageType;
import java.io.Serializable;
import java.util.Date;
/**
* Event: Domain expiration.
*
*
* - {@link DomainExpirationPollResponse#name} - the domain name they are referring
* - {@link DomainExpirationPollResponse#exDate} - the expiration date of the domain name
* - {@link DomainExpirationPollResponse#eventType} - event type, see {@link DomainExpirationEventType}
*
*
* @see FRED documentation
*/
public class DomainExpirationPollResponse extends PollResponse implements Serializable {
private String name;
private Date exDate;
private DomainExpirationEventType eventType;
public DomainExpirationPollResponse() {
setPollMessageType(PollMessageType.DOMAIN_EXPIRATION);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getExDate() {
return exDate;
}
public void setExDate(Date exDate) {
this.exDate = exDate;
}
public DomainExpirationEventType getEventType() {
return eventType;
}
public void setEventType(DomainExpirationEventType eventType) {
this.eventType = eventType;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("DomainExpirationPollResponse{");
sb.append("name='").append(name).append('\'');
sb.append(", exDate=").append(exDate);
sb.append(", eventType=").append(eventType);
sb.append(", messageId='").append(getMessageId()).append('\'');
sb.append(", messageCount=").append(getMessageCount());
sb.append(", messageQDate=").append(getMessageQDate());
sb.append(", pollMessageType=").append(getPollMessageType());
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