|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.struts.upload.DiskMultipartRequestHandler
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 |
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
| Constructor Detail |
public DiskMultipartRequestHandler()
| Method Detail |
public void handleRequest(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
handleRequest in interface MultipartRequestHandlerorg.apache.struts.upload.MultipartRequestHandlerjavax.servlet.ServletException - thrown if something goes wrong
protected void createTextElement(javax.servlet.http.HttpServletRequest request,
MultipartElement element)
protected void createDiskFile(MultipartElement element)
public java.util.Hashtable getAllElements()
MultipartRequestHandlergetAllElements in interface MultipartRequestHandlerorg.apache.struts.upload.MultipartRequestHandlerpublic java.util.Hashtable getTextElements()
MultipartRequestHandlergetTextElements in interface MultipartRequestHandlerorg.apache.struts.upload.MultipartRequestHandlerpublic java.util.Hashtable getFileElements()
MultipartRequestHandlergetFileElements in interface MultipartRequestHandlerorg.apache.struts.upload.MultipartRequestHandlerFormFilepublic void rollback()
rollback in interface MultipartRequestHandlerpublic void finish()
rollback() to delete
temporary files.finish in interface MultipartRequestHandlerpublic void setServlet(ActionServlet servlet)
MultipartRequestHandlersetServlet in interface MultipartRequestHandlerpublic void setMapping(ActionMapping mapping)
MultipartRequestHandlersetMapping in interface MultipartRequestHandlerpublic ActionServlet getServlet()
MultipartRequestHandlergetServlet in interface MultipartRequestHandlerpublic ActionMapping getMapping()
MultipartRequestHandlergetMapping in interface MultipartRequestHandler
protected long getMaxSize(java.lang.String stringSize)
throws javax.servlet.ServletException
protected void retrieveTempDir(ModuleConfig moduleConfig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||