mirror of
https://github.com/google/nomulus
synced 2026-05-22 07:41:50 +00:00
Remove TLD parameters from WHOIS command factory methods
The small efficiency increase in not having to look up the TLDs again did not justify making the externally extensible API more complicated. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145465971
This commit is contained in:
@@ -19,18 +19,13 @@ import static google.registry.model.EppResourceUtils.loadByForeignKey;
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.net.InternetDomainName;
|
||||
import google.registry.model.host.HostResource;
|
||||
import javax.annotation.Nullable;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/** Represents a WHOIS lookup on a nameserver based on its hostname. */
|
||||
public class NameserverLookupByHostCommand extends DomainOrHostLookupCommand {
|
||||
|
||||
NameserverLookupByHostCommand(InternetDomainName hostName) {
|
||||
this(hostName, null);
|
||||
}
|
||||
|
||||
NameserverLookupByHostCommand(InternetDomainName hostName, @Nullable InternetDomainName tld) {
|
||||
super(hostName, tld, "Nameserver");
|
||||
super(hostName, "Nameserver");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user