1 9 package org.jboss.remoting; 10 11 import java.io.Serializable ; 12 import java.util.Map ; 13 14 21 public class InvocationRequest implements Serializable 23 { 24 static final long serialVersionUID = -6719842238864057289L; 25 26 private String sessionId; 27 28 private String subsystem; 29 private Object arg; 30 private Map requestPayload; 31 private Map returnPayload; 32 private InvokerLocator locator; 33 34 public InvocationRequest(String sessionId, String subsystem, Object arg, Map requestPayload, Map returnPayload, InvokerLocator locator) 35 { 36 this.sessionId = sessionId; 37 this.subsystem = subsystem; 38 this.arg = arg; 39 this.requestPayload = requestPayload; 40 this.returnPayload = returnPayload; 41 this.locator = locator; 42 } 43 44 protected InvocationRequest(Object arg) 45 { 46 this.arg = arg; 47 } 48 49 public InvokerLocator getLocator() 50 { 51 return locator; 52 } 53 54 public void setLocator(InvokerLocator locator) 55 { 56 this.locator = locator; 57 } 58 59 public String getSubsystem() 60 { 61 return subsystem; 62 } 63 64 public void setSubsystem(String subsystem) 65 { 66 this.subsystem = subsystem; 67 } 68 69 public String getSessionId() 70 { 71 return sessionId; 72 } 73 74 public void setSessionId(String sessionId) 75 { 76 this.sessionId = sessionId; 77 } 78 79 public Object getParameter() 80 { 81 return arg; 82 } 83 84 public void setParameter(Object arg) 85 { 86 this.arg = arg; 87 } 88 89 public Map getRequestPayload() 90 { 91 return requestPayload; 92 } 93 94 public void setRequestPayload(Map requestPayload) 95 { 96 this.requestPayload = requestPayload; 97 } 98 99 public Map getReturnPayload() 100 { 101 return returnPayload; 102 } 103 104 public void setReturnPayload(Map returnPayload) 105 { 106 this.returnPayload = returnPayload; 107 } 108 } 109 | Popular Tags |