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:
- ServletContextAware, MultipartResolver
public class ContentLengthAwareCommonsMultipartResolver
- extends 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
Field Summary |
(package private) static org.apache.commons.logging.Log |
LOG
|
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 CommonsFileUploadSupport.MultipartParsingResult parseRequest(HttpServletRequest request)
throws MultipartException
- Overrides:
parseRequest
in class CommonsMultipartResolver
- Throws:
MultipartException
Copyright (c) 2005-2006 The Grails project