1 package org.directwebremoting.dwrp; 2 3 import org.directwebremoting.ScriptBuffer; 4 import org.directwebremoting.extend.ScriptConduit; 5 import org.directwebremoting.util.Continuation; 6 import org.directwebremoting.util.Logger; 7 8 11 public class ResumeContinuationScriptConduit extends ScriptConduit 12 { 13 16 public ResumeContinuationScriptConduit(Continuation continuation) 17 { 18 super(RANK_PROCEDURAL); 19 this.continuation = continuation; 20 } 21 22 25 public boolean addScript(ScriptBuffer script) 26 { 27 try 28 { 29 continuation.resume(); 30 } 31 catch (Exception ex) 32 { 33 log.warn("Exception in continuation.resume()", ex); 34 } 35 36 return false; 38 } 39 40 43 private static final Logger log = Logger.getLogger(ResumeContinuationScriptConduit.class); 44 45 48 private final Continuation continuation; 49 } | Popular Tags |