|
Return to www.inductionframework.org | ||||||||
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(java.lang.String sParamName)
Used to check if the specified HTML form has the specified parameter |
boolean |
getBoolean(java.lang.String sParamName)
Return the value of the specified HTML form parameter as a boolean value |
com.acciente.commons.htmlform.FileHandle |
getFile(java.lang.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(java.lang.String sParamName)
Return the value of the specified HTML form parameter as a float value |
int |
getInteger(java.lang.String sParamName)
Return the value of the specified HTML form parameter as an integer value |
long |
getLong(java.lang.String sParamName)
Return the value of the specified HTML form parameter as a long value |
java.lang.Object |
getObject(java.lang.String sParamName)
Return the value of the specified HTML form parameter as an object value |
java.util.Set |
getParamNames()
Returns a list of the parameter names in the HTML form |
java.lang.String |
getString(java.lang.String sParamName)
Return the value of the specified HTML form parameter as a string value |
Method Detail |
---|
java.lang.Object getObject(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
java.lang.String getString(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
int getInteger(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
float getFloat(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
long getLong(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
boolean getBoolean(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
com.acciente.commons.htmlform.FileHandle getFile(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
java.util.Set getParamNames() throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
boolean containsParam(java.lang.String sParamName) throws java.io.IOException, org.apache.commons.fileupload.FileUploadException, com.acciente.commons.htmlform.ParserException, HTMLFormException
sParamName
- the name of the HTML form parameter
java.io.IOException
org.apache.commons.fileupload.FileUploadException
com.acciente.commons.htmlform.ParserException
HTMLFormException
|
Return to www.inductionframework.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |