public class JakartaMultiPartRequest
extends com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
Multipart form data request adapter for Jakarta's file upload package.
This class has been imported from Webwork 2.1.5 and been modified to:
MultiPartRequestWrapper
. The format of the message is
unfortunately relied upon by our error reporting mechanisms and needs to be preserved between the implementations.
GeneralUtil.getUploadFileTooLargeMessage(String)
Constructor and Description |
---|
JakartaMultiPartRequest(javax.servlet.http.HttpServletRequest servletRequest,
String saveDir,
int maxSize)
Creates a new request wrapper to handle multi-part data using methods adapted from Jason Pell's
multipart classes (see class description).
|
Modifier and Type | Method and Description |
---|---|
String[] |
getContentType(String fieldName) |
List |
getErrors() |
File[] |
getFile(String fieldName) |
String[] |
getFileNames(String fieldName) |
Enumeration |
getFileParameterNames() |
String[] |
getFilesystemName(String fieldName) |
String |
getParameter(String name) |
Enumeration |
getParameterNames() |
String[] |
getParameterValues(String name) |
public JakartaMultiPartRequest(javax.servlet.http.HttpServletRequest servletRequest, String saveDir, int maxSize) throws IOException
maxSize
- maximum size post allowedsaveDir
- the directory to save off the fileservletRequest
- the request containing the multipartIOException
- is thrown if encoding fails.public Enumeration getFileParameterNames()
getFileParameterNames
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public String[] getContentType(String fieldName)
getContentType
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public File[] getFile(String fieldName)
getFile
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public String[] getFileNames(String fieldName)
getFileNames
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public String[] getFilesystemName(String fieldName)
getFilesystemName
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public String getParameter(String name)
getParameter
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public Enumeration getParameterNames()
getParameterNames
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public String[] getParameterValues(String name)
getParameterValues
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
public List getErrors()
Copyright © 2003–2019 Atlassian. All rights reserved.