GWTP Dispatch client 0.6-redhat-2

com.gwtplatform.dispatch.client
Class DefaultDispatchAsync

java.lang.Object
  extended by 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

Constructor Summary
DefaultDispatchAsync(ExceptionHandler exceptionHandler, SecurityCookieAccessor securityCookieAccessor, ClientActionHandlerRegistry registry)
           
 
Method Summary
<A extends Action<R>,R extends Result>
DispatchRequest
execute(A action, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
           
protected
<A extends Action<R>,R extends Result>
void
onExecuteFailure(A action, Throwable caught, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
           
protected
<A extends Action<R>,R extends Result>
void
onExecuteSuccess(A action, R result, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
           
protected
<A extends Action<R>,R extends Result>
void
onUndoFailure(A action, Throwable caught, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
protected
<A extends Action<R>,R extends Result>
void
onUndoSuccess(A action, Void voidResult, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
<A extends Action<R>,R extends Result>
DispatchRequest
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
 

Constructor Detail

DefaultDispatchAsync

public DefaultDispatchAsync(ExceptionHandler exceptionHandler,
                            SecurityCookieAccessor securityCookieAccessor,
                            ClientActionHandlerRegistry registry)
Method Detail

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)

GWTP Dispatch client 0.6-redhat-2

Copyright © 2010-2012 ArcBees. All Rights Reserved.