Add mapper to import domains from RDE deposits

With some additional cleanup by Ben McIlwain.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=146695665
This commit is contained in:
Wolfgang Meyers 2017-02-06 12:22:38 -08:00 committed by Ben McIlwain
parent d6e6e8a49c
commit a904f2c6ee
37 changed files with 2916 additions and 268 deletions

View file

@ -28,9 +28,11 @@ import javax.servlet.http.HttpServletRequest;
@Module
public final class RdeImportsModule {
static final String PATH = "path";
@Provides
@Parameter("path")
@Parameter(PATH)
static String providePath(HttpServletRequest req) {
return RequestParameters.extractRequiredParameter(req, "path");
return RequestParameters.extractRequiredParameter(req, PATH);
}
}