01: /*
02: * put your module comment here
03: * formatted with JxBeauty (c) johann.langhofer@nextra.at
04: */
05:
06: package org.hamletsoft.enhydra.cactus.presentation;
07:
08: import org.apache.cactus.server.runner.*;
09: import com.lutris.appserver.server.httpPresentation.HttpPresentation;
10: import com.lutris.appserver.server.httpPresentation.HttpPresentationComms;
11: import com.lutris.appserver.server.httpPresentation.HttpPresentationException;
12: import org.hamletsoft.enhydra.cactus.spec.*;
13:
14: import javax.servlet.ServletException;
15: import javax.servlet.http.HttpServlet;
16: import javax.servlet.http.HttpServletRequest;
17: import javax.servlet.http.HttpServletResponse;
18: import javax.servlet.ServletException;
19: import java.io.IOException;
20:
21: public class EnhydraTestRunner extends ServletTestRunner implements
22: HttpPresentation {
23:
24: public void run(HttpPresentationComms comms)
25: throws HttpPresentationException, IOException {
26: try {
27: HttpServletRequest request = comms.request
28: .getHttpServletRequest();
29: HttpServletResponse response = comms.response
30: .getHttpServletResponse();
31: doGet(request, response);
32: } catch (Exception e) {
33: throw new HttpPresentationException(e.getMessage(), e);
34: }
35: }
36: }
|