cz.active24.client.fred.data.update.domain.DomainUpdateRequest 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.update.domain;
import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.common.domain.EnumValData;
import cz.active24.client.fred.data.update.UpdateRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;
import java.io.Serializable;
/**
* A domain update command is used to alter details of a domain.
*
*
* - {@link DomainUpdateRequest#name} - the domain name
* - {@link DomainUpdateRequest#add} - see {@link DomainAddData}
* - {@link DomainUpdateRequest#rem} - see {@link DomainRemData}
* - {@link DomainUpdateRequest#chg} - the new values of domain attributes that will be changed by this update. Omitted attributes will remain unchanged, see {@link DomainChangeData}
* - {@link DomainUpdateRequest#enumValUpdateData} - the command extension can be used to change the validation of an ENUM domain and/or its publish flag
*
*
* @see FRED documentation
*/
public class DomainUpdateRequest extends EppRequest implements Serializable, UpdateRequest {
private String name;
private DomainAddData add;
private DomainRemData rem;
private DomainChangeData chg;
private EnumValData enumValUpdateData;
public DomainUpdateRequest(String domainName) {
setServerObjectType(ServerObjectType.DOMAIN);
this.name = domainName;
}
public String getName() {
return name;
}
protected void setName(String name) {
this.name = name;
}
public DomainAddData getAdd() {
return add;
}
public void setAdd(DomainAddData add) {
this.add = add;
}
public DomainRemData getRem() {
return rem;
}
public void setRem(DomainRemData rem) {
this.rem = rem;
}
public DomainChangeData getChg() {
return chg;
}
public void setChg(DomainChangeData chg) {
this.chg = chg;
}
public EnumValData getEnumValUpdateData() {
return enumValUpdateData;
}
public void setEnumValUpdateData(EnumValData enumValUpdateData) {
this.enumValUpdateData = enumValUpdateData;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("DomainUpdateRequest{");
sb.append("name='").append(name).append('\'');
sb.append(", add=").append(add);
sb.append(", rem=").append(rem);
sb.append(", chg=").append(chg);
sb.append(", enumValUpdateData=").append(enumValUpdateData);
sb.append(", clientTransactionId='").append(getClientTransactionId()).append('\'');
sb.append(", serverObjectType=").append(getServerObjectType());
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy