public class StringParameter extends Parameter<java.lang.String>
valueDescriptionsByName| Constructor and Description |
|---|
StringParameter(java.lang.String name,
java.lang.String description,
java.lang.String defaultValue)
Initialises a new StringParameter
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue(javax.servlet.http.HttpServletRequest request)
Returns the value of this parameter, as specified in the given request.
|
getDefaultValue, getDescription, getName, getValueForDescriptionpublic StringParameter(java.lang.String name,
java.lang.String description,
java.lang.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 java.lang.String getValue(javax.servlet.http.HttpServletRequest request)
throws java.lang.IllegalArgumentException
ParameterCopyright © 2012 David Milne. All Rights Reserved.