- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 14 May 2010 15:31:44 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action In directory hutz:/tmp/cvs-serv12065/src/org/w3c/unicorn/action Added Files: TestObserver.java Log Message: a simple servlet that just redirect the request based on a "uri" parameter. It is used as a test observer. --- NEW FILE: TestObserver.java --- package org.w3c.unicorn.action; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * TestObserver * * @author Thomas GAMBET */ public class TestObserver extends HttpServlet { private static final long serialVersionUID = 1L; public TestObserver() { super(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String uri = request.getParameter("uri"); response.sendRedirect(uri); } }
Received on Friday, 14 May 2010 15:31:46 UTC