|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReturningResponseHandler<T extends Response,R>
Callback interface used by the Request.executeAndReturn(ReturningResponseHandler)
method. Implementation of this interface performs actual handling of the
response.
If no result will be produced, then instead of using this class, implement
ResponseHandler and pass it to
Request.execute(ResponseHandler).
| Method Summary | |
|---|---|
R |
handle(T response)
Triggered when response from Request.executeAndReturn(ReturningResponseHandler)
method becomes available. |
| Method Detail |
|---|
R handle(T response)
throws ResponseException
Request.executeAndReturn(ReturningResponseHandler)
method becomes available. Implementations of this method should handle the response.
response - a response object. Never null.
ResponseException - If the response cannot be retrieved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||