mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Simplify some of the RDAP Action classes
Overriding getter methods to change values is a bit overkill when these values are static (don't change based on internal state). Just setting them in the base class' constructor is simpler. Also, we can read the PATH of an Action based on the Annotation instead returning it manually for each Action. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=246135754
This commit is contained in:
parent
99aeedc598
commit
90c53152bf
21 changed files with 81 additions and 204 deletions
|
@ -19,6 +19,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
|
|||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableListMultimap;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import google.registry.rdap.RdapMetrics.EndpointType;
|
||||
import google.registry.request.Parameter;
|
||||
import google.registry.request.ParameterMap;
|
||||
import google.registry.request.RequestUrl;
|
||||
|
@ -44,6 +45,10 @@ public abstract class RdapSearchActionBase extends RdapActionBase {
|
|||
|
||||
protected Optional<String> cursorString;
|
||||
|
||||
RdapSearchActionBase(String humanReadableObjectTypeName, EndpointType endpointType) {
|
||||
super(humanReadableObjectTypeName, endpointType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes the cursor token passed in the HTTP request.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue