diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-21 11:24:06 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-21 11:24:06 +0000 |
commit | f2f49a54a1c51d67ae421c63016ab9aa27189d04 (patch) | |
tree | cad7b521a6ec244fd6663709c53d17dbcb8386b1 /sca-java-2.x/trunk/modules/implementation-java-runtime/src/main | |
parent | 0cddf749caef14faefb6e27f72427ad552119839 (diff) |
TUSCANY-3976: Apply patch from Greg Dritschler to allow extensions to save information about client async request
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1204449 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/implementation-java-runtime/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java index 0bddda6965..d3a7cfd3e6 100644 --- a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java +++ b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaAsyncResponseInvokerImpl.java @@ -100,6 +100,15 @@ public class JavaAsyncResponseInvokerImpl implements JDKAsyncResponseInvoker { // 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 |