package org.directwebremoting.dwrp; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServletResponse; import org.directwebremoting.ConversionException; import org.directwebremoting.ScriptBuffer; import org.directwebremoting.dwrp.BaseScriptConduit; import org.directwebremoting.extend.ConverterManager; import org.directwebremoting.extend.EnginePrivate; import org.directwebremoting.extend.ScriptBufferUtil; import org.directwebremoting.extend.Sleeper; public class HtmlScriptConduit extends BaseScriptConduit { public HtmlScriptConduit(Sleeper sleeper, HttpServletResponse response, String instanceId, String batchId, ConverterManager converterManager, boolean jsonOutput) throws IOException { super(sleeper, response, instanceId, batchId, converterManager, jsonOutput); } protected String getOutboundMimeType() { return "text/html"; } public void beginStream() { PrintWriter var1 = this.out; synchronized(this.out) { this.out.println("
"); this.out.println(""); } } public void endStream() { PrintWriter var1 = this.out; synchronized(this.out) { this.out.println(""); this.out.println(""); } } public boolean addScript(ScriptBuffer scriptBuffer) throws IOException, ConversionException { String script = ScriptBufferUtil.createOutput(scriptBuffer, this.converterManager, this.jsonOutput); PrintWriter var3 = this.out; synchronized(this.out) { this.out.println(""); return this.flush(); } } }