public interface ReturningResponseHandler<T extends Response,R>
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)
.
Modifier and Type | Method and Description |
---|---|
R |
handle(T response)
Triggered when response from
Request.executeAndReturn(ReturningResponseHandler)
method becomes available. |
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 retrievedCopyright © 2015 Atlassian. All rights reserved.
View cookie preferences