01: /*
02: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19: package com.nabhinc.ws.server;
20:
21: import java.io.IOException;
22:
23: import javax.servlet.ServletException;
24: import javax.servlet.http.HttpServletRequest;
25: import javax.servlet.http.HttpServletResponse;
26:
27: /**
28: * Request processor used by Web services servlet.
29: *
30: * @author Padmanabh Dabke
31: * (c) 2005 Nabh Information Systems, Inc. All Rights Reserved.
32: */
33: public interface ServletRequestProcessor extends RequestProcessor {
34:
35: /**
36: * Process a method invocation request on a Web service. The <code>serviceInfo</code>
37: * and <code>webServiceRequest</code> attributes of <code>RequestInfo</code>
38: * object should have been populated at this point.
39: * @param req HTTP request
40: * @param res HTTP response
41: * @param reqInfo RequestInfo object that holds information about current request
42: * @throws ServletException
43: * @throws IOException
44: */
45: void process(HttpServletRequest req, HttpServletResponse res,
46: RequestInfo reqInfo) throws ServletException, IOException;
47:
48: /**
49: * Invoked when the Web services container cannot find the requested service, service
50: * is not loaded or a service is not running.
51: * @param req HTTP request
52: * @param res HTTP response
53: * @throws IOException
54: */
55: void processError(HttpServletRequest req, HttpServletResponse res,
56: String errorMsg) throws IOException;
57:
58: }
|