Class WhoisCommandFactory

java.lang.Object
google.registry.whois.WhoisCommandFactory

public class WhoisCommandFactory extends Object
A class used to configure WHOIS commands.

To add custom commands, extend this class, then configure it in RegistryConfig.ConfigModule.provideWhoisCommandFactoryClass(google.registry.config.RegistryConfigSettings).

  • Constructor Details

    • WhoisCommandFactory

      public WhoisCommandFactory()
      Public default constructor, needed so we can construct this from the class name.
  • Method Details

    • domainLookup

      public WhoisCommand domainLookup(com.google.common.net.InternetDomainName domainName, boolean fullOutput, String whoisRedactedEmailText, String domainBlockedByBsaTemplate)
      Returns a new WhoisCommand to perform a domain lookup on the specified domain name.
    • nameserverLookupByIp

      public WhoisCommand nameserverLookupByIp(InetAddress inetAddress)
      Returns a new WhoisCommand to perform a nameserver lookup on the specified IP address.
    • nameserverLookupByHost

      public WhoisCommand nameserverLookupByHost(com.google.common.net.InternetDomainName hostName)
      Returns a new WhoisCommand to perform a nameserver lookup on the specified host name.
    • registrarLookup

      public WhoisCommand registrarLookup(String registrar)
      Returns a new WhoisCommand to perform a registrar lookup on the specified registrar name.