/* * Created on Feb 22, 2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package webraveler.plugin; import java.util.Hashtable; import webraveler.http.HTTPRequest; import webraveler.http.HTTPResponse; import webraveler.ravel.RavelerPlugin; /** * @author schmitzc * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class W3CValidatorPlugin extends RavelerPlugin { static final String validationHTML = "
"; public W3CValidatorPlugin() { name = "W3CValidator"; mimeTypes.add("text/html"); } /** * */ public boolean initialize() { return true; } /** * */ public HTTPRequest execute(HTTPRequest request, Hashtable attributes) { return request; } // execute(HTTPRequest) /** * */ public HTTPResponse execute(HTTPResponse response, Hashtable attributes) { //Insert a link to the W3C Validator at the top of the page String insertHtml = "