org.apache.cxf.management.web.browser.client.service
Class AbstractCallback<T>

java.lang.Object
  extended by org.apache.cxf.management.web.browser.client.service.AbstractCallback<T>
All Implemented Interfaces:
com.google.gwt.http.client.RequestCallback
Direct Known Subclasses:
FeedProxyImpl.Callback, RemoteStorageProxyImpl.Callback, RemoteStorageProxyImpl.NoActionCallback

public abstract class AbstractCallback<T>
extends Object
implements com.google.gwt.http.client.RequestCallback


Constructor Summary
AbstractCallback()
           
 
Method Summary
 void onError(com.google.gwt.http.client.Request request, Throwable ex)
           
 void onResponseReceived(com.google.gwt.http.client.Request request, com.google.gwt.http.client.Response response)
           
abstract  void onSuccess(T obj)
           
protected abstract  T parse(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
 

Constructor Detail

AbstractCallback

public AbstractCallback()
Method Detail

onResponseReceived

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

onError

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

onSuccess

public abstract void onSuccess(T obj)

parse

protected abstract T parse(com.google.gwt.http.client.Response response)


Apache CXF