org.apache.struts.extras
Class SecureJakartaStreamMultiPartRequest

java.lang.Object
  extended by org.apache.struts.extras.SecureJakartaStreamMultiPartRequest
All Implemented Interfaces:
org.apache.struts2.dispatcher.multipart.MultiPartRequest

public class SecureJakartaStreamMultiPartRequest
extends Object
implements org.apache.struts2.dispatcher.multipart.MultiPartRequest


Constructor Summary
SecureJakartaStreamMultiPartRequest()
           
 
Method Summary
 void cleanUp()
           
 String[] getContentType(String fieldName)
           
 List<String> getErrors()
           
 File[] getFile(String fieldName)
           
 String[] getFileNames(String fieldName)
           
 Enumeration<String> getFileParameterNames()
           
 String[] getFilesystemName(String fieldName)
           
 List<String> getMesssages()
          Allows interceptor to fetch non-critical messages that can be passed to the action.
 String getParameter(String name)
           
 Enumeration<String> getParameterNames()
           
 String[] getParameterValues(String name)
           
 void parse(javax.servlet.http.HttpServletRequest request, String saveDir)
           
 void setBufferSize(String bufferSize)
          Sets the buffer size to be used.
protected  void setLocale(javax.servlet.http.HttpServletRequest request)
          Inspect the servlet request and set the locale if one wasn't provided by the Struts2 framework.
 void setLocaleProvider(com.opensymphony.xwork2.LocaleProvider provider)
          Injects the Struts locale provider.
 void setMaxSize(String maxSize)
          Injects the Struts multiple part maximum size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureJakartaStreamMultiPartRequest

public SecureJakartaStreamMultiPartRequest()
Method Detail

setMaxSize

public void setMaxSize(String maxSize)
Injects the Struts multiple part maximum size.

Parameters:
maxSize -

setBufferSize

public void setBufferSize(String bufferSize)
Sets the buffer size to be used.

Parameters:
bufferSize -

setLocaleProvider

public void setLocaleProvider(com.opensymphony.xwork2.LocaleProvider provider)
Injects the Struts locale provider.

Parameters:
provider -

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getContentType

public String[] getContentType(String fieldName)
Specified by:
getContentType in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getErrors

public List<String> getErrors()
Specified by:
getErrors in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getMesssages

public List<String> getMesssages()
Allows interceptor to fetch non-critical messages that can be passed to the action.

Returns:

getFile

public File[] getFile(String fieldName)
Specified by:
getFile in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getFileNames

public String[] getFileNames(String fieldName)
Specified by:
getFileNames in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getFileParameterNames

public Enumeration<String> getFileParameterNames()
Specified by:
getFileParameterNames in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getFilesystemName

public String[] getFilesystemName(String fieldName)
Specified by:
getFilesystemName in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getParameterNames

public Enumeration<String> getParameterNames()
Specified by:
getParameterNames in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest

parse

public void parse(javax.servlet.http.HttpServletRequest request,
                  String saveDir)
           throws IOException
Specified by:
parse in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest
Throws:
IOException

setLocale

protected void setLocale(javax.servlet.http.HttpServletRequest request)
Inspect the servlet request and set the locale if one wasn't provided by the Struts2 framework.

Parameters:
request -


Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.