info.magnolia.module.blossom.multipart
Class CompatibleAbstractMultipartHttpServletRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.springframework.web.multipart.support.AbstractMultipartHttpServletRequest
              extended by info.magnolia.module.blossom.multipart.CompatibleAbstractMultipartHttpServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, org.springframework.web.multipart.MultipartHttpServletRequest, org.springframework.web.multipart.MultipartRequest
Direct Known Subclasses:
BlossomMultipartRequestWrapper

public abstract class CompatibleAbstractMultipartHttpServletRequest
extends org.springframework.web.multipart.support.AbstractMultipartHttpServletRequest

As of version 3.0.0 Spring supports multiple multipart files with the same name. This changed the API introducing an incompatibility with implementations for earlier versions. This class uses reflection to use either the old API or the new API. It's used as a replacement for AbstractMultipartHttpServletRequest. The change was introduced with https://jira.springframework.org/browse/SPR-2784.

Since:
1.2
See Also:
MultipartRequest, AbstractMultipartHttpServletRequest

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
protected CompatibleAbstractMultipartHttpServletRequest(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
protected  void setSingleValueMultipartFiles(Map<String,org.springframework.web.multipart.MultipartFile> multipartFiles)
           
 
Methods inherited from class org.springframework.web.multipart.support.AbstractMultipartHttpServletRequest
getFile, getFileMap, getFileNames, getMultipartFiles, initializeMultipart, setMultipartFiles
 
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, getParameter, getParameterMap, getParameterNames, getParameterValues, 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.http.HttpServletRequest
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 interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

CompatibleAbstractMultipartHttpServletRequest

protected CompatibleAbstractMultipartHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Method Detail

setSingleValueMultipartFiles

protected void setSingleValueMultipartFiles(Map<String,org.springframework.web.multipart.MultipartFile> multipartFiles)
                                     throws InvocationTargetException,
                                            InstantiationException,
                                            IllegalAccessException
Throws:
InvocationTargetException
InstantiationException
IllegalAccessException


Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.