1 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 ; 16 import javax.servlet.http.HttpServlet ; 17 import javax.servlet.http.HttpServletRequest ; 18 import javax.servlet.http.HttpServletResponse ; 19 import javax.servlet.ServletException ; 20 import java.io.IOException ; 21 22 23 public class EnhydraTestRunner extends ServletTestRunner 24 implements HttpPresentation { 25 26 public void run (HttpPresentationComms comms) throws HttpPresentationException, 27 IOException { 28 try { 29 HttpServletRequest request = comms.request.getHttpServletRequest(); 30 HttpServletResponse response = comms.response.getHttpServletResponse(); 31 doGet(request, response); 32 } catch (Exception e) { 33 throw new HttpPresentationException(e.getMessage(), e); 34 } 35 } 36 } 37 38 39 40 | Popular Tags |