mirror of
https://github.com/google/nomulus
synced 2026-08-18 21:26:16 +00:00
Convert RegistrarServlet to RegistrarAction
Convert to an action and remove ResourceServlet, JsonTransportServlet and JsonTransportServlet, all of which exist only to support it. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137519385
This commit is contained in:
@@ -35,9 +35,13 @@ public final class JsonActionRunner {
|
||||
Map<String, ?> handleJsonRequest(Map<String, ?> json);
|
||||
}
|
||||
|
||||
@Inject @JsonPayload Map<String, Object> payload;
|
||||
@Inject JsonResponse response;
|
||||
@Inject JsonActionRunner() {}
|
||||
@JsonPayload Map<String, Object> payload;
|
||||
JsonResponse response;
|
||||
|
||||
@Inject public JsonActionRunner(@JsonPayload Map<String, Object> payload, JsonResponse response) {
|
||||
this.payload = payload;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
/** Delegates request to {@code action}. */
|
||||
public void run(JsonAction action) {
|
||||
|
||||
Reference in New Issue
Block a user