com.atlassian.sal.api.net
Interface ResponseHandler<T extends Response>
public interface ResponseHandler<T extends Response>
Callback interface used by Request.execute(ResponseHandler) method. Implementation of this interface performs
actual handling of the response.
- Since:
- 2.0
handle
void handle(T response)
throws ResponseException
- Triggered when response from
Request.execute(ResponseHandler) method becomes available. Implementations
of this method should handle the response.
- Parameters:
response - a response object. Never null.
- Throws:
ResponseException - If the response cannot be retrieved
Copyright © 2010 Atlassian. All Rights Reserved.