com.gwtplatform.dispatch.client
Class DelagatingCallbackDispatchRequest<R>
java.lang.Object
com.gwtplatform.dispatch.client.DelagatingCallbackDispatchRequest<R>
- Type Parameters:
R
- The type of the AsyncCallback
.
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.AsyncCallback<R>, CallbackDispatchRequest<R>, DispatchRequest
public class DelagatingCallbackDispatchRequest<R>
- extends Object
- implements CallbackDispatchRequest<R>
An implementation of DispatchRequest
that should be used by
ClientActionHandler
s
that make asynchronous calls that return a Request
.
This class also takes a DispatchRequest
and delegate work to this DispatchRequest
.
This class is used within
AbstractCachingClientActionHandler
to be able to store inside an HashMap DefaultCallbackDispatchRequest
while keeping
GwtHttpDispatchRequest
nature.
- Author:
- Christian Goudreau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelagatingCallbackDispatchRequest
public DelagatingCallbackDispatchRequest(DispatchRequest request,
com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
cancel
public void cancel()
- Specified by:
cancel
in interface DispatchRequest
isPending
public boolean isPending()
- Specified by:
isPending
in interface DispatchRequest
onFailure
public void onFailure(Throwable caught)
- Specified by:
onFailure
in interface com.google.gwt.user.client.rpc.AsyncCallback<R>
onSuccess
public void onSuccess(R result)
- Specified by:
onSuccess
in interface com.google.gwt.user.client.rpc.AsyncCallback<R>
Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.