GWTP Dispatch client 0.6-redhat-1

com.gwtplatform.dispatch.client
Class DelagatingCallbackDispatchRequest<R>

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

Constructor Summary
DelagatingCallbackDispatchRequest(DispatchRequest request, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
           
 
Method Summary
 void cancel()
           
 boolean isPending()
           
 void onFailure(Throwable caught)
           
 void onSuccess(R result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelagatingCallbackDispatchRequest

public DelagatingCallbackDispatchRequest(DispatchRequest request,
                                         com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
Method Detail

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>

GWTP Dispatch client 0.6-redhat-1

Copyright © 2010-2012 ArcBees. All Rights Reserved.