Refactor metrics servlet to be a Daggerized action

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=120235694
This commit is contained in:
mcilwain
2016-05-13 17:40:21 -04:00
committed by Justine Tunney
parent 706f3b44ed
commit 0f4a1035b2
8 changed files with 85 additions and 103 deletions
@@ -29,7 +29,10 @@ public final class HttpServletUtils {
/**
* Returns the value of the given request's first {@code name} parameter, or throws
* {@code IllegalArgumentException} if the parameter is not present.
*
* @deprecated in favor of <code>RequestParameters.extractRequiredParameter</code>
*/
@Deprecated
public static String getRequiredParameterValue(HttpServletRequest req, String name) {
return checkArgumentNotNull(req.getParameter(name), "Missing required parameter: %s", name);
}