mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
RDAP: Add registrar entities to nameserver query results
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=211462672
This commit is contained in:
@@ -696,6 +696,16 @@ public class RdapJsonFormatter {
|
||||
jsonBuilder.put("ipAddresses", ipAddressesBuilder.build());
|
||||
}
|
||||
}
|
||||
ImmutableList<ImmutableMap<String, Object>> entities =
|
||||
addRegistrarEntity(
|
||||
ImmutableList.of(),
|
||||
hostResource.getPersistedCurrentSponsorClientId(),
|
||||
linkBase,
|
||||
whoisServer,
|
||||
now);
|
||||
if (!entities.isEmpty()) {
|
||||
jsonBuilder.put("entities", entities);
|
||||
}
|
||||
if (whoisServer != null) {
|
||||
jsonBuilder.put("port43", whoisServer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user