|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Request
org.apache.wicket.protocol.http.WebRequest
org.apache.wicket.protocol.http.servlet.ServletWebRequest
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest
public class MultipartServletWebRequest
Servlet specific WebRequest subclass for multipart content uploads.
| Constructor Summary | |
|---|---|
MultipartServletWebRequest(javax.servlet.http.HttpServletRequest request,
Bytes maxSize)
Constructor |
|
| Method Summary | |
|---|---|
FileItem |
getFile(java.lang.String fieldName)
Gets the file that was uploaded using the given field name. |
java.util.Map<java.lang.String,FileItem> |
getFiles()
|
java.lang.String |
getParameter(java.lang.String key)
Gets the request parameter with the given key. |
java.util.Map |
getParameterMap()
Gets the request parameters. |
java.lang.String[] |
getParameters(java.lang.String key)
Gets the request parameters with the given key. |
protected void |
onUploadCompleted()
Upload completed callback |
protected void |
onUploadStarted(int totalBytes)
Upload start callback |
protected void |
onUploadUpdate(int bytesUploaded,
int total)
Upload status update callback |
protected boolean |
wantUploadProgressUpdates()
Subclasses that want to receive upload notifications should return true |
| Methods inherited from class org.apache.wicket.protocol.http.servlet.ServletWebRequest |
|---|
getDepthRelativeToWicketHandler, getHttpServletRequest, getLocale, getPath, getQueryString, getRelativePathPrefixToContextRoot, getRelativePathPrefixToWicketHandler, getServletPath, getURL, isAjax, mergeVersion, newMultipartWebRequest, setAjax, setForceNewVersion, setWicketRedirectUrl, toString |
| Methods inherited from class org.apache.wicket.protocol.http.WebRequest |
|---|
getCookie, getCookies |
| Methods inherited from class org.apache.wicket.Request |
|---|
decodeURL, getPage, getRelativeURL, getRequestParameters, setPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultipartServletWebRequest(javax.servlet.http.HttpServletRequest request,
Bytes maxSize)
throws FileUploadException
maxSize - the maximum size allowed for this requestrequest - the servlet request
FileUploadException - Thrown if something goes wrong with upload| Method Detail |
|---|
public java.util.Map<java.lang.String,FileItem> getFiles()
getFiles in interface IMultipartWebRequestpublic FileItem getFile(java.lang.String fieldName)
getFile in interface IMultipartWebRequestfieldName - the field name that was used for the upload
public java.lang.String getParameter(java.lang.String key)
ServletWebRequest
getParameter in class ServletWebRequestkey - Parameter name
WebRequest.getParameter(java.lang.String)public java.util.Map getParameterMap()
ServletWebRequest
getParameterMap in class ServletWebRequestWebRequest.getParameterMap()public java.lang.String[] getParameters(java.lang.String key)
ServletWebRequest
getParameters in class ServletWebRequestkey - Parameter name
WebRequest.getParameters(java.lang.String)protected boolean wantUploadProgressUpdates()
protected void onUploadStarted(int totalBytes)
totalBytes -
protected void onUploadUpdate(int bytesUploaded,
int total)
bytesUploaded - total - protected void onUploadCompleted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||