net.customware.gwt.dispatch.client
Class AbstractDispatchAsync
java.lang.Object
net.customware.gwt.dispatch.client.AbstractDispatchAsync
- All Implemented Interfaces:
- DispatchAsync
- Direct Known Subclasses:
- SecureDispatchAsync, StandardDispatchAsync
public abstract class AbstractDispatchAsync
- extends Object
- implements DispatchAsync
An abstract base class that provides methods that can be called to handle success or failure
results from the remote service. These should be called by the implementation of
DispatchAsync.execute(net.customware.gwt.dispatch.shared.Action, com.google.gwt.user.client.rpc.AsyncCallback).
- Author:
- David Peterson
|
Method Summary |
protected
|
onFailure(A action,
Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
|
protected
|
onSuccess(A action,
R result,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDispatchAsync
public AbstractDispatchAsync(ExceptionHandler exceptionHandler)
onFailure
protected <A extends Action<R>,R extends Result> void onFailure(A action,
Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
onSuccess
protected <A extends Action<R>,R extends Result> void onSuccess(A action,
R result,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
Copyright © 2011 customware.net. All Rights Reserved.