01: /*
02: * $Id: EventHandler.java,v 1.2 2003/09/14 05:36:47 jonesde Exp $
03: *
04: * Copyright (c) 2001-2003 The Open For Business Project - www.ofbiz.org
05: *
06: * Permission is hereby granted, free of charge, to any person obtaining a
07: * copy of this software and associated documentation files (the "Software"),
08: * to deal in the Software without restriction, including without limitation
09: * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10: * and/or sell copies of the Software, and to permit persons to whom the
11: * Software is furnished to do so, subject to the following conditions:
12: *
13: * The above copyright notice and this permission notice shall be included
14: * in all copies or substantial portions of the Software.
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17: * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
21: * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22: * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23: *
24: */
25: package org.ofbiz.content.webapp.event;
26:
27: import javax.servlet.http.HttpServletRequest;
28: import javax.servlet.http.HttpServletResponse;
29:
30: /**
31: * EventHandler - Event Handler Interface
32: *
33: * @author <a href="mailto:jaz@ofbiz.org">Andy Zeneski</a>
34: * @author <a href="mailto:jonesde@ofbiz.org">David E. Jones</a>
35: * @version $Revision: 1.2 $
36: * @since 2.0
37: */
38:
39: public interface EventHandler {
40:
41: /**
42: * Invoke the web event
43: *
44: *@param eventPath The path or location of this event
45: *@param eventMethod The method to invoke
46: *@param request The servlet request object
47: *@param response The servlet response object
48: *@return String Result code
49: *@throws EventHandlerException
50: */
51: public String invoke(String eventPath, String eventMethod,
52: HttpServletRequest request, HttpServletResponse response)
53: throws EventHandlerException;
54: }
|