org.codehaus.groovy.grails.web.multipart
Class ContentLengthAwareCommonsMultipartResolver
java.lang.Object
org.springframework.web.multipart.commons.CommonsFileUploadSupport
org.springframework.web.multipart.commons.CommonsMultipartResolver
org.codehaus.groovy.grails.web.multipart.ContentLengthAwareCommonsMultipartResolver
- All Implemented Interfaces:
- org.springframework.web.context.ServletContextAware, org.springframework.web.multipart.MultipartResolver
public class ContentLengthAwareCommonsMultipartResolver
- extends org.springframework.web.multipart.commons.CommonsMultipartResolver
Safari includes the multipart packet inside an HTTP redirect without the Content-Length header. This causes
CommonsMultipartResolver to blow up. We extend it here to catch this exception, printing a warning.
- Since:
- 1.0
Created: Dec 7, 2007
- Author:
- Graeme Rocher
Nested classes/interfaces inherited from class org.springframework.web.multipart.commons.CommonsFileUploadSupport |
org.springframework.web.multipart.commons.CommonsFileUploadSupport.MultipartParsingResult |
Field Summary |
(package private) static org.apache.commons.logging.Log |
LOG
|
Fields inherited from class org.springframework.web.multipart.commons.CommonsFileUploadSupport |
logger |
Method Summary |
protected org.springframework.web.multipart.commons.CommonsFileUploadSupport.MultipartParsingResult |
parseRequest(javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class org.springframework.web.multipart.commons.CommonsMultipartResolver |
cleanupMultipart, determineEncoding, isMultipart, newFileUpload, resolveMultipart, setResolveLazily, setServletContext |
Methods inherited from class org.springframework.web.multipart.commons.CommonsFileUploadSupport |
cleanupFileItems, getDefaultEncoding, getFileItemFactory, getFileUpload, isUploadTempDirSpecified, newFileItemFactory, parseFileItems, prepareFileUpload, setDefaultEncoding, setMaxInMemorySize, setMaxUploadSize, setUploadTempDir |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
static final org.apache.commons.logging.Log LOG
ContentLengthAwareCommonsMultipartResolver
public ContentLengthAwareCommonsMultipartResolver()
parseRequest
protected org.springframework.web.multipart.commons.CommonsFileUploadSupport.MultipartParsingResult parseRequest(javax.servlet.http.HttpServletRequest request)
throws org.springframework.web.multipart.MultipartException
- Overrides:
parseRequest
in class org.springframework.web.multipart.commons.CommonsMultipartResolver
- Throws:
org.springframework.web.multipart.MultipartException
Copyright (c) 2005-2006 The Grails project