Class RestCallbackImpl<P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages>
java.lang.Object
de.knightsoftnet.gwtp.spring.client.rest.helper.AbstractRestCallback<P,D,V,R,H>
de.knightsoftnet.gwtp.spring.client.rest.helper.RestCallbackImpl<P,D,V,R,H>
- Type Parameters:
P- presenter typeD- data type given to the serverV- view or widget which implements EditorWithErrorHandling interfaceR- rest result typeH- http response message type
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.AsyncCallback<R>,com.gwtplatform.dispatch.rest.client.RestCallback<R>
public class RestCallbackImpl<P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages>
extends AbstractRestCallback<P,D,V,R,H>
Async callback implementation with error handling.
- Author:
- Manfred Tremmel
-
Field Summary
Fields inherited from class de.knightsoftnet.gwtp.spring.client.rest.helper.AbstractRestCallback
data, session, view -
Constructor Summary
ConstructorsConstructorDescriptionRestCallbackImpl(V pview, D pdata, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) constructor.RestCallbackImpl(V pview, D pdata, Session psession, H phttpMessage, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) constructor. -
Method Summary
Methods inherited from class de.knightsoftnet.gwtp.spring.client.rest.helper.AbstractRestCallback
onFailure, setResponse
-
Constructor Details
-
RestCallbackImpl
public RestCallbackImpl(V pview, D pdata, Session psession, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) constructor.- Parameters:
pview- viewpdata- date to handlepsession- session datapcallbackOnSuccess- async callback which is called on success
-
RestCallbackImpl
public RestCallbackImpl(V pview, D pdata, Session psession, H phttpMessage, AsyncCallbackOnSuccess<R> pcallbackOnSuccess) constructor.- Parameters:
pview- viewpdata- date to handlepsession- session dataphttpMessage- http messagepcallbackOnSuccess- async callback which is called on success
-
-
Method Details
-
onSuccess
- Specified by:
onSuccessin interfacecom.google.gwt.user.client.rpc.AsyncCallback<P>- Specified by:
onSuccessin classAbstractRestCallback<P,D, V extends EditorWithErrorHandling<P, D>, R, H extends HttpMessages>
-