1 25 package org.snipsnap.net; 26 27 import java.io.IOException ; 28 import java.util.HashMap ; 29 import java.util.Iterator ; 30 import java.util.Map ; 31 32 import javax.servlet.ServletException ; 33 import javax.servlet.ServletOutputStream ; 34 import javax.servlet.http.HttpServlet ; 35 import javax.servlet.http.HttpServletRequest ; 36 import javax.servlet.http.HttpServletResponse ; 37 38 import org.radeox.util.Service; 39 import org.snipsnap.app.Application; 40 import org.snipsnap.graph.*; 41 import org.snipsnap.graph.renderer.Renderer; 42 import org.snipsnap.graph.renderer.ExplorerRenderer; 43 import org.snipsnap.graph.builder.TreeBuilder; 44 import org.snipsnap.snip.Snip; 45 import org.snipsnap.snip.SnipSpaceFactory; 46 47 53 public class NameSpaceServlet extends HttpServlet { 54 55 public void init() throws ServletException { 56 } 57 58 public void doGet(HttpServletRequest request, HttpServletResponse response) 59 throws IOException , ServletException { 60 61 String name = request.getParameter("name"); 62 63 response.setContentType("image/png"); 64 65 ServletOutputStream out = response.getOutputStream(); 66 67 TreeBuilder builder = new NameSpaceTreeBuilder(name); 68 Renderer renderer = new ExplorerRenderer(); 69 } 72 } | Popular Tags |