net.rim.device.api.lbs.maps.server
Interface ServerExchangeCallback


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.

Since:
BlackBerry API 7.0.0

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

requestSuccess

void requestSuccess(ServerExchange exchange)
Called when the request was a success.

Parameters:
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.
Since:
BlackBerry API 7.0.0

requestFailure

void requestFailure(ServerExchange exchange)
Called when the request resulted in a failure. Either an exception was raised, invalid parameters were provided, connections were unable to be created, or more. See the 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.

Parameters:
exchange - The exchange that failed.
Since:
BlackBerry API 7.0.0

requestHalted

void requestHalted()
Called when the request did not complete. This could be because the request was replaced by a later request.

Since:
BlackBerry API 7.0.0





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