org.overlord.sramp.ui.client.util
Class RemoteServiceAsyncCallback<T>
java.lang.Object
org.overlord.sramp.ui.client.util.RemoteServiceAsyncCallback<T>
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.AsyncCallback<T>
public abstract class RemoteServiceAsyncCallback<T>
- extends Object
- implements com.google.gwt.user.client.rpc.AsyncCallback<T>
Base class for UI async handlers that does some basic error processing.
- Author:
- eric.wittmann@redhat.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.rpc.AsyncCallback |
onSuccess |
RemoteServiceAsyncCallback
public RemoteServiceAsyncCallback()
- Constructor.
onFailure
public final void onFailure(Throwable caught)
- Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<T>
- See Also:
AsyncCallback.onFailure(java.lang.Throwable)
onIncompatibleRemoteServiceFailure
protected void onIncompatibleRemoteServiceFailure(com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException caught)
- Subclasses can override if they choose - handles the case when the remote service is
incompatible with the client. This can happen when the server is updated but the client
is not.
By default this method will display an error dialog to the user, prompting them to
refresh the browser.
- Parameters:
caught -
onRemoteServiceFailure
protected abstract void onRemoteServiceFailure(RemoteServiceException caught)
- Subclasses must implement this to handle the 'typical' case where an exception is
thrown from a remote service.
- Parameters:
caught -
Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.