mirror of
https://github.com/google/nomulus
synced 2026-01-08 07:11:44 +00:00
Actionize the EPP endpoints.
This introduces Actions and Dagger up until FlowRunner. The changes to the servlets are relatively simple, but the required changes to the tests, as well as to auxillary EPP endpoints (such as the http check api and the load test servlet) were vast. I've added some comments in critique to make the review easier that don't really make sense as in-code comments for the future. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124593546
This commit is contained in:
committed by
Justine Tunney
parent
6ba1d5e6df
commit
0ce293325c
@@ -29,8 +29,6 @@ import google.registry.model.eppoutput.EppOutput;
|
||||
import google.registry.monitoring.whitebox.EppMetrics;
|
||||
import google.registry.util.Clock;
|
||||
import google.registry.util.FormattingLogger;
|
||||
import google.registry.util.NonFinalForTesting;
|
||||
import google.registry.util.SystemClock;
|
||||
import google.registry.util.TypeUtils;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
@@ -48,15 +46,13 @@ public class FlowRunner {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
@NonFinalForTesting
|
||||
private static Clock clock = new SystemClock();
|
||||
|
||||
private final Class<? extends Flow> flowClass;
|
||||
private final EppInput eppInput;
|
||||
private final Trid trid;
|
||||
private final SessionMetadata sessionMetadata;
|
||||
private final byte[] inputXmlBytes;
|
||||
private final EppMetrics metrics;
|
||||
private final Clock clock;
|
||||
|
||||
public FlowRunner(
|
||||
Class<? extends Flow> flowClass,
|
||||
@@ -64,13 +60,15 @@ public class FlowRunner {
|
||||
Trid trid,
|
||||
SessionMetadata sessionMetadata,
|
||||
byte[] inputXmlBytes,
|
||||
final EppMetrics metrics) {
|
||||
final EppMetrics metrics,
|
||||
Clock clock) {
|
||||
this.flowClass = flowClass;
|
||||
this.eppInput = eppInput;
|
||||
this.trid = trid;
|
||||
this.sessionMetadata = sessionMetadata;
|
||||
this.inputXmlBytes = inputXmlBytes;
|
||||
this.metrics = metrics;
|
||||
this.clock = clock;
|
||||
}
|
||||
|
||||
public EppOutput run(
|
||||
|
||||
Reference in New Issue
Block a user