Save the RDAP request time globally instead of passing it around

Also removed the rdapWhoisServer value, as it's just null and will likely stay that way (it isn't mentioned in the RDAP response profile)

If it'll ever become required, we can add it back.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=247643981
This commit is contained in:
guyben 2019-05-10 11:17:35 -07:00 committed by jianglai
parent b10f880b7f
commit a0040c5eda
15 changed files with 197 additions and 320 deletions

View file

@ -205,9 +205,18 @@ final class RdapObjectClasses {
@JsonableElement abstract ImmutableList<RdapStatus> status();
@JsonableElement abstract ImmutableList<Remark> remarks();
@JsonableElement abstract ImmutableList<Link> links();
@JsonableElement abstract Optional<Port43WhoisServer> port43();
@JsonableElement abstract ImmutableList<Event> events();
/**
* WHOIS server displayed in RDAP query responses.
*
* <p>As per Gustavo Lozano of ICANN, this should be omitted, but the ICANN operational profile
* doesn't actually say that, so it's good to have the ability to reinstate this field if
* necessary.
*/
@JsonableElement
abstract Optional<Port43WhoisServer> port43();
RdapObjectBase(BoilerplateType boilerplateType, ObjectClassName objectClassName) {
super(boilerplateType);
this.objectClassName = objectClassName;