01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-util/tool-lib/src/java/org/sakaiproject/metaobj/utils/mvc/intf/ControllerFilter.java $
03: * $Id: ControllerFilter.java 14230 2006-09-05 18:02:51Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.metaobj.utils.mvc.intf;
21:
22: import java.util.Map;
23:
24: import org.springframework.web.servlet.ModelAndView;
25:
26: /**
27: * implement this interface if you have work that needs to be done after a controller.
28: * In the case of forms this method is called after formBackingObject() is called or after
29: * handleRequest is called. For non forms it is simply called after handleRequest.
30: * <p/>
31: * Note implementations of this interface are invoked for each request that goes through a controller, so only
32: * use this for things that can't be handled directly in the controller.
33: */
34: public interface ControllerFilter {
35: /**
36: * this method is called after the handleRequest method of the controller is called
37: *
38: * @param request
39: * @param session
40: * @param application
41: * @param modelAndView
42: * @param screenMapping
43: */
44: public void doFilter(Map request, Map session, Map application,
45: ModelAndView modelAndView, String screenMapping);
46: }
|