Package com.atlassian.sal.api.net
Interface ReturningResponseHandler<T extends Response,R>
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).
- Since:
- 2.2
-
Method Summary
Modifier and TypeMethodDescriptionTriggered when response fromRequest.executeAndReturn(ReturningResponseHandler)method becomes available.
-
Method Details
-
handle
Triggered when response fromRequest.executeAndReturn(ReturningResponseHandler)method becomes available. Implementations of this method should handle the response.- Parameters:
response- a response object. Nevernull.- Returns:
- the result produces by this handler.
- Throws:
ResponseException- If the response cannot be retrieved
-