1 16 package org.directwebremoting.extend; 17 18 24 public class Reply 25 { 26 31 public Reply(String callId, Object reply) 32 { 33 this.callId = callId; 34 this.reply = reply; 35 } 36 37 46 public Reply(String callId, Object reply, Throwable th) 47 { 48 if (reply != null) 49 { 50 throw new NullPointerException ("'reply' must be null when setting an Exception."); 51 } 52 53 this.callId = callId; 54 this.th = th; 55 } 56 57 60 public String getCallId() 61 { 62 return callId; 63 } 64 65 68 public Object getReply() 69 { 70 return reply; 71 } 72 73 76 public Throwable getThrowable() 77 { 78 return th; 79 } 80 81 private String callId = null; 82 83 private Object reply = null; 84 85 private Throwable th = null; 86 } 87 | Popular Tags |