01: /*
02: * Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.wso2.esb.transport;
18:
19: import org.apache.axis2.context.ConfigurationContext;
20:
21: import javax.servlet.http.HttpServletRequest;
22: import javax.servlet.http.HttpServletResponse;
23:
24: /**
25: * This interface is used for plugging in different implementations for special processing of some
26: * HTTP GET requests.
27: *
28: * e.g. ?wsdl, ?wsdl2, ?rss, ?atom etc.
29: *
30: * If you need to handle a special HTTP GET request, you have to write an implementation of this
31: * interface, and plug it in through the WSO2 ESB server.xml file.
32: */
33: public interface HttpGetRequestProcessor {
34:
35: /**
36: * Process the HTTP GET request
37: *
38: * @param request The HttpRequest
39: * @param response The HttpResponse
40: * @param configurationContext The system ConfigurationContext
41: * @throws Exception If some failure occurs during processing
42: */
43: void process(HttpServletRequest request,
44: HttpServletResponse response,
45: ConfigurationContext configurationContext) throws Exception;
46: }
|