|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IWsResponse.java | - | - | - | - |
|
||||||||||||||
| 1 | /** | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.ws; | |
| 8 | ||
| 9 | import java.util.Map; | |
| 10 | import java.util.concurrent.Future; | |
| 11 | ||
| 12 | /** | |
| 13 | * This interface allows the access to both payload and context of a response | |
| 14 | * message that follows an operation invocation. Furthermore, in case of | |
| 15 | * asynchronous invocations, it provides a way to check the status of the request, | |
| 16 | * by means of the API exposed by the <code>Future</code> super-interface. | |
| 17 | * The payload of the response can be accessed via the <code>get</code> method | |
| 18 | * exposed by the <code>Future</code> interface. | |
| 19 | * | |
| 20 | * @author Francesco Russo | |
| 21 | * @version 4.0 | |
| 22 | * @since 4.0 | |
| 23 | */ | |
| 24 | public interface IWsResponse extends Future { | |
| 25 | /** | |
| 26 | * Provides the context associated with a response message received | |
| 27 | * after an operation invocation. | |
| 28 | */ | |
| 29 | public Map<String, Object> getContext(); | |
| 30 | } |
|
||||||||||