org.apache.struts.upload
public class DiskMultipartRequestHandler extends java.lang.Object implements MultipartRequestHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable |
allElements
Deprecated.
A Hashtable representing all elemnents.
|
protected java.util.Hashtable |
fileElements
Deprecated.
A Hashtable representing the form files uploaded.
|
protected static org.apache.commons.logging.Log |
log
Deprecated.
Commons Logging instance.
|
protected ActionMapping |
mapping
Deprecated.
The ActionMapping instance used for this class.
|
protected ActionServlet |
servlet
Deprecated.
The ActionServlet instance used for this class.
|
protected java.lang.String |
tempDir
Deprecated.
The temporary directory.
|
protected java.util.Hashtable |
textElements
Deprecated.
A Hashtable representing the form text input names and values.
|
ATTRIBUTE_MAX_LENGTH_EXCEEDED
Constructor and Description |
---|
DiskMultipartRequestHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createDiskFile(MultipartElement element)
Deprecated.
|
protected void |
createTextElement(javax.servlet.http.HttpServletRequest request,
MultipartElement element)
Deprecated.
|
void |
finish()
Deprecated.
Calls on
rollback() to delete
temporary files. |
java.util.Hashtable |
getAllElements()
Deprecated.
This method returns all elements of a multipart request.
|
java.util.Hashtable |
getFileElements()
Deprecated.
This method is called on to retrieve all the FormFile
input elements of the request.
|
ActionMapping |
getMapping()
Deprecated.
Get the ActionMapping instance for this request
|
protected long |
getMaxSize(java.lang.String stringSize)
Deprecated.
Gets the maximum post data size in bytes from the string
representation in the configuration file.
|
ActionServlet |
getServlet()
Deprecated.
Get the ActionServlet instance
|
java.util.Hashtable |
getTextElements()
Deprecated.
This method is called on to retrieve all the text
input elements of the request.
|
void |
handleRequest(javax.servlet.http.HttpServletRequest request)
Deprecated.
This method populates the internal hashtables with multipart request data.
|
protected void |
retrieveTempDir(ModuleConfig moduleConfig)
Deprecated.
Retrieves the temporary directory from either ActionServlet, a context
property, or a system property, in that order.
|
void |
rollback()
Deprecated.
Delete all the files uploaded.
|
void |
setMapping(ActionMapping mapping)
Deprecated.
Convienience method to set a reference to a working
ActionMapping instance.
|
void |
setServlet(ActionServlet servlet)
Deprecated.
Convienience method to set a reference to a working
ActionServlet instance.
|
protected static org.apache.commons.logging.Log log
protected ActionServlet servlet
protected ActionMapping mapping
protected java.util.Hashtable fileElements
protected java.util.Hashtable textElements
protected java.util.Hashtable allElements
protected java.lang.String tempDir
public void handleRequest(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
handleRequest
in interface MultipartRequestHandler
javax.servlet.ServletException
- thrown if something goes wrongprotected void createTextElement(javax.servlet.http.HttpServletRequest request, MultipartElement element)
protected void createDiskFile(MultipartElement element)
public java.util.Hashtable getAllElements()
MultipartRequestHandler
getAllElements
in interface MultipartRequestHandler
public java.util.Hashtable getTextElements()
MultipartRequestHandler
getTextElements
in interface MultipartRequestHandler
public java.util.Hashtable getFileElements()
MultipartRequestHandler
getFileElements
in interface MultipartRequestHandler
FormFile
public void rollback()
rollback
in interface MultipartRequestHandler
public void finish()
rollback()
to delete
temporary files.finish
in interface MultipartRequestHandler
public void setServlet(ActionServlet servlet)
MultipartRequestHandler
setServlet
in interface MultipartRequestHandler
public void setMapping(ActionMapping mapping)
MultipartRequestHandler
setMapping
in interface MultipartRequestHandler
public ActionServlet getServlet()
MultipartRequestHandler
getServlet
in interface MultipartRequestHandler
public ActionMapping getMapping()
MultipartRequestHandler
getMapping
in interface MultipartRequestHandler
protected long getMaxSize(java.lang.String stringSize) throws javax.servlet.ServletException
javax.servlet.ServletException
protected void retrieveTempDir(ModuleConfig moduleConfig)
Copyright ? 2000-2014 - The Apache Software Foundation