Package org.w3c.jigsaw.http

Examples of org.w3c.jigsaw.http.Request.makeReply()


        // add state to set warnings on the way back
        request.setState("tidy", "ok");
    } else {
        if (getValidStrict() == true ){
      // tidy failed and a file MUST validate -> refuse put
      Reply reply = request.makeReply(HTTP.FORBIDDEN) ;
      HtmlGenerator g = new HtmlGenerator("Not Acceptable");
      g.append("<p>This HTML code does not validate. Valid"
         + "code is required here</p>"
         + "<p>Warnings: " + tidy.getParseWarnings()
           + " Errors: "+tidy.getParseErrors()+"</p>");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.