Class AbstractSimpleRestCallback<V extends HasShowMessage,R,H extends HttpMessages>
java.lang.Object
de.knightsoftnet.gwtp.spring.client.rest.helper.AbstractSimpleRestCallback<V,R,H>
- Type Parameters:
V- view or widget which implements HasShowMessage 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:
RestCallbackSimpleImpl
public abstract class AbstractSimpleRestCallback<V extends HasShowMessage,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
ConstructorsModifierConstructorDescriptionprotectedAbstractSimpleRestCallback(V pview, Session psession) constructor.protectedAbstractSimpleRestCallback(V pview, Session psession, H phttpMessage) constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract voidvoidsetResponse(com.google.gwt.http.client.Response presponse)
-
Field Details
-
view
-
session
-
-
Constructor Details
-
AbstractSimpleRestCallback
constructor.- Parameters:
pview- viewpsession- session data
-
AbstractSimpleRestCallback
constructor.- Parameters:
pview- viewpsession- session dataphttpMessage- http code messages to show
-
-
Method Details
-
onFailure
- Specified by:
onFailurein interfacecom.google.gwt.user.client.rpc.AsyncCallback<V extends HasShowMessage>
-
setResponse
public void setResponse(com.google.gwt.http.client.Response presponse) - Specified by:
setResponsein interfacecom.gwtplatform.dispatch.rest.client.RestCallback<V extends HasShowMessage>
-
onSuccess
- Specified by:
onSuccessin interfacecom.google.gwt.user.client.rpc.AsyncCallback<V extends HasShowMessage>
-