mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02: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:
parent
264b4be966
commit
635edd0fb9
5 changed files with 11 additions and 6 deletions
|
@ -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}.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue