Class RestCallbackBuilder
java.lang.Object
de.knightsoftnet.gwtp.spring.client.rest.helper.RestCallbackBuilder
Async callback implementation with error handling.
- Author:
- Manfred Tremmel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <R> com.google.gwt.user.client.rpc.AsyncCallback<R>build(AsyncCallbackOnSuccess<R> pcallbackOnSuccess, AsyncCallbackOnFailure pcallbackOnFailure) create rest callback implementation.static <V extends HasShowMessage,R, H extends HttpMessages>
RestCallbackSimpleImpl<V,R, H> build(V pview, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) create rest callback implementation.static <V extends HasShowMessage,R, H extends HttpMessages>
RestCallbackSimpleImpl<V,R, H> build(V pview, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess, H phttpMessage) create rest callback implementation.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) create rest callback implementation.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) create rest callback implementation.static <T extends User,V extends EditorWithErrorHandling<?, ?>, M extends LoginMessages, H extends HttpMessages>
LoginCallback<T,V, M, H> buildLoginCallback(V pview, Session psession) create login callback implementation.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) create login callback implementation.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) create login callback implementation.
-
Constructor Details
-
RestCallbackBuilder
public RestCallbackBuilder()
-
-
Method Details
-
build
public static <R> com.google.gwt.user.client.rpc.AsyncCallback<R> build(AsyncCallbackOnSuccess<R> pcallbackOnSuccess, AsyncCallbackOnFailure pcallbackOnFailure) create rest callback implementation.- Type Parameters:
R- rest result type- Parameters:
pcallbackOnSuccess- on success callbackpcallbackOnFailure- on failure callback- Returns:
- RestCallbackImpl
-
build
public static <V extends HasShowMessage,R, RestCallbackSimpleImpl<V,H extends HttpMessages> R, buildH> (V pview, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) create rest callback implementation.- Type Parameters:
V- view or widget which implements EditorWithErrorHandling interfaceR- rest result typeH- http messages- Parameters:
pview- view of thepsession- sessionpcallbackOnSuccess- on success callback- Returns:
- RestCallbackImpl
-
build
public static <V extends HasShowMessage,R, RestCallbackSimpleImpl<V,H extends HttpMessages> R, buildH> (V pview, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess, H phttpMessage) create rest callback implementation.- Type Parameters:
V- view or widget which implements EditorWithErrorHandling interfaceR- rest result typeH- http messages- Parameters:
pview- view of thepsession- sessionpcallbackOnSuccess- on success callbackphttpMessage- http code messages to show- Returns:
- RestCallbackImpl
-
build
public static <P,D, RestCallbackImpl<P,V extends EditorWithErrorHandling<P, D>, R, H extends HttpMessages> D, buildV, R, H> (V pview, D pdata, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) create rest callback implementation.- Type Parameters:
P- presenter typeD- data type given to the serverV- view or widget which implements EditorWithErrorHandling interfaceR- rest result typeH- http messages- Parameters:
pview- view of thepdata- data given from serverpsession- sessionpcallbackOnSuccess- on success callback- Returns:
- RestCallbackImpl
-
build
public static <P,D, RestCallbackImpl<P,V extends EditorWithErrorHandling<P, D>, R, H extends HttpMessages> D, buildV, R, H> (V pview, D pdata, Session psession, H phttpMessage, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) create rest callback implementation.- Type Parameters:
P- presenter typeD- data type given to the serverV- view or widget which implements EditorWithErrorHandling interfaceR- rest result typeH- http messages- Parameters:
pview- view of thepdata- data given from serverpsession- sessionphttpMessage- http code messages to showpcallbackOnSuccess- on success callback- Returns:
- RestCallbackImpl
-
buildLoginCallback
public static <T extends User,V extends EditorWithErrorHandling<?, LoginCallback<T,?>, M extends LoginMessages, H extends HttpMessages> V, buildLoginCallbackM, H> (V pview, Session psession) create login callback implementation.- Type Parameters:
T- user dataV- view or widget which implements EditorWithErrorHandling interfaceM- login messagesH- http messages- Parameters:
pview- view of thepsession- session- Returns:
- LoginCallback
-
buildLoginCallback
public static <T extends User,V extends EditorWithErrorHandling<?, LoginCallback<T,?>, M extends LoginMessages, H extends HttpMessages> V, buildLoginCallbackM, H> (V pview, Session psession, M ploginErrorMessage) create login callback implementation.- Type Parameters:
T- user dataV- view or widget which implements EditorWithErrorHandling interfaceM- login messagesH- http messages- Parameters:
pview- view of thepsession- sessionploginErrorMessage- error message to show- Returns:
- LoginCallback
-
buildLoginCallback
public static <T extends User,V extends EditorWithErrorHandling<?, LoginCallback<T,?>, M extends LoginMessages, H extends HttpMessages> V, buildLoginCallbackM, H> (V pview, Session psession, M ploginErrorMessage, H phttpMessage) create login callback implementation.- Type Parameters:
T- user dataV- view or widget which implements EditorWithErrorHandling interfaceM- login messagesH- http messages- Parameters:
pview- view of thepsession- sessionploginErrorMessage- error message to showphttpMessage- http code messages to show- Returns:
- LoginCallback
-