BBOS/src/bing/Bing.java
/**
	 * Generates the URL to use in order to query the Bing API with.
	 * @param query A string specifying the query to perform
	 * @param request A BingRequest object
	 * @return A string representing the URL to use in querying the Bing API
	 */
Generates the URL to use in order to query the Bing API with.
@param query A string specifying the query to perform
@param request A BingRequest object
@return A string representing the URL to use in querying the Bing API
Generates the URL to use in order to query the Bing API with . @param query A string specifying the query to perform @param request A BingRequest object @return A string representing the URL to use in querying the Bing API
public static String requestUrl(final String query, BingRequest request)
	{
		StringBuffer requestURL = new StringBuffer(format("{0}{1}Query=%27{2}%27&$format=ATOM", 
				new Object[]{ BING_URL, request.sourceType(), encodeUrl(query) }));
		String requestOptions = request.requestOptions();
		if (requestOptions != null)
		{
			requestURL.append(requestOptions);
		}
		return requestURL.toString();
	}
public static String requestUrl ( final String query , BingRequest request ) { StringBuffer requestURL = new StringBuffer ( format ( "{0}{1}Query=%27{2}%27&$format=ATOM" , new Object [ ] { BING_URL , request . sourceType ( ) , encodeUrl ( query ) } ) ) ; String requestOptions = request . requestOptions ( ) ; if ( requestOptions != null ) { requestURL . append ( requestOptions ) ; } return requestURL . toString ( ) ; }
Generates the URL to use in order to query the Bing API with.
Generates the URL to use in order to query the Bing API with .