|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.struts.upload Class DiskMultipartRequestHandler
java.lang.Object | +--org.apache.struts.upload.DiskMultipartRequestHandler
- All Implemented Interfaces:
- MultipartRequestHandler
Deprecated. Use the Commons FileUpload based multipart handler instead. This class will be removed after Struts 1.2.
- public class DiskMultipartRequestHandler
- extends java.lang.Object
- implements MultipartRequestHandler
This is a MultipartRequestHandler that writes file data directly to to temporary files on disk.
Field Summary | |
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. |
Fields inherited from interface org.apache.struts.upload.MultipartRequestHandler |
ATTRIBUTE_MAX_LENGTH_EXCEEDED |
Constructor Summary | |
DiskMultipartRequestHandler()
Deprecated. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
|
Field Detail |
log
protected static org.apache.commons.logging.Log log
- Deprecated.
- Commons Logging instance.
servlet
protected ActionServlet servlet
- Deprecated.
- The ActionServlet instance used for this class.
mapping
protected ActionMapping mapping
- Deprecated.
- The ActionMapping instance used for this class.
fileElements
protected java.util.Hashtable fileElements
- Deprecated.
- A Hashtable representing the form files uploaded.
textElements
protected java.util.Hashtable textElements
- Deprecated.
- A Hashtable representing the form text input names and values.
allElements
protected java.util.Hashtable allElements
- Deprecated.
- A Hashtable representing all elemnents.
tempDir
protected java.lang.String tempDir
- Deprecated.
- The temporary directory.
Constructor Detail |
DiskMultipartRequestHandler
public DiskMultipartRequestHandler()
- Deprecated.
Method Detail |
handleRequest
public void handleRequest(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
- Deprecated.
- This method populates the internal hashtables with multipart request data. If the request argument is an instance of MultipartRequestWrapper, the request wrapper will be populated as well.
- Specified by:
handleRequest
in interfaceMultipartRequestHandler
- Following copied from interface:
org.apache.struts.upload.MultipartRequestHandler
- Throws:
javax.servlet.ServletException
- thrown if something goes wrong
createTextElement
protected void createTextElement(javax.servlet.http.HttpServletRequest request, MultipartElement element)
- Deprecated.
createDiskFile
protected void createDiskFile(MultipartElement element)
- Deprecated.
getAllElements
public java.util.Hashtable getAllElements()
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- This method returns all elements of a multipart request.
- Specified by:
getAllElements
in interfaceMultipartRequestHandler
- Following copied from interface:
org.apache.struts.upload.MultipartRequestHandler
- Returns:
- A Hashtable where the keys are input names and values are either Strings or FormFiles
getTextElements
public java.util.Hashtable getTextElements()
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- This method is called on to retrieve all the text input elements of the request.
- Specified by:
getTextElements
in interfaceMultipartRequestHandler
- Following copied from interface:
org.apache.struts.upload.MultipartRequestHandler
- Returns:
- A Hashtable where the keys and values are the names and values of the request input parameters
getFileElements
public java.util.Hashtable getFileElements()
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- This method is called on to retrieve all the FormFile input elements of the request.
- Specified by:
getFileElements
in interfaceMultipartRequestHandler
- Following copied from interface:
org.apache.struts.upload.MultipartRequestHandler
- Returns:
- A Hashtable where the keys are the input names of the files and the values are FormFile objects
- See Also:
FormFile
rollback
public void rollback()
- Deprecated.
- Delete all the files uploaded.
- Specified by:
rollback
in interfaceMultipartRequestHandler
finish
public void finish()
- Deprecated.
- Calls on
rollback()
to delete temporary files. - Specified by:
finish
in interfaceMultipartRequestHandler
setServlet
public void setServlet(ActionServlet servlet)
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- Convienience method to set a reference to a working ActionServlet instance.
- Specified by:
setServlet
in interfaceMultipartRequestHandler
setMapping
public void setMapping(ActionMapping mapping)
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- Convienience method to set a reference to a working ActionMapping instance.
- Specified by:
setMapping
in interfaceMultipartRequestHandler
getServlet
public ActionServlet getServlet()
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- Get the ActionServlet instance
- Specified by:
getServlet
in interfaceMultipartRequestHandler
getMapping
public ActionMapping getMapping()
- Deprecated.
- Description copied from interface:
MultipartRequestHandler
- Get the ActionMapping instance for this request
- Specified by:
getMapping
in interfaceMultipartRequestHandler
getMaxSize
protected long getMaxSize(java.lang.String stringSize) throws javax.servlet.ServletException
- Deprecated.
- Gets the maximum post data size in bytes from the string representation in the configuration file.
retrieveTempDir
protected void retrieveTempDir(ModuleConfig moduleConfig)
- Deprecated.
- Retrieves the temporary directory from either ActionServlet, a context property, or a system property, in that order.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000-2005 - The Apache Software Foundation