1 45 46 package org.exolab.jms.net.connector; 47 48 import java.io.IOException ; 49 import java.rmi.MarshalledObject ; 50 51 52 59 public class MarshalledInvocation implements Invocation { 60 61 64 private final MarshalledObject _request; 65 66 69 private Response _response; 70 71 74 private final Caller _caller; 75 76 77 83 public MarshalledInvocation(MarshalledObject request, Caller caller) { 84 _request = request; 85 _caller = caller; 86 } 87 88 94 public Request getRequest() throws Throwable { 95 return (Request) _request.get(); 96 } 97 98 103 public Caller getCaller() { 104 return _caller; 105 } 106 107 112 public void setResponse(Response response) { 113 _response = response; 114 } 115 116 121 public Response getResponse() { 122 return _response; 123 } 124 125 132 public MarshalledObject getMarshalledResponse() throws IOException { 133 return new MarshalledObject (_response); 134 } 135 136 } 137 | Popular Tags |