Add RDAP search support for only contacts or only registrars

By default, RDAP entity searches return both contacts and registrars. This CL
adds a new query parameter to request only one or the other. Among other
benefits, this will allow a future CL to permit wildcard searches that return
all registrars.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181605990
This commit is contained in:
mountford 2018-01-11 07:30:03 -08:00 committed by Ben McIlwain
parent e07d011bc6
commit 716ba726fc
4 changed files with 253 additions and 47 deletions

View file

@ -67,6 +67,12 @@ public final class RdapModule {
return RequestParameters.extractOptionalParameter(req, "registrar");
}
@Provides
@Parameter("subtype")
static Optional<String> provideSubtype(HttpServletRequest req) {
return RequestParameters.extractOptionalParameter(req, "subtype");
}
@Provides
@Parameter("includeDeleted")
static Optional<Boolean> provideIncludeDeleted(HttpServletRequest req) {