1 16 17 package org.apache.commons.latka.servlet; 18 19 import java.io.IOException ; 20 import java.io.PrintWriter ; 21 22 import java.net.URL ; 23 24 import javax.servlet.http.HttpServlet ; 25 import javax.servlet.http.HttpServletRequest ; 26 import javax.servlet.http.HttpServletResponse ; 27 28 import org.apache.commons.latka.Suite; 29 30 36 public class ViewSuiteServlet extends HttpServlet { 37 38 45 public void doPost(HttpServletRequest req, HttpServletResponse res) 46 throws IOException { 47 doGet(req, res); 48 } 49 50 57 public void doGet(HttpServletRequest req, HttpServletResponse res) 58 throws IOException { 59 60 res.setHeader("Content-type", "text/xml"); 61 62 String suiteUrl = req.getParameter("url"); 63 Suite suite = new Suite(new URL (suiteUrl)); 64 65 PrintWriter writer = res.getWriter(); 66 writer.print("not yet implemented"); 67 } 68 69 } 70 | Popular Tags |