@FunctionalInterface public interface FacadeCallback<T> extends org.fusesource.restygwt.client.MethodCallback<T>
MethodCallback turned in to FacadeCallback that supports lambda syntax.
Use this interface if you need a notification about a failure, see #done(T, Failure).
Calls failing with unauthenticated exception (401 status code) will redirect to /login
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FacadeCallback.Failure
Failure metadata.
|
| Modifier and Type | Method and Description |
|---|---|
void |
done(T response,
FacadeCallback.Failure failure)
Called when asynchronous call completes either successfully or with an error.
|
default void |
onFailure(org.fusesource.restygwt.client.Method method,
Throwable exception) |
default void |
onSuccess(org.fusesource.restygwt.client.Method method,
T response) |
default void |
redirectToLoginIfUnauthorized(Throwable exception) |
void done(T response, FacadeCallback.Failure failure)
default void onFailure(org.fusesource.restygwt.client.Method method,
Throwable exception)
onFailure in interface org.fusesource.restygwt.client.MethodCallback<T>default void onSuccess(org.fusesource.restygwt.client.Method method,
T response)
onSuccess in interface org.fusesource.restygwt.client.MethodCallback<T>default void redirectToLoginIfUnauthorized(Throwable exception)
Copyright © 2023. All rights reserved.