1 25 package org.snipsnap.net.handler; 26 27 import org.radeox.util.logging.Logger; 28 import org.snipsnap.net.ServletPlugin; 29 30 import javax.servlet.ServletException ; 31 import javax.servlet.http.HttpServletRequest ; 32 import javax.servlet.http.HttpServletResponse ; 33 import java.io.IOException ; 34 35 public class TestStoreHandler implements ServletPlugin { 36 public void service(HttpServletRequest request, HttpServletResponse response) 37 throws IOException , ServletException { 38 String name = request.getParameter("name"); 39 Logger.debug("test store handler: "+name); 40 41 throw new ServletException ("This handler cannot store snips ("+name+")"); 42 } 43 } 44 | Popular Tags |