public abstract class MultipartServletWebRequest extends ServletWebRequest implements IMultipartWebRequest
HEADER_AJAX, HEADER_AJAX_BASE_URL, HEADER_ORIGIN, HEADER_REFERER, PARAM_AJAX, PARAM_AJAX_BASE_URL, PARAM_AJAX_REQUEST_ANTI_CACHE
Constructor and Description |
---|
MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
String filterPrefix)
Construct.
|
MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
String filterPrefix,
Url url)
Construct.
|
Modifier and Type | Method and Description |
---|---|
ServletWebRequest |
cloneWithUrl(Url url)
Returns request with specified URL and same POST parameters as this request.
|
Bytes |
getFileMaxSize() |
Bytes |
getMaxSize() |
abstract void |
parseFileParts()
Parses the multipart body of the request.
|
void |
setFileMaxSize(Bytes fileMaxSize) |
void |
setMaxSize(Bytes maxSize) |
generatePostParameters, getCharset, getClientUrl, getContainerRequest, getContextPath, getCookies, getDateHeader, getFilterPath, getFilterPrefix, getHeader, getHeaders, getLocale, getPostParameters, getPrefixToContextPath, getUrl, newMultipartWebRequest, newMultipartWebRequest, shouldPreserveClientUrl
getCookie, getIfModifiedSinceHeader, isAjax
getOriginalUrl, getQueryParameters, getRequestParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFile, getFiles
public MultipartServletWebRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String filterPrefix)
httpServletRequest
- filterPrefix
- public abstract void parseFileParts() throws org.apache.commons.fileupload.FileUploadException
org.apache.commons.fileupload.FileUploadException
public ServletWebRequest cloneWithUrl(Url url)
WebRequest
cloneWithUrl
in class ServletWebRequest
url
- Url instancepublic Bytes getMaxSize()
public void setMaxSize(Bytes maxSize)
public Bytes getFileMaxSize()
public void setFileMaxSize(Bytes fileMaxSize)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.