mirror of
https://github.com/google/nomulus
synced 2026-02-09 06:20:29 +00:00
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:
@@ -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}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user