com.maryanovsky.gwtutils.client
Interface ResultCallback<T>


public interface ResultCallback<T>

The interface to implement for getting notified when a result to a request arrives. See XmlResponseHandler for example.


Method Summary
 void requestFinished()
          Invoked when any kind of result occurs, whether an error occurred while sending or receiving or a bad/good response received.
 void resultReceived(T result)
          Invoked when a successfully parsed response arrives.
 

Method Detail

requestFinished

void requestFinished()
Invoked when any kind of result occurs, whether an error occurred while sending or receiving or a bad/good response received. It is invoked before any of the other methods.


resultReceived

void resultReceived(T result)
Invoked when a successfully parsed response arrives.

Parameters:
result - The parsed result object.