|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Form
This interface provides access to the HTML form submitted as part of the request (if any). Both GET and POST parameters are accesible. If the same parameter is defined via GET and POST the value sent via POST prevails.
Method Summary | |
---|---|
boolean |
containsParam(String sParamName)
Used to check if the specified HTML form has the specified parameter. |
boolean |
getBoolean(String sParamName)
Return the value of the specified HTML form parameter as a boolean value |
com.acciente.commons.htmlform.FileHandle |
getFile(String sParamName)
Return the value of the specified HTML form parameter as a file handle, this method should only be used to access a form parameter that represents an uploded file |
float |
getFloat(String sParamName)
Return the value of the specified HTML form parameter as a float value |
int |
getInteger(String sParamName)
Return the value of the specified HTML form parameter as an integer value |
List |
getList(String sParamName)
Return the value of the specified list HTML form parameter |
long |
getLong(String sParamName)
Return the value of the specified HTML form parameter as a long value |
Map |
getMap(String sParamName)
Return the value of the specified map HTML form parameter |
Object |
getObject(String sParamName)
Return the value of the specified HTML form parameter as an object value |
Set |
getParamNames()
Returns a list of the parameter names in the HTML form |
String |
getString(String sParamName)
Return the value of the specified HTML form parameter as a string value |
Method Detail |
---|
Object getObject(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
Map getMap(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
List getList(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
String getString(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
int getInteger(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
float getFloat(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
long getLong(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
boolean getBoolean(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
com.acciente.commons.htmlform.FileHandle getFile(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
Set getParamNames() throws FormException
FormException
boolean containsParam(String sParamName) throws FormException
sParamName
- the name of the HTML form parameter
IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
FormException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |