mirror of
https://github.com/google/nomulus
synced 2026-01-09 07:33:42 +00:00
Initial, easy changes to support later addition of RDAP metrics
I split this out to avoid having a giant CL that changes everything. The actual metrics will follow later. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=174356874
This commit is contained in:
@@ -24,6 +24,7 @@ import com.google.common.collect.ImmutableMap;
|
||||
import google.registry.flows.EppException;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.rdap.RdapJsonFormatter.OutputDataType;
|
||||
import google.registry.rdap.RdapMetrics.EndpointType;
|
||||
import google.registry.request.Action;
|
||||
import google.registry.request.HttpException.BadRequestException;
|
||||
import google.registry.request.HttpException.NotFoundException;
|
||||
@@ -56,6 +57,11 @@ public class RdapDomainAction extends RdapActionBase {
|
||||
return PATH;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EndpointType getEndpointType() {
|
||||
return EndpointType.DOMAIN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImmutableMap<String, Object> getJsonObjectForResource(
|
||||
String pathSearchString, boolean isHeadRequest) {
|
||||
|
||||
Reference in New Issue
Block a user