|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the generic typepublic interface Callback<T>
The Interface Callback is passed to most Connector calls. When passed into a Connector's methods, these callback objects will be called back in either the successful case or the failure case. In the case of success, the an object of type T is returned to the callback. In the case of a failure, both a failure status code and an error message is passed to the callback object.
Method Summary | |
---|---|
void |
failure(int statusCode,
String errorMessage)
Failure. |
void |
success(T responseObject)
Success. |
Method Detail |
---|
void success(T responseObject)
responseObject
- the response objectvoid failure(int statusCode, String errorMessage)
statusCode
- the status codeerrorMessage
- the error message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |