ccc.client.gwt.core
Class RequestCallbackAdapter

java.lang.Object
  extended by ccc.client.gwt.core.RequestCallbackAdapter
All Implemented Interfaces:
com.google.gwt.http.client.RequestCallback

public final class RequestCallbackAdapter
extends java.lang.Object
implements com.google.gwt.http.client.RequestCallback

Adapter that maps GWT's callback handler to the CC response handler.

Author:
Civic Computing Ltd.

Constructor Summary
RequestCallbackAdapter(ResponseHandler handler)
          Constructor.
 
Method Summary
 void onError(com.google.gwt.http.client.Request request, java.lang.Throwable exception)
           
 void onResponseReceived(com.google.gwt.http.client.Request request, com.google.gwt.http.client.Response r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestCallbackAdapter

public RequestCallbackAdapter(ResponseHandler handler)
Constructor.

Parameters:
handler - The response handler for this callback.
Method Detail

onError

public void onError(com.google.gwt.http.client.Request request,
                    java.lang.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 r)
Specified by:
onResponseReceived in interface com.google.gwt.http.client.RequestCallback


Copyright © 2010. All Rights Reserved.