W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2010

2006/unicorn/src/org/w3c/unicorn/action TestObserver.java,NONE,1.1

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 14 May 2010 15:31:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1OCwrY-000395-2y@lionel-hutz.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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:42 UTC