P - presenter typeD - data type given to the serverV - view or widget which implements EditorWithErrorHandling interfaceR - rest result typeH - http response message typepublic abstract class AbstractRestCallback<P,D,V extends EditorWithErrorHandling<P,D>,R,H extends HttpMessages> extends Object implements com.gwtplatform.dispatch.rest.client.RestCallback<R>
| Modifier and Type | Field and Description |
|---|---|
protected D |
data |
protected Session |
session |
protected V |
view |
| Constructor and Description |
|---|
AbstractRestCallback(V pview,
D pdata,
Session psession)
constructor.
|
AbstractRestCallback(V pview,
D pdata,
Session psession,
H phttpMessage)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable pcaught) |
abstract void |
onSuccess(R presult) |
void |
setResponse(com.google.gwt.http.client.Response presponse) |
protected final V extends EditorWithErrorHandling<P,D> view
protected final D data
protected final Session session
public AbstractRestCallback(V pview, D pdata, Session psession)
pview - viewpdata - date to handlepsession - session datapublic void onFailure(Throwable pcaught)
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<R>public void setResponse(com.google.gwt.http.client.Response presponse)
setResponse in interface com.gwtplatform.dispatch.rest.client.RestCallback<R>Copyright © 2015–2018. All rights reserved.