mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Add framework for customizable WHOIS commands
With some additional changes by Ben McIlwain. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145447136
This commit is contained in:
parent
d3fe6be385
commit
bb3a0c78c5
15 changed files with 155 additions and 47 deletions
|
@ -58,9 +58,8 @@ public class WhoisServer implements Runnable {
|
|||
@Inject Clock clock;
|
||||
@Inject Reader input;
|
||||
@Inject Response response;
|
||||
@Inject
|
||||
@Config("whoisDisclaimer")
|
||||
String disclaimer;
|
||||
@Inject @Config("whoisCommandFactory") WhoisCommandFactory commandFactory;
|
||||
@Inject @Config("whoisDisclaimer") String disclaimer;
|
||||
@Inject WhoisServer() {}
|
||||
|
||||
@Override
|
||||
|
@ -69,7 +68,7 @@ public class WhoisServer implements Runnable {
|
|||
DateTime now = clock.nowUtc();
|
||||
try {
|
||||
responseText =
|
||||
new WhoisReader(input, now)
|
||||
new WhoisReader(input, commandFactory, now)
|
||||
.readCommand()
|
||||
.executeQuery(now)
|
||||
.getPlainTextOutput(PREFER_UNICODE, disclaimer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue