com.atlassian.confluence.setup.webwork
Class JakartaMultiPartRequest

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
      extended by com.atlassian.confluence.setup.webwork.JakartaMultiPartRequest

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:

Author:
Bruce Ritchie
See Also:
GeneralUtil.getUploadFileTooLargeMessage(String)

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
log
 
Constructor Summary
JakartaMultiPartRequest(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).
 
Method Summary
 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)
           
 
Methods inherited from class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
isMultiPart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JakartaMultiPartRequest

public JakartaMultiPartRequest(HttpServletRequest servletRequest,
                               String saveDir,
                               int maxSize)
                        throws IOException
Creates a new request wrapper to handle multi-part data using methods adapted from Jason Pell's multipart classes (see class description).

Parameters:
maxSize - maximum size post allowed
saveDir - the directory to save off the file
servletRequest - the request containing the multipart
Throws:
IOException - is thrown if encoding fails.
Method Detail

getFileParameterNames

public Enumeration getFileParameterNames()
Specified by:
getFileParameterNames in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getContentType

public String[] getContentType(String fieldName)
Specified by:
getContentType in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getFile

public File[] getFile(String fieldName)
Specified by:
getFile in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getFileNames

public String[] getFileNames(String fieldName)
Specified by:
getFileNames in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getFilesystemName

public String[] getFilesystemName(String fieldName)
Specified by:
getFilesystemName in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getParameter

public String getParameter(String name)
Specified by:
getParameter in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getParameterNames

public Enumeration getParameterNames()
Specified by:
getParameterNames in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest

getErrors

public List getErrors()


Confluence is developed by Atlassian.