google-nomulus/java/google/registry/whois
mcilwain d536cef20f Make Registrar load methods return Optionals instead of Nullables
This makes the code more understandable from callsites, and also forces
users of this function to deal with the situation where the registrar
with a given client ID might not be present (it was previously silently
NPEing from some of the callsites).

This also adds a test helper method loadRegistrar(clientId) that retains
the old functionality for terseness in tests. It also fixes some instances
of using the load method with the wrong cachedness -- some uses in high-
traffic situations (WHOIS) that should have caching, but also low-traffic
reporting that don't benefit from caching so might as well always be
current.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=162990468
2017-08-01 16:58:59 -04:00
..
BUILD Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
DomainLookupCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainOrHostLookupCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
DomainWhoisResponse.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
NameserverLookupByHostCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NameserverLookupByIpCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NameserverWhoisResponse.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistrarLookupCommand.java Cache Registrars in memory 2017-05-17 12:26:11 -04:00
RegistrarWhoisResponse.java Make WHOIS domain query return conform to ICANN CL&D policy 2017-05-17 11:38:28 -04:00
Whois.java Refactor WhoisReader.readCommand() method to take a now param 2017-03-13 10:45:40 -04:00
WhoisCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
WhoisCommandFactory.java Fix a javadoc error 2017-02-08 17:42:49 -05:00
WhoisException.java Implement retry for transient errors in WHOIS server 2017-04-05 10:18:23 -04:00
WhoisHttpServer.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
WhoisMetrics.java Fix two warnings thrown by Eclipse 2017-04-26 10:36:51 -04:00
WhoisModule.java Add WHOIS metrics classes 2017-03-07 14:01:16 -05:00
WhoisReader.java Refactor WhoisReader.readCommand() method to take a now param 2017-03-13 10:45:40 -04:00
WhoisResponse.java Implement retry for transient errors in WHOIS server 2017-04-05 10:18:23 -04:00
WhoisResponseImpl.java Update WHOIS output format to reflect CL&D and PDT requirements 2017-06-14 10:29:55 -04:00
WhoisServer.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00