|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ServerExchangeCallback
Called when a server request has completed.
Note: Implementers of these methods must use a
quick exit philosophy. Thus, they should perform their tasks
quickly and exit quickly because the next
ServerExchange will not start until this callback process is complete.
| Method Summary | ||
|---|---|---|
void |
requestFailure(ServerExchange exchange)
Called when the request resulted in a failure. |
|
void |
requestHalted()
Called when the request did not complete. |
|
void |
requestSuccess(ServerExchange exchange)
Called when the request was a success. |
|
| Method Detail |
|---|
void requestSuccess(ServerExchange exchange)
exchange - The exchange object. Needs to be typecast to the specific implementation
that is expected. For example if a GeocodeExchange is expected, the parameter
exchange should be typecast to GeocodeExchange.
GeocodeExchange geocode = (GeocodeExchange)exchange.void requestFailure(ServerExchange exchange)
ServerExchange list of exceptions for the cause
of the failure.
Needs to be type cast to the specific implementation that is expected. For example
if a GeocodeExchange is expected, the parameter exchange should be
typecast to GeocodeExchange.
GeocodeExchange geocode = (GeocodeExchange)exchange.
exchange - The exchange that failed.void requestHalted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal