Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.maryanovsky.gwtutils.client.net
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` | `errorOcurred(String errorMessage)` Invoked when an error occurs while sending or receiving the request.
`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.

### errorOcurred

    void errorOcurred(String errorMessage)

  Invoked when an error occurs while sending or receiving the request.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD