1 9 package org.jboss.remoting; 10 11 import java.io.IOException ; 12 import java.io.Serializable ; 13 import java.util.Map ; 14 15 16 24 public class InvocationResponse implements Serializable 25 { 26 static final long serialVersionUID = 1324503813652865685L; 27 28 private final String sessionId; 29 private final boolean isException; 30 private final Object result; 31 private Map payload; 32 33 public InvocationResponse(String sessionId, Object result, boolean isException, Map payload) 34 throws IOException 35 { 36 this.sessionId = sessionId; 37 this.isException = isException; 38 this.result = result; 39 this.payload = payload; 40 } 41 42 public String getSessionId() 43 { 44 return sessionId; 45 } 46 47 public Map getPayload() 48 { 49 return payload; 50 } 51 52 public boolean isException() 53 { 54 return isException; 55 } 56 57 public Object getResult() 58 { 59 return result; 60 } 61 } 62 | Popular Tags |