cz.active24.client.fred.data.transfer.domain.DomainTransferRequest 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.transfer.domain;
import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;
import cz.active24.client.fred.data.transfer.TransferRequest;
import java.io.Serializable;
/**
* A domain transfer command is used to take over sponsorship of a domain. A transfer password must be provided for authorization.
* It can be the transfer password of:
*
* - the domain,
* - the domain owner contact or
* - an administrative contact of the domain.
*
*
*
* - {@link DomainTransferRequest#domainName} - a domain name
* - {@link DomainTransferRequest#authInfo} - the transfer password
*
*
* @see FRED documentation
*/
public class DomainTransferRequest extends EppRequest implements Serializable, TransferRequest {
private String domainName;
private String authInfo;
public DomainTransferRequest(String domainName, String authInfo) {
setServerObjectType(ServerObjectType.DOMAIN);
this.domainName = domainName;
this.authInfo = authInfo;
}
public String getDomainName() {
return domainName;
}
protected void setDomainName(String domainName) {
this.domainName = domainName;
}
public String getAuthInfo() {
return authInfo;
}
protected void setAuthInfo(String authInfo) {
this.authInfo = authInfo;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("DomainTransferRequest{");
sb.append("domainName='").append(domainName).append('\'');
sb.append(", authInfo='").append(authInfo).append('\'');
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy