01: package com.icesoft.faces.webapp.http.servlet;
02:
03: import com.icesoft.faces.webapp.http.common.Server;
04:
05: import javax.servlet.http.HttpServletRequest;
06: import javax.servlet.http.HttpServletResponse;
07:
08: public class BasicAdaptingServlet implements PseudoServlet {
09: private Server server;
10:
11: public BasicAdaptingServlet(Server server) {
12: this .server = server;
13: }
14:
15: public void service(HttpServletRequest request,
16: HttpServletResponse response) throws Exception {
17: server.service(new ServletRequestResponse(request, response));
18: }
19:
20: public void shutdown() {
21: server.shutdown();
22: }
23: }
|