mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Import the Servlets instead of using full path
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=226179113
This commit is contained in:
parent
da5a8796b8
commit
4a4989e2a5
1 changed files with 21 additions and 23 deletions
|
@ -21,6 +21,8 @@ import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.common.net.HostAndPort;
|
import com.google.common.net.HostAndPort;
|
||||||
import com.googlecode.objectify.ObjectifyFilter;
|
import com.googlecode.objectify.ObjectifyFilter;
|
||||||
import google.registry.model.ofy.OfyFilter;
|
import google.registry.model.ofy.OfyFilter;
|
||||||
|
import google.registry.module.backend.BackendServlet;
|
||||||
|
import google.registry.module.frontend.FrontendServlet;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
@ -53,41 +55,37 @@ public final class RegistryTestServer {
|
||||||
|
|
||||||
private static final ImmutableList<Route> ROUTES = ImmutableList.of(
|
private static final ImmutableList<Route> ROUTES = ImmutableList.of(
|
||||||
// Frontend Services
|
// Frontend Services
|
||||||
route("/whois/*", google.registry.module.frontend.FrontendServlet.class),
|
route("/whois/*", FrontendServlet.class),
|
||||||
route("/rdap/*", google.registry.module.frontend.FrontendServlet.class),
|
route("/rdap/*", FrontendServlet.class),
|
||||||
route("/registrar-xhr", google.registry.module.frontend.FrontendServlet.class),
|
route("/registrar-xhr", FrontendServlet.class),
|
||||||
route("/check", google.registry.module.frontend.FrontendServlet.class),
|
route("/check", FrontendServlet.class),
|
||||||
|
|
||||||
// Proxy Services
|
// Proxy Services
|
||||||
route("/_dr/epp", google.registry.module.frontend.FrontendServlet.class),
|
route("/_dr/epp", FrontendServlet.class),
|
||||||
route("/_dr/whois", google.registry.module.frontend.FrontendServlet.class),
|
route("/_dr/whois", FrontendServlet.class),
|
||||||
|
|
||||||
// Registry Data Escrow (RDE)
|
// Registry Data Escrow (RDE)
|
||||||
route("/_dr/cron/rdeCreate", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/cron/rdeCreate", BackendServlet.class),
|
||||||
route("/_dr/task/rdeStaging", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/rdeStaging", BackendServlet.class),
|
||||||
route("/_dr/task/rdeUpload", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/rdeUpload", BackendServlet.class),
|
||||||
route("/_dr/task/rdeReport", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/rdeReport", BackendServlet.class),
|
||||||
route("/_dr/task/brdaCopy", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/brdaCopy", BackendServlet.class),
|
||||||
|
|
||||||
// Trademark Clearinghouse (TMCH)
|
// Trademark Clearinghouse (TMCH)
|
||||||
route("/_dr/cron/tmchDnl", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/cron/tmchDnl", BackendServlet.class),
|
||||||
route("/_dr/task/tmchSmdrl", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/tmchSmdrl", BackendServlet.class),
|
||||||
route("/_dr/task/tmchCrl", google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/tmchCrl", BackendServlet.class),
|
||||||
|
|
||||||
// Notification of Registered Domain Names (NORDN)
|
// Notification of Registered Domain Names (NORDN)
|
||||||
route("/_dr/task/nordnUpload",
|
route("/_dr/task/nordnUpload", BackendServlet.class),
|
||||||
google.registry.module.backend.BackendServlet.class),
|
route("/_dr/task/nordnVerify", BackendServlet.class),
|
||||||
route("/_dr/task/nordnVerify",
|
|
||||||
google.registry.module.backend.BackendServlet.class),
|
|
||||||
|
|
||||||
// Process DNS pull queue
|
// Process DNS pull queue
|
||||||
route("/_dr/cron/readDnsQueue",
|
route("/_dr/cron/readDnsQueue", BackendServlet.class),
|
||||||
google.registry.module.backend.BackendServlet.class),
|
|
||||||
|
|
||||||
// Registrar Console
|
// Registrar Console
|
||||||
route("/registrar", google.registry.module.frontend.FrontendServlet.class),
|
route("/registrar", FrontendServlet.class),
|
||||||
route("/registrar-settings",
|
route("/registrar-settings", FrontendServlet.class));
|
||||||
google.registry.module.frontend.FrontendServlet.class));
|
|
||||||
|
|
||||||
private static final ImmutableList<Class<? extends Filter>> FILTERS = ImmutableList.of(
|
private static final ImmutableList<Class<? extends Filter>> FILTERS = ImmutableList.of(
|
||||||
ObjectifyFilter.class,
|
ObjectifyFilter.class,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue