public abstract class

MultiPartRequest

extends Object
java.lang.Object
   ↳ webwork.multipart.MultiPartRequest
Known Direct Subclasses

Class Overview

Multipart Form Data request.

This class decodes the multipart/form-data stream sent by a HTML form that uses a file input item.

Summary

Fields
protected static Log log
Public Constructors
MultiPartRequest()
Public Methods
abstract String getContentType(String name)
abstract File getFile(String name)
Get the File as saved by the multipart parser on the server filesystem.
abstract Enumeration getFileNames()
abstract String getFilesystemName(String name)
Get the client file name of the specified uploaded file.
abstract String getParameter(String name)
abstract Enumeration getParameterNames()
abstract String[] getParameterValues(String name)
static boolean isMultiPart(HttpServletRequest request)
Is request a multipart request
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static Log log

Public Constructors

public MultiPartRequest ()

Public Methods

public abstract String getContentType (String name)

public abstract File getFile (String name)

Get the File as saved by the multipart parser on the server filesystem.

Parameters
name The parameter name of the uploaded file
Returns
  • the File on the local filesystem, or null if the multipart parser has not stored the file on disk (for example, if it is a memory based file upload)

public abstract Enumeration getFileNames ()

public abstract String getFilesystemName (String name)

Get the client file name of the specified uploaded file.

Parameters
name the parameter name of the uploaded file
Returns
  • The client filename

public abstract String getParameter (String name)

public abstract Enumeration getParameterNames ()

public abstract String[] getParameterValues (String name)

public static boolean isMultiPart (HttpServletRequest request)

Is request a multipart request