1 16 package org.directwebremoting.dwrp; 17 18 import org.directwebremoting.extend.OutboundContext; 19 import org.directwebremoting.extend.OutboundVariable; 20 21 25 public class ErrorOutboundVariable extends AbstractOutboundVariable implements OutboundVariable 26 { 27 34 public ErrorOutboundVariable(OutboundContext outboundContext, String errorMessage, boolean forceInline) 35 { 36 super(outboundContext); 37 this.errorMessage = errorMessage; 38 39 if (forceInline) 40 { 41 forceInline(true); 42 } 43 } 44 45 48 protected NotInlineDefinition getNotInlineDefinition() 49 { 50 return new NotInlineDefinition("var " + getVariableName() + "=null;", ""); 51 } 52 53 56 protected String getInlineDefinition() 57 { 58 return "null"; 59 } 60 61 64 public String toString() 65 { 66 return "Error:null"; 67 } 68 69 72 private String errorMessage; 73 } 74 | Popular Tags |