mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
RDAP: Display truncation notice for large nameserver result sets
The ICAAN Operational Profile dictates that a notice be added to the RDAP search results response when there are more objects than the server's chosen result set size. This CL handles the fixes for nameserver searches. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135411617
This commit is contained in:
parent
43c67403fa
commit
5c5499d598
5 changed files with 456 additions and 57 deletions
|
@ -573,11 +573,11 @@ public class RdapJsonFormatter {
|
|||
new ImmutableMap.Builder<>();
|
||||
ImmutableList<String> v4Addresses = v4AddressesBuilder.build();
|
||||
if (!v4Addresses.isEmpty()) {
|
||||
ipAddressesBuilder.put("v4", v4Addresses);
|
||||
ipAddressesBuilder.put("v4", Ordering.natural().immutableSortedCopy(v4Addresses));
|
||||
}
|
||||
ImmutableList<String> v6Addresses = v6AddressesBuilder.build();
|
||||
if (!v6Addresses.isEmpty()) {
|
||||
ipAddressesBuilder.put("v6", v6Addresses);
|
||||
ipAddressesBuilder.put("v6", Ordering.natural().immutableSortedCopy(v6Addresses));
|
||||
}
|
||||
ImmutableMap<String, ImmutableList<String>> ipAddresses = ipAddressesBuilder.build();
|
||||
if (!ipAddresses.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue