KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hamletsoft > enhydra > cactus > presentation > EnhydraTestRunner


1 /*
2  * put your module comment here
3  * formatted with JxBeauty (c) johann.langhofer@nextra.at
4  */

5
6
7 package org.hamletsoft.enhydra.cactus.presentation;
8
9 import org.apache.cactus.server.runner.*;
10 import com.lutris.appserver.server.httpPresentation.HttpPresentation;
11 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms;
12 import com.lutris.appserver.server.httpPresentation.HttpPresentationException;
13 import org.hamletsoft.enhydra.cactus.spec.*;
14
15 import javax.servlet.ServletException JavaDoc;
16 import javax.servlet.http.HttpServlet JavaDoc;
17 import javax.servlet.http.HttpServletRequest JavaDoc;
18 import javax.servlet.http.HttpServletResponse JavaDoc;
19 import javax.servlet.ServletException JavaDoc;
20 import java.io.IOException JavaDoc;
21
22
23 public class EnhydraTestRunner extends ServletTestRunner
24     implements HttpPresentation {
25
26   public void run (HttpPresentationComms comms) throws HttpPresentationException,
27       IOException JavaDoc {
28     try {
29       HttpServletRequest JavaDoc request = comms.request.getHttpServletRequest();
30       HttpServletResponse JavaDoc response = comms.response.getHttpServletResponse();
31       doGet(request, response);
32     } catch (Exception JavaDoc e) {
33       throw new HttpPresentationException(e.getMessage(), e);
34     }
35   }
36 }
37
38
39
40
Popular Tags