org.apache.cocoon.servlet.multipart
Class MultipartHttpServletRequest

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended byorg.apache.cocoon.servlet.multipart.MultipartHttpServletRequest
All Implemented Interfaces:
HttpServletRequest, ServletRequest, org.apache.cocoon.environment.ValueHolder

public class MultipartHttpServletRequest
extends HttpServletRequestWrapper
implements org.apache.cocoon.environment.ValueHolder

Servlet request wrapper for multipart parser.

Version:
$Id: MultipartHttpServletRequest.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MultipartHttpServletRequest(HttpServletRequest request, Hashtable values)
          Create this wrapper around the given request and including the given parts.
 
Method Summary
 void cleanup()
          Cleanup eventually uploaded parts that were saved on disk
 Object get(String name)
           
 String getParameter(String name)
          Method getParameter
 Enumeration getParameterNames()
          Method getParameterNames
 String[] getParameterValues(String name)
          Method getParameterValues
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

MultipartHttpServletRequest

public MultipartHttpServletRequest(HttpServletRequest request,
                                   Hashtable values)
Create this wrapper around the given request and including the given parts.

Method Detail

cleanup

public void cleanup()
             throws IOException
Cleanup eventually uploaded parts that were saved on disk

Throws:
IOException

get

public Object get(String name)
Specified by:
get in interface org.apache.cocoon.environment.ValueHolder
See Also:
ValueHolder.get(java.lang.String)

getParameterNames

public Enumeration getParameterNames()
Method getParameterNames

Specified by:
getParameterNames in interface ServletRequest

getParameter

public String getParameter(String name)
Method getParameter

Specified by:
getParameter in interface ServletRequest
Parameters:
name -

getParameterValues

public String[] getParameterValues(String name)
Method getParameterValues

Specified by:
getParameterValues in interface ServletRequest
Parameters:
name -


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.