org.xcmis.client.gwt.rest
Class AsyncRequestCallback

java.lang.Object
  extended by org.xcmis.client.gwt.rest.AsyncRequestCallback
All Implemented Interfaces:
com.google.gwt.http.client.RequestCallback

public class AsyncRequestCallback
extends Object
implements com.google.gwt.http.client.RequestCallback

Created by The eXo Platform SAS .

Version:
$Id: $

Field Summary
protected  ServerExceptionEvent<?> exceptionEvent
           
protected  Unmarshallable payload
           
protected  com.google.gwt.event.shared.GwtEvent<?> postEvent
           
 
Constructor Summary
AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus, com.google.gwt.event.shared.GwtEvent<?> postEvent)
           
AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus, com.google.gwt.event.shared.GwtEvent<?> postEvent, ServerExceptionEvent<?> exceptionEvent)
           
AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus, Unmarshallable payload, com.google.gwt.event.shared.GwtEvent<?> postEvent)
           
AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus, Unmarshallable payload, com.google.gwt.event.shared.GwtEvent<?> postEvent, int[] successCodes)
           
AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus, Unmarshallable payload, com.google.gwt.event.shared.GwtEvent<?> postEvent, ServerExceptionEvent<?> exceptionEvent)
           
AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus, Unmarshallable payload, com.google.gwt.event.shared.GwtEvent<?> postEvent, ServerExceptionEvent<?> exceptionEvent, int[] successCodes)
           
 
Method Summary
protected  void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
           
 void onError(com.google.gwt.http.client.Request request, Throwable exception)
           
 void onResponseReceived(com.google.gwt.http.client.Request request, com.google.gwt.http.client.Response response)
           
protected  boolean success(com.google.gwt.http.client.Response response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

payload

protected final Unmarshallable payload

postEvent

protected final com.google.gwt.event.shared.GwtEvent<?> postEvent

exceptionEvent

protected final ServerExceptionEvent<?> exceptionEvent
Constructor Detail

AsyncRequestCallback

public AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus,
                            com.google.gwt.event.shared.GwtEvent<?> postEvent)

AsyncRequestCallback

public AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus,
                            com.google.gwt.event.shared.GwtEvent<?> postEvent,
                            ServerExceptionEvent<?> exceptionEvent)

AsyncRequestCallback

public AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus,
                            Unmarshallable payload,
                            com.google.gwt.event.shared.GwtEvent<?> postEvent)

AsyncRequestCallback

public AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus,
                            Unmarshallable payload,
                            com.google.gwt.event.shared.GwtEvent<?> postEvent,
                            int[] successCodes)

AsyncRequestCallback

public AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus,
                            Unmarshallable payload,
                            com.google.gwt.event.shared.GwtEvent<?> postEvent,
                            ServerExceptionEvent<?> exceptionEvent)

AsyncRequestCallback

public AsyncRequestCallback(com.google.gwt.event.shared.HandlerManager eventBus,
                            Unmarshallable payload,
                            com.google.gwt.event.shared.GwtEvent<?> postEvent,
                            ServerExceptionEvent<?> exceptionEvent,
                            int[] successCodes)
Method Detail

onError

public void onError(com.google.gwt.http.client.Request request,
                    Throwable exception)
Specified by:
onError in interface com.google.gwt.http.client.RequestCallback

onResponseReceived

public void onResponseReceived(com.google.gwt.http.client.Request request,
                               com.google.gwt.http.client.Response response)
Specified by:
onResponseReceived in interface com.google.gwt.http.client.RequestCallback

success

protected final boolean success(com.google.gwt.http.client.Response response)

fireEvent

protected final void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.