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

cz.active24.client.fred.data.check.domain.DomainCheckRequest Maven / Gradle / Ivy

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

import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.check.CheckRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * A domain check command is used to check the availability of one or more domain names.
 *
 * @see FRED documentation
 */
public class DomainCheckRequest extends EppRequest implements Serializable, CheckRequest {

    private List names;

    public DomainCheckRequest(List domainNames) {
        setServerObjectType(ServerObjectType.DOMAIN);
        setNames(domainNames == null ? new ArrayList() : domainNames);
    }

    public List getNames() {
        return names;
    }

    protected void setNames(List names) {
        this.names = names;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("DomainCheckRequest{");
        sb.append("names=").append(names);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy