mirror of
https://github.com/google/nomulus.git
synced 2025-06-15 00:44:49 +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
|
@ -36,11 +36,11 @@ public final class Whois {
|
|||
}
|
||||
|
||||
/** Performs a WHOIS lookup on a plaintext query string. */
|
||||
public String lookup(String query, boolean preferUnicode) {
|
||||
public String lookup(String query, boolean preferUnicode, boolean fullOutput) {
|
||||
DateTime now = clock.nowUtc();
|
||||
try {
|
||||
return whoisReader
|
||||
.readCommand(new StringReader(query), now)
|
||||
.readCommand(new StringReader(query), fullOutput, now)
|
||||
.executeQuery(now)
|
||||
.getResponse(preferUnicode, disclaimer)
|
||||
.plainTextOutput();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue