com.gwtplatform.dispatch.client
Class DefaultDispatchAsync
java.lang.Object
com.gwtplatform.dispatch.client.DefaultDispatchAsync
- All Implemented Interfaces:
- DispatchAsync
public class DefaultDispatchAsync
- extends Object
- implements DispatchAsync
This class is the default implementation of DispatchAsync
, which is
essentially the client-side access to the
com.gwtplatform.dispatch.server.Dispatch
class on the server-side.
- Author:
- David Peterson, Christian Goudreau, Brendan Doherty
Method Summary |
|
execute(A action,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
|
protected
|
onExecuteFailure(A action,
Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
|
protected
|
onExecuteSuccess(A action,
R result,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
|
protected
|
onUndoFailure(A action,
Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
|
protected
|
onUndoSuccess(A action,
Void voidResult,
com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
|
|
undo(A action,
R result,
com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDispatchAsync
public DefaultDispatchAsync(ExceptionHandler exceptionHandler,
SecurityCookieAccessor securityCookieAccessor,
ClientActionHandlerRegistry registry)
execute
public <A extends Action<R>,R extends Result> DispatchRequest execute(A action,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
- Specified by:
execute
in interface DispatchAsync
undo
public <A extends Action<R>,R extends Result> DispatchRequest undo(A action,
R result,
com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
- Specified by:
undo
in interface DispatchAsync
onExecuteFailure
protected <A extends Action<R>,R extends Result> void onExecuteFailure(A action,
Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
onExecuteSuccess
protected <A extends Action<R>,R extends Result> void onExecuteSuccess(A action,
R result,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
onUndoFailure
protected <A extends Action<R>,R extends Result> void onUndoFailure(A action,
Throwable caught,
com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
onUndoSuccess
protected <A extends Action<R>,R extends Result> void onUndoSuccess(A action,
Void voidResult,
com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Copyright © 2010-2012 ArcBees. All Rights Reserved.