Class AbstractRestCallback<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>
- 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>
- Direct Known Subclasses:
RestCallbackImpl
public abstract class AbstractRestCallback<P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages>
extends Object
implements com.gwtplatform.dispatch.rest.client.RestCallback<R>
Async callback implementation with error handling.
- Author:
- Manfred Tremmel
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRestCallback(V view, D data, Session session) constructor.protectedAbstractRestCallback(V view, D data, Session session, H httpMessage) constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract voidvoidsetResponse(com.google.gwt.http.client.Response response)
-
Field Details
-
view
-
data
-
session
-
-
Constructor Details
-
AbstractRestCallback
constructor.- Parameters:
view- viewdata- date to handlesession- session data
-
AbstractRestCallback
constructor.- Parameters:
view- viewdata- date to handlesession- session datahttpMessage- http code messages to show
-
-
Method Details
-
onFailure
- Specified by:
onFailurein interfacecom.google.gwt.user.client.rpc.AsyncCallback<P>
-
setResponse
public void setResponse(com.google.gwt.http.client.Response response) - Specified by:
setResponsein interfacecom.gwtplatform.dispatch.rest.client.RestCallback<P>
-
onSuccess
- Specified by:
onSuccessin interfacecom.google.gwt.user.client.rpc.AsyncCallback<P>
-