valueDescriptionsByName| Constructor and Description |
|---|
StringParameter(String name,
String description,
String defaultValue)
Initialises a new (case sensitive) StringParameter
|
StringParameter(String name,
String description,
String defaultValue,
boolean caseSensitive)
Initialises a new StringParameter
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
Returns the value to be used if no value is manually specified in the service request.
|
String |
getValue(javax.servlet.http.HttpServletRequest request)
Returns the value of this parameter, as specified in the given request.
|
getDescription, getName, getValueForDescriptionpublic StringParameter(String name, String description, String defaultValue)
name - the name of the parameterdescription - a short description of what this parameter doesdefaultValue - the value to use when requests do not specify a value for this parameter (may be null)public StringParameter(String name, String description, String defaultValue, boolean caseSensitive)
name - the name of the parameterdescription - a short description of what this parameter doesdefaultValue - the value to use when requests do not specify a value for this parameter (may be null)caseSensitive - true if you care about capitalisation of valuespublic String getValue(javax.servlet.http.HttpServletRequest request) throws IllegalArgumentException
ParametergetValue in class Parameter<String>request - the request made to the serviceIllegalArgumentException - if the value specified in this request cannot be parsedpublic String getDefaultValue()
ParametergetDefaultValue in class Parameter<String>Copyright © 2012 David Milne. All Rights Reserved.