Class MultipartServletWebRequest
- java.lang.Object
-
- org.apache.wicket.request.Request
-
- org.apache.wicket.request.http.WebRequest
-
- org.apache.wicket.protocol.http.servlet.ServletWebRequest
-
- org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest
-
- All Implemented Interfaces:
IMultipartWebRequest
- Direct Known Subclasses:
MultipartServletWebRequestImpl
public abstract class MultipartServletWebRequest extends ServletWebRequest implements IMultipartWebRequest
Servlet specific WebRequest subclass for multipart content uploads.- Author:
- Matej Knopp
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.request.http.WebRequest
HEADER_AJAX, HEADER_AJAX_BASE_URL, HEADER_ORIGIN, HEADER_REFERER, PARAM_AJAX, PARAM_AJAX_BASE_URL, PARAM_AJAX_REQUEST_ANTI_CACHE
-
-
Constructor Summary
Constructors Constructor Description MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String filterPrefix)
Construct.MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String filterPrefix, Url url)
Construct.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ServletWebRequest
cloneWithUrl(Url url)
Returns request with specified URL and same POST parameters as this request.long
getFileCountMax()
Bytes
getFileMaxSize()
Bytes
getMaxSize()
abstract void
parseFileParts()
Parses the multipart body of the request.void
setFileCountMax(long fileCountMax)
void
setFileMaxSize(Bytes fileMaxSize)
void
setMaxSize(Bytes maxSize)
-
Methods inherited from class org.apache.wicket.protocol.http.servlet.ServletWebRequest
generatePostParameters, getCharset, getClientUrl, getContainerRequest, getContextPath, getCookies, getDateHeader, getFilterPath, getFilterPrefix, getHeader, getHeaders, getLocale, getPostParameters, getPrefixToContextPath, getUrl, newMultipartWebRequest, newMultipartWebRequest, shouldPreserveClientUrl
-
Methods inherited from class org.apache.wicket.request.http.WebRequest
getCookie, getIfModifiedSinceHeader, isAjax
-
Methods inherited from class org.apache.wicket.request.Request
getOriginalUrl, getQueryParameters, getRequestParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.protocol.http.IMultipartWebRequest
getFile, getFiles
-
-
-
-
Constructor Detail
-
MultipartServletWebRequest
public MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String filterPrefix)
Construct.- Parameters:
httpServletRequest
-filterPrefix
-
-
MultipartServletWebRequest
public MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String filterPrefix, Url url)
Construct.- Parameters:
httpServletRequest
-filterPrefix
-url
-
-
-
Method Detail
-
parseFileParts
public abstract void parseFileParts() throws org.apache.commons.fileupload.FileUploadException
Parses the multipart body of the request.- Throws:
org.apache.commons.fileupload.FileUploadException
- Since:
- 6.18.0
-
cloneWithUrl
public ServletWebRequest cloneWithUrl(Url url)
Description copied from class:WebRequest
Returns request with specified URL and same POST parameters as this request.- Overrides:
cloneWithUrl
in classServletWebRequest
- Parameters:
url
- Url instance- Returns:
- request with specified URL.
-
getMaxSize
public Bytes getMaxSize()
-
setMaxSize
public void setMaxSize(Bytes maxSize)
-
getFileMaxSize
public Bytes getFileMaxSize()
-
setFileMaxSize
public void setFileMaxSize(Bytes fileMaxSize)
-
getFileCountMax
public long getFileCountMax()
-
setFileCountMax
public void setFileCountMax(long fileCountMax)
-
-