BBOS/src/bing/Bing.java
/**
	 * Perform an asynchronous search on the Bing API.
	 * @param query A string specifying the query to perform
	 * @param request A {@link BingRequest} object
	 * @param delegate An object implementing the receiveBingResponse selector
	 */
Perform an asynchronous search on the Bing API.
@param query A string specifying the query to perform
@param request A  BingRequest object
@param delegate An object implementing the receiveBingResponse selector
Perform an asynchronous search on the Bing API . @param query A string specifying the query to perform @param request A BingRequest object @param delegate An object implementing the receiveBingResponse selector
public synchronized void search(final String query, BingRequest request, BingAsyncRequestNotification delegate)
	{
		String requestURL = this.requestUrl(query, request);
		try
		{
			HttpConnection urlRequest = (HttpConnection)Connector.open(requestURL, Connector.READ_WRITE);
			BingAsyncRequest asyncDelegate = new BingAsyncRequest(delegate, this._resources
					, this.errorRet
					);
			System.out.println(format(_resources.getString(BingResource.SEARCH_ASYNC), new Object[]{ requestURL }));
			requestDataAsync(urlRequest, asyncDelegate);
		}
		catch(Exception e)
		{
			System.out.println(_resources.getString(BingResource.SEARCH_ERROR));
		}
	}
public synchronized void search ( final String query , BingRequest request , BingAsyncRequestNotification delegate ) { String requestURL = this . requestUrl ( query , request ) ; try { HttpConnection urlRequest = ( HttpConnection ) Connector . open ( requestURL , Connector . READ_WRITE ) ; BingAsyncRequest asyncDelegate = new BingAsyncRequest ( delegate , this . _resources , this . errorRet ) ; System . out . println ( format ( _resources . getString ( BingResource . SEARCH_ASYNC ) , new Object [ ] { requestURL } ) ) ; requestDataAsync ( urlRequest , asyncDelegate ) ; } catch ( Exception e ) { System . out . println ( _resources . getString ( BingResource . SEARCH_ERROR ) ) ; } }
Perform an asynchronous search on the Bing API.
Perform an asynchronous search on the Bing API .
//#ifdef BING_DEBUG
 //#endif
 //#ifdef BING_DEBUG
 //#endif
 //#ifdef BING_DEBUG
 //#endif
