01: /*
02: * Created on May 5, 2006
03: */
04: package uk.org.ponder.springutil;
05:
06: import javax.servlet.http.HttpServletRequest;
07:
08: import org.springframework.web.multipart.MultipartHttpServletRequest;
09: import org.springframework.web.multipart.MultipartResolver;
10:
11: /** A default MultipartResolver with no behaviour, to avoid build dependencies
12: * for those who do not require upload support.
13: * @author Antranig Basman (antranig@caret.cam.ac.uk)
14: *
15: */
16:
17: public class BlankMultipartResolver implements MultipartResolver {
18: public boolean isMultipart(HttpServletRequest request) {
19: return false;
20: }
21:
22: public MultipartHttpServletRequest resolveMultipart(
23: HttpServletRequest request) {
24: return null;
25: }
26:
27: public void cleanupMultipart(MultipartHttpServletRequest request) {
28: }
29:
30: }
|