Author: antelder
Date: Mon Nov 21 11:24:06 2011
New Revision: 1204449

URL: http://svn.apache.org/viewvc?rev=1204449&view=rev
Log:
TUSCANY-3976: Apply patch from Greg Dritschler to allow extensions to save 
information about client async request

Modified:
    
tuscany/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java?rev=1204449&r1=1204448&r2=1204449&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java
 Mon Nov 21 11:24:06 2011
@@ -100,6 +100,15 @@ public class JavaAsyncResponseInvokerImp
                // Add the ID/response handler mapping into the table
                if( id != null && responseHandler != null ) 
asyncMessageMap.put(id, responseHandler);
        } // end method registerAsyncResponse
+
+       /**
+        * Returns the registered async response for a given ID
+        * @param id - the ID
+        * @return responseHandler - the response handler object
+        */
+       public Object getAsyncResponse( String id ) {
+           return asyncMessageMap.get(id);
+       }
        
        /**
         * Extracts the RELATES_TO header from the message


Reply via email to