mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02: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:
parent
6ba1d5e6df
commit
0ce293325c
63 changed files with 1911 additions and 1630 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue