bing.requests
Class BingBundleRequest

java.lang.Object
  extended by bing.requests.BingRequest
      extended by bing.requests.BingBundleRequest

public class BingBundleRequest
extends BingRequest

A bundle request object has the ability to "bundle" together several different request types at once. This allows a client application to send a single HTTP request for multiple, different request types.


Field Summary
 
Fields inherited from class bing.requests.BingRequest
ADULT_OPTIONS_MODERATE, ADULT_OPTIONS_OFF, ADULT_OPTIONS_STRICT, DEFAULT_API_VERSION, DEFAULT_SEARCH_MARKET, OPTION_SEPERATOR, SEARCH_OPTIONS_DISABLE_LOCATION_DETECTION, SEARCH_OPTIONS_ENABLE_HIGHLIGHTING, SEARCH_OPTIONS_SEPERATOR
 
Constructor Summary
BingBundleRequest()
          Initialize the bundle with a list of requests.
BingBundleRequest(BingRequest[] requests)
          Initialize the bundle with a list of requests.
 
Method Summary
 void addRequest(BingRequest request)
          Add a BingRequest object to this bundle.
 int hashCode()
           
 java.lang.String requestOptions()
          Specifies request specific options to be passed to the API
 java.lang.String sourceType()
          Specifies the source type of the current request object.
 
Methods inherited from class bing.requests.BingRequest
removeParentOptions, setAdult, setLanguage, setLatitude, setLongitude, setMarket, setOptions, setRadius, setVersion, toString
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BingBundleRequest

public BingBundleRequest()
Initialize the bundle with a list of requests.


BingBundleRequest

public BingBundleRequest(BingRequest[] requests)
Initialize the bundle with a list of requests.

Parameters:
requests - A list of BingRequest objects
Method Detail

addRequest

public void addRequest(BingRequest request)
Add a BingRequest object to this bundle. The request will be retained.

Parameters:
request - A new BingRequest object to be added to the request

sourceType

public java.lang.String sourceType()
Description copied from class: BingRequest
Specifies the source type of the current request object.

Specified by:
sourceType in class BingRequest
Returns:
A string representing the source type of the current object.

requestOptions

public java.lang.String requestOptions()
Description copied from class: BingRequest
Specifies request specific options to be passed to the API

Overrides:
requestOptions in class BingRequest
Returns:
A string representing the various set API parameters

hashCode

public int hashCode()
Overrides:
hashCode in class BingRequest