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

Method Summary
 void handle(T response)
          Triggered when response from Request.execute(ResponseHandler) method becomes available.
 

Method Detail

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 © 2011 Atlassian. All Rights Reserved.