mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
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:
parent
e07d011bc6
commit
716ba726fc
4 changed files with 253 additions and 47 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue