Method Summary |
|
protected FileItem | createItem(String path, int requestSize, boolean storeAsFile) Creates a new instance of a FileItem.
Parameters: path - The path for the FileItem. Parameters: requestSize - The size of the request. |
public void | finish() This method is called on when a successful form post
has been made. |
public Hashtable | getAllElements() This method returns all elements of a multipart request. |
protected String | getFieldName() Retrieves field name from 'Content-disposition' header. |
public Hashtable | getFileElements() This method is called on to retrieve all the FormFile
input elements of the request. |
protected String | getFileName() Retrieves file name from 'Content-disposition' header. |
protected String | getHeader(String name) Returns a header with specified name.
Parameters: name - The name of the header to fetch. |
public ActionMapping | getMapping() |
public ActionServlet | getServlet() |
public Hashtable | getTextElements() This method is called on to retrieve all the text
input elements of the request. |
public void | handleRequest(HttpServletRequest request) After constructed, this is the first method called on
by ActionServlet. |
protected void | parseHeaders(String headerPart) Parses the header-part and stores as key -
value pairs. |
public void | parseRequest(HttpServletRequest req, ParameterParser params, String path) Processes an RFC
1867 compliant multipart/form-data stream. |
public void | rollback() This method is called on when there's some sort of problem
and the form post needs to be rolled back. |
public void | setMapping(ActionMapping mapping) Convienience method to set a reference to a working
ActionMapping instance. |
public void | setServlet(ActionServlet servlet) Convienience method to set a reference to a working
ActionServlet instance. |