Change redacted output for domain whois query

The redacted text for the email field displays a longer prompt to
contact the registrar, per the request filed at b/123573370.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=232716133
This commit is contained in:
jianglai 2019-02-06 11:50:37 -08:00
parent 6a6c7e3b09
commit 7fe16689d8
18 changed files with 81 additions and 38 deletions

View file

@ -27,8 +27,9 @@ import java.net.InetAddress;
public class WhoisCommandFactory {
/** Returns a new {@link WhoisCommand} to perform a domain lookup on the specified domain name. */
public WhoisCommand domainLookup(InternetDomainName domainName, boolean fullOutput) {
return new DomainLookupCommand(domainName, fullOutput);
public WhoisCommand domainLookup(
InternetDomainName domainName, boolean fullOutput, String whoisRedactedEmailText) {
return new DomainLookupCommand(domainName, fullOutput, whoisRedactedEmailText);
}
/**