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

cz.active24.client.fred.data.renew.domain.DomainRenewRequest Maven / Gradle / Ivy

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

import cz.active24.client.fred.data.common.domain.PeriodType;
import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.common.domain.EnumValData;
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 DomainRenewRequest#domainName} - the domain name
  • *
  • {@link DomainRenewRequest#curExpDate} - the domain’s current expiration date
  • *
  • {@link DomainRenewRequest#period} - the prolongation period
  • *
  • {@link DomainRenewRequest#enumValData} - the command extension can be used to prolong the validation * of an ENUM domain together with prolongation of expiration
  • *
* * @see FRED documentation */ public class DomainRenewRequest extends EppRequest implements Serializable { private String domainName; private Date curExpDate; private PeriodType period; private EnumValData enumValData; public DomainRenewRequest(String domainName, Date curExpDate) { setServerObjectType(ServerObjectType.DOMAIN); this.domainName = domainName; this.curExpDate = curExpDate; } public String getDomainName() { return domainName; } protected void setDomainName(String domainName) { this.domainName = domainName; } public Date getCurExpDate() { return curExpDate; } protected void setCurExpDate(Date curExpDate) { this.curExpDate = curExpDate; } public PeriodType getPeriod() { return period; } public void setPeriod(PeriodType period) { this.period = period; } public EnumValData getEnumValData() { return enumValData; } public void setEnumValData(EnumValData enumValData) { this.enumValData = enumValData; } @Override public String toString() { final StringBuffer sb = new StringBuffer("DomainRenewRequest{"); sb.append("domainName='").append(domainName).append('\''); sb.append(", curExpDate=").append(curExpDate); sb.append(", period=").append(period); sb.append(", enumValData=").append(enumValData); sb.append('}'); return sb.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy