mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Add ability to show full WHOIS output in nomulus command
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=197731992
This commit is contained in:
parent
ac500652ac
commit
86dd6bd59e
15 changed files with 181 additions and 62 deletions
|
@ -24,8 +24,11 @@ import org.joda.time.DateTime;
|
|||
/** Represents a WHOIS lookup on a domain name (i.e. SLD). */
|
||||
public class DomainLookupCommand extends DomainOrHostLookupCommand {
|
||||
|
||||
public DomainLookupCommand(InternetDomainName domainName) {
|
||||
private final boolean fullOutput;
|
||||
|
||||
public DomainLookupCommand(InternetDomainName domainName, boolean fullOutput) {
|
||||
super(domainName, "Domain");
|
||||
this.fullOutput = fullOutput;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -33,6 +36,6 @@ public class DomainLookupCommand extends DomainOrHostLookupCommand {
|
|||
final DomainResource domainResource =
|
||||
loadByForeignKeyCached(DomainResource.class, domainName.toString(), now);
|
||||
return Optional.ofNullable(
|
||||
domainResource == null ? null : new DomainWhoisResponse(domainResource, now));
|
||||
domainResource == null ? null : new DomainWhoisResponse(domainResource, fullOutput, now));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue