1 53 package org.bsf.remoting.http; 54 55 import java.io.Serializable ; 56 57 61 public class HttpServiceResponse implements Serializable { 62 private Throwable throwable; 63 private Object result; 64 65 public HttpServiceResponse(Throwable throwable) { 66 this.throwable = throwable; 67 } 68 69 public HttpServiceResponse(Object result) { 70 this.result = result; 71 } 72 73 public Throwable getThrowable() { 74 return throwable; 75 } 76 77 public void setThrowable(Throwable throwable) { 78 this.throwable = throwable; 79 } 80 81 public Object getResult() { 82 return result; 83 } 84 85 public void setResult(Object result) { 86 this.result = result; 87 } 88 89 public boolean isExceptionThrown() { 90 if (throwable != null) return true; 91 return false; 92 } 93 } | Popular Tags |