bing.common
Class BingAsyncRequest

java.lang.Object
  extended by bing.common.BingAsyncRequest
All Implemented Interfaces:
java.lang.Runnable

public class BingAsyncRequest
extends java.lang.Object
implements java.lang.Runnable

Used internally


Constructor Summary
BingAsyncRequest(BingAsyncRequestNotification theDelegate, net.rim.device.api.i18n.ResourceBundle resource, boolean returnError)
          Initialize the async request with a delegate
 
Method Summary
 void onData(byte[] data)
           
 void onError(java.lang.Exception e)
           
 void onFinish()
           
 void onResponse(int dataSize)
           
 void run()
           
 void setCon(HttpConnection con)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BingAsyncRequest

public BingAsyncRequest(BingAsyncRequestNotification theDelegate,
                        net.rim.device.api.i18n.ResourceBundle resource,
                        boolean returnError)
Initialize the async request with a delegate

Parameters:
theDelegate - A delegate which will get called with a BingResponse when the request completes.
Method Detail

setCon

public void setCon(HttpConnection con)

run

public void run()
Specified by:
run in interface java.lang.Runnable

onResponse

public void onResponse(int dataSize)

onData

public void onData(byte[] data)

onError

public void onError(java.lang.Exception e)

onFinish

public void onFinish()