Centralize PARAM_YEAR_MONTH into RequestParameters

Overall this ends up being nicer.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181782569
This commit is contained in:
mcilwain 2018-01-12 13:08:02 -08:00 committed by Ben McIlwain
parent 264b4be966
commit 635edd0fb9
5 changed files with 11 additions and 6 deletions

View file

@ -29,9 +29,14 @@ import org.joda.time.DateTime;
/** Utilities for extracting parameters from HTTP requests. */
public final class RequestParameters {
/** The standardized request parameter name used by any servlet that takes a tld parameter. */
/** The standardized request parameter name used by any action that takes a tld parameter. */
public static final String PARAM_TLD = "tld";
/**
* The standardized request parameter name used by any action that takes a year/month parameter.
*/
public static final String PARAM_YEAR_MONTH = "yearMonth";
/**
* Returns first GET or POST parameter associated with {@code name}.
*