mirror of
https://github.com/google/nomulus.git
synced 2025-08-12 20:49:37 +02:00
Fix WHOIS formatting to match format from RA
Our whois format was flagged as wrong in the .meet PDT. Although we had followed the AWIP samples from ICANN, the definitive list of field names is from Specification 4 of our contract, available at https://newgtlds.icann.org/sites/default/files/agreements/agreement-approved-09jan14-en.htm and indeed our fields are incorrect. (The remaining formatting issues are ambiguous but the PDT testers' interpretation is probably correct.) Since the footer format is now somewhat more complicated, I also denormalized the disclaimer field into all of the testdata files. (I spent some time debugging an extra newline between the content and the disclaimer, and it would have been far clearer to solve if the files had been this way.) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=120338930
This commit is contained in:
parent
c99711c7e3
commit
4e6c8ec6fe
21 changed files with 347 additions and 113 deletions
|
@ -62,10 +62,10 @@ public final class WhoisException extends Exception implements WhoisResponse {
|
|||
|
||||
@Override
|
||||
public String getPlainTextOutput(boolean preferUnicode) {
|
||||
String footer = new WhoisResponseImpl.BasicEmitter()
|
||||
.emitNewline()
|
||||
.emitFooter(getTimestamp())
|
||||
return new WhoisResponseImpl.BasicEmitter()
|
||||
.emitRawLine(getMessage())
|
||||
.emitLastUpdated(getTimestamp())
|
||||
.emitFooter()
|
||||
.toString();
|
||||
return getMessage() + footer;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue