V - view or widget which implements HasShowMessage interfaceR - rest result typeH - http response message typepublic abstract class AbstractSimpleRestCallback<V extends HasShowMessage,R,H extends HttpMessages> extends Object implements com.gwtplatform.dispatch.rest.client.RestCallback<R>
| Modifier and Type | Field and Description |
|---|---|
protected Session |
session |
protected V |
view |
| Constructor and Description |
|---|
AbstractSimpleRestCallback(V pview,
Session psession)
constructor.
|
AbstractSimpleRestCallback(V pview,
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 HasShowMessage view
protected final Session session
public AbstractSimpleRestCallback(V pview, Session psession)
pview - viewpsession - 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.