com.oreilly.servlet
Class MultipartWrapper

java.lang.Object
  extended by HttpServletRequestWrapper
      extended by com.oreilly.servlet.MultipartWrapper

public class MultipartWrapper
extends HttpServletRequestWrapper

A request wrapper to support MultipartFilter. The filter capability requires Servlet API 2.3.

See Jason Hunter's June 2001 article in JavaWorld for a full explanation of the class usage.

Version:
1.0, 2001/06/19
Author:
Jason Hunter, Copyright © 2001

Constructor Summary
MultipartWrapper(HttpServletRequest req, java.lang.String dir)
           
 
Method Summary
 java.lang.String getContentType(java.lang.String name)
           
 java.io.File getFile(java.lang.String name)
           
 java.util.Enumeration getFileNames()
           
 java.lang.String getFilesystemName(java.lang.String name)
           
 java.lang.String getParameter(java.lang.String name)
           
 java.util.Map getParameterMap()
           
 java.util.Enumeration getParameterNames()
           
 java.lang.String[] getParameterValues(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartWrapper

public MultipartWrapper(HttpServletRequest req,
                        java.lang.String dir)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getParameterNames

public java.util.Enumeration getParameterNames()

getParameter

public java.lang.String getParameter(java.lang.String name)

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)

getParameterMap

public java.util.Map getParameterMap()

getFileNames

public java.util.Enumeration getFileNames()

getFilesystemName

public java.lang.String getFilesystemName(java.lang.String name)

getContentType

public java.lang.String getContentType(java.lang.String name)

getFile

public java.io.File getFile(java.lang.String name)