Package google.registry.whois
Interface WhoisResponse
- All Known Implementing Classes:
WhoisException
public interface WhoisResponse
Representation of a WHOIS query response.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
A wrapper class for the plaintext response of a WHOIS command and its number of results. -
Method Summary
Modifier and TypeMethodDescriptiongetResponse
(boolean preferUnicode, String disclaimer) Returns the WHOIS response.org.joda.time.DateTime
Returns the time at which this response was created.
-
Method Details
-
getResponse
Returns the WHOIS response.- Parameters:
preferUnicode
- iffalse
will cause the output to be converted to ASCII whenever possible; for example, converting IDN hostname labels to punycode. However certain things (like a domain registrant name with accent marks) will be returned "as is". If the WHOIS client has told us they're able to receive UTF-8 (such as with HTTP) then this field should be set totrue
.disclaimer
- text to show at bottom of output
-
getTimestamp
org.joda.time.DateTime getTimestamp()Returns the time at which this response was created.
-