javax.ws.rs.client
Interface InvocationCallback<RESPONSE>

Type Parameters:
RESPONSE - response type. It can be either a general-purpose Response or the anticipated response entity type.

public interface InvocationCallback<RESPONSE>

Callback that can be implemented to receive the asynchronous processing events from the invocation processing.

Since:
2.0
Author:
Marek Potociar

Method Summary
 void completed(RESPONSE response)
          Called when the invocation was successfully completed.
 void failed(InvocationException error)
          Called when the invocation has failed for any reason.
 

Method Detail

completed

void completed(RESPONSE response)
Called when the invocation was successfully completed. Note that this does not necessarily mean the response has bean fully read. This depends on the expected invocation callback response type.

Parameters:
response - response data.

failed

void failed(InvocationException error)
Called when the invocation has failed for any reason.

Parameters:
error - contains failure details.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.