public class JakartaStreamMultiPartRequest extends Object implements MultiPartRequest
| Constructor and Description |
|---|
JakartaStreamMultiPartRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleans up all uploaded file, should be called at the end of request
|
String[] |
getContentType(String fieldName)
Returns the content type(s) of the file(s) associated with the specified field name
(as supplied by the client browser), or null if no files are associated with the
given field name.
|
List<String> |
getErrors()
Returns a list of error messages that may have occurred while processing the request.
|
File[] |
getFile(String fieldName)
Returns a
File object for the filename specified or null if no files
are associated with the given field name. |
String[] |
getFileNames(String fieldName)
Returns a String[] of file names for files associated with the specified input field name
|
Enumeration<String> |
getFileParameterNames()
Returns an enumeration of the parameter names for uploaded files
|
String[] |
getFilesystemName(String fieldName)
Returns the file system name(s) of files associated with the given field name or
null if no files are associated with the given field name.
|
List<String> |
getMesssages()
Allows interceptor to fetch non-critical messages that can be passed to the action.
|
String |
getParameter(String name)
Returns the specified request parameter.
|
Enumeration<String> |
getParameterNames()
Returns an enumeration of String parameter names.
|
String[] |
getParameterValues(String name)
Returns a list of all parameter values associated with a parameter name.
|
void |
parse(javax.servlet.http.HttpServletRequest request,
String saveDir) |
void |
setBufferSize(String bufferSize) |
protected void |
setLocale(javax.servlet.http.HttpServletRequest request) |
void |
setLocaleProvider(LocaleProvider provider) |
void |
setMaxSize(String maxSize) |
public void setMaxSize(String maxSize)
maxSize - Injects the Struts multiple part maximum size.public void setBufferSize(String bufferSize)
bufferSize - Sets the buffer size to be used.public void setLocaleProvider(LocaleProvider provider)
provider - Injects the Struts locale provider.public void cleanUp()
MultiPartRequestcleanUp in interface MultiPartRequestpublic String[] getContentType(String fieldName)
MultiPartRequestgetContentType in interface MultiPartRequestfieldName - input field namepublic List<String> getErrors()
MultiPartRequestMultiPartRequestWrapper's errors field.getErrors in interface MultiPartRequestpublic List<String> getMesssages()
public File[] getFile(String fieldName)
MultiPartRequestFile object for the filename specified or null if no files
are associated with the given field name.getFile in interface MultiPartRequestfieldName - input field namepublic String[] getFileNames(String fieldName)
MultiPartRequestgetFileNames in interface MultiPartRequestfieldName - input field namepublic Enumeration<String> getFileParameterNames()
MultiPartRequestgetFileParameterNames in interface MultiPartRequestpublic String[] getFilesystemName(String fieldName)
MultiPartRequestgetFilesystemName in interface MultiPartRequestfieldName - input field namepublic String getParameter(String name)
MultiPartRequestgetParameter in interface MultiPartRequestname - the name of the parameter to getpublic Enumeration<String> getParameterNames()
MultiPartRequestgetParameterNames in interface MultiPartRequestpublic String[] getParameterValues(String name)
MultiPartRequestgetParameterValues in interface MultiPartRequestname - the name of the parameter.public void parse(javax.servlet.http.HttpServletRequest request,
String saveDir)
throws IOException
parse in interface MultiPartRequestIOExceptionprotected void setLocale(javax.servlet.http.HttpServletRequest request)
request - Inspect the servlet request and set the locale if one wasn't provided by
the Struts2 framework.Copyright © 2000–2016 Apache Software Foundation. All rights reserved.