public class RestCallbackBuilder extends Object
| Constructor and Description |
|---|
RestCallbackBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static <R> com.google.gwt.user.client.rpc.AsyncCallback<R> |
build(AsyncCallbackOnSuccess<R> pcallbackOnSuccess,
AsyncCallbackOnFailure pcallbackOnFailure)
create rest callback implementation.
|
static <P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages> |
build(V pview,
D pdata,
Session psession,
AsyncCallbackOnSuccess<R> pcallbackOnSuccess)
create rest callback implementation.
|
static <P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages> |
build(V pview,
D pdata,
Session psession,
H phttpMessage,
AsyncCallbackOnSuccess<R> pcallbackOnSuccess)
create rest callback implementation.
|
static <V extends HasShowMessage,R,H extends HttpMessages> |
build(V pview,
Session psession,
AsyncCallbackOnSuccess<R> pcallbackOnSuccess)
create rest callback implementation.
|
static <V extends HasShowMessage,R,H extends HttpMessages> |
build(V pview,
Session psession,
AsyncCallbackOnSuccess<R> pcallbackOnSuccess,
H phttpMessage)
create rest callback implementation.
|
static <T extends User,V extends EditorWithErrorHandling<?,?>,M extends LoginMessages,H extends HttpMessages> |
buildLoginCallback(V pview,
Session psession)
create login callback implementation.
|
static <T extends User,V extends EditorWithErrorHandling<?,?>,M extends LoginMessages,H extends HttpMessages> |
buildLoginCallback(V pview,
Session psession,
M ploginErrorMessage)
create login callback implementation.
|
static <T extends User,V extends EditorWithErrorHandling<?,?>,M extends LoginMessages,H extends HttpMessages> |
buildLoginCallback(V pview,
Session psession,
M ploginErrorMessage,
H phttpMessage)
create login callback implementation.
|
public static <R> com.google.gwt.user.client.rpc.AsyncCallback<R> build(AsyncCallbackOnSuccess<R> pcallbackOnSuccess, AsyncCallbackOnFailure pcallbackOnFailure)
R - rest result typepcallbackOnSuccess - on success callbackpcallbackOnFailure - on failure callbackpublic static <V extends HasShowMessage,R,H extends HttpMessages> RestCallbackSimpleImpl<V,R,H> build(V pview, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess)
V - view or widget which implements EditorWithErrorHandling interfaceR - rest result typeH - http messagespview - view of thepsession - sessionpcallbackOnSuccess - on success callbackpublic static <V extends HasShowMessage,R,H extends HttpMessages> RestCallbackSimpleImpl<V,R,H> build(V pview, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess, H phttpMessage)
V - view or widget which implements EditorWithErrorHandling interfaceR - rest result typeH - http messagespview - view of thepsession - sessionpcallbackOnSuccess - on success callbackphttpMessage - http code messages to showpublic static <P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages> RestCallbackImpl<P,D,V,R,H> build(V pview, D pdata, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess)
P - presenter typeD - data type given to the serverV - view or widget which implements EditorWithErrorHandling interfaceR - rest result typeH - http messagespview - view of thepdata - data given from serverpsession - sessionpcallbackOnSuccess - on success callbackpublic static <P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages> RestCallbackImpl<P,D,V,R,H> build(V pview, D pdata, Session psession, H phttpMessage, AsyncCallbackOnSuccess<R> pcallbackOnSuccess)
P - presenter typeD - data type given to the serverV - view or widget which implements EditorWithErrorHandling interfaceR - rest result typeH - http messagespview - view of thepdata - data given from serverpsession - sessionphttpMessage - http code messages to showpcallbackOnSuccess - on success callbackpublic static <T extends User,V extends EditorWithErrorHandling<?,?>,M extends LoginMessages,H extends HttpMessages> LoginCallback<T,V,M,H> buildLoginCallback(V pview, Session psession)
T - user dataV - view or widget which implements EditorWithErrorHandling interfaceM - login messagesH - http messagespview - view of thepsession - sessionpublic static <T extends User,V extends EditorWithErrorHandling<?,?>,M extends LoginMessages,H extends HttpMessages> LoginCallback<T,V,M,H> buildLoginCallback(V pview, Session psession, M ploginErrorMessage)
T - user dataV - view or widget which implements EditorWithErrorHandling interfaceM - login messagesH - http messagespview - view of thepsession - sessionploginErrorMessage - error message to showpublic static <T extends User,V extends EditorWithErrorHandling<?,?>,M extends LoginMessages,H extends HttpMessages> LoginCallback<T,V,M,H> buildLoginCallback(V pview, Session psession, M ploginErrorMessage, H phttpMessage)
T - user dataV - view or widget which implements EditorWithErrorHandling interfaceM - login messagesH - http messagespview - view of thepsession - sessionploginErrorMessage - error message to showphttpMessage - http code messages to showCopyright © 2015–2018. All rights reserved.