|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectau.com.whitesquare.waf.command.ParameterRetriever
Last Modified $Date: 2006/08/09 22:17:24 $
| Constructor Summary | |
ParameterRetriever()
|
|
| Method Summary | |
protected void |
addPostParseParameter(String code,
int paramType,
boolean mandatory,
String description)
|
protected void |
addRequestParameter(String code,
int paramType)
An overloaded version of the addRequestParameter method that defines the parameter as optional. |
protected void |
addRequestParameter(String code,
int paramType,
boolean mandatory,
String description)
Defines a parameter to be retreived from the request and mapped to a data type. |
Boolean |
getBoolean(String code)
|
Float |
getFloat(String code)
|
Integer |
getInteger(String code)
|
Long |
getLong(String code)
|
Object |
getObject(String code)
|
Map |
getPostParseParams()
|
String |
getRequestParameterCode(int i)
|
int |
getRequestParameterCount()
|
protected List |
getRequestParameters()
|
Object |
getRequestParameterValue(int i)
|
HttpSession |
getSession()
|
String |
getString(String code)
|
boolean |
isAddedToCommand()
|
protected void |
setupPostParseFields()
This function can be overridden in subclasses to allow parameter retrievers to setup post parse fields too. |
protected void |
setValidatedCommand(ValidatedCommand command)
|
protected ParameterErrors |
validate()
This method supports post parameter check validation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParameterRetriever()
| Method Detail |
protected void addRequestParameter(String code,
int paramType)
code - The data input field name/code to be parsedparamType - A RequestParameter constant (INTEGER, STRING, etc..) to determine the fields datatype.
protected void addRequestParameter(String code,
int paramType,
boolean mandatory,
String description)
code - The data input field name/code to be parsedparamType - A RequestParameter constant (INTEGER, STRING, etc..) to determine the fields datatype.mandatory - To flag that the parameter is requireddescription - The human readable name of the field.protected List getRequestParameters()
public int getRequestParameterCount()
public String getRequestParameterCode(int i)
public Object getRequestParameterValue(int i)
protected void setValidatedCommand(ValidatedCommand command)
public boolean isAddedToCommand()
public String getString(String code)
public Long getLong(String code)
public Float getFloat(String code)
public Object getObject(String code)
public Boolean getBoolean(String code)
public Integer getInteger(String code)
public HttpSession getSession()
protected ParameterErrors validate()
ParameterErrors containing
the errors that have occured and then parameterErrorExecute
will be called.ParameterErrors collection by calling
super.validate().
protected void setupPostParseFields()
protected final void addPostParseParameter(String code,
int paramType,
boolean mandatory,
String description)
public Map getPostParseParams()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||