cz.active24.client.fred.data.create.domain.DomainCreateRequest 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.create.domain;
import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.common.domain.EnumValData;
import cz.active24.client.fred.data.common.domain.PeriodType;
import cz.active24.client.fred.data.create.CreateRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* A domain create command is used to register a new domain.
*
*
* - {@link DomainCreateRequest#name} - domain name
* - {@link DomainCreateRequest#period} - the registration period; if omitted, the domain expiration is set to the minimum (FRED’s default: 1 year)
* - {@link DomainCreateRequest#nsset} - an nsset handle to associate
* - {@link DomainCreateRequest#keyset} - the keyset handle to associate
* - {@link DomainCreateRequest#registrant} - the domain owner handle
* - {@link DomainCreateRequest#admin} - an administrative contact handle
* - {@link DomainCreateRequest#authInfo} - authorization information (transfer password); if omitted, the password will be generated by the server
*
*
* @see FRED documentation
*/
public class DomainCreateRequest extends EppRequest implements Serializable, CreateRequest {
private String name;
private PeriodType period;
private String nsset;
private String keyset;
private String registrant;
private List admin;
private String authInfo;
private EnumValData enumValData;
public DomainCreateRequest(String domainName, String registrant) {
setServerObjectType(ServerObjectType.DOMAIN);
this.name = domainName;
this.registrant = registrant;
this.admin = new ArrayList();
}
public String getName() {
return name;
}
protected void setName(String name) {
this.name = name;
}
public PeriodType getPeriod() {
return period;
}
public void setPeriod(PeriodType period) {
this.period = period;
}
public String getNsset() {
return nsset;
}
public void setNsset(String nsset) {
this.nsset = nsset;
}
public String getKeyset() {
return keyset;
}
public void setKeyset(String keyset) {
this.keyset = keyset;
}
public String getRegistrant() {
return registrant;
}
protected void setRegistrant(String registrant) {
this.registrant = registrant;
}
public List getAdmin() {
return admin;
}
public void setAdmin(List admin) {
this.admin = admin;
}
public String getAuthInfo() {
return authInfo;
}
public void setAuthInfo(String authInfo) {
this.authInfo = authInfo;
}
public EnumValData getEnumValData() {
return enumValData;
}
public void setEnumValData(EnumValData enumValData) {
this.enumValData = enumValData;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("DomainCreateRequest{");
sb.append("name='").append(name).append('\'');
sb.append(", period=").append(period);
sb.append(", nsset='").append(nsset).append('\'');
sb.append(", keyset='").append(keyset).append('\'');
sb.append(", registrant='").append(registrant).append('\'');
sb.append(", admin=").append(admin);
sb.append(", authInfo='").append(authInfo).append('\'');
sb.append(", enumValData=").append(enumValData);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy