cz.active24.client.fred.data.renew.domain.DomainRenewResponse 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.renew.domain;
import cz.active24.client.fred.data.EppResponse;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;
import java.io.Serializable;
import java.util.Date;
/**
* A domain renew command is used to prolong the registration of a domain name.
*
*
* - {@link DomainRenewResponse#name} - the domain name
* - {@link DomainRenewResponse#exDate} - the new expiration date of the domain name after renewal
*
*
* @see FRED documentation
*/
public class DomainRenewResponse extends EppResponse implements Serializable {
private String name;
private Date exDate;
public DomainRenewResponse() {
setServerObjectType(ServerObjectType.DOMAIN);
}
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;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("DomainRenewResponse{");
sb.append("name='").append(name).append('\'');
sb.append(", exDate=").append(exDate);
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