bing.requests
Class BingPhonebookRequest

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

public class BingPhonebookRequest
extends BingRequest

Request object to be used when requesting phonebook/local results.


Field Summary
static java.lang.String PHONEBOOK_SORT_OPTION_DEFAULT
           
static java.lang.String PHONEBOOK_SORT_OPTION_DISTANCE
           
static java.lang.String PHONEBOOK_SORT_OPTION_RELEVANCE
           
 
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
BingPhonebookRequest()
           
 
Method Summary
 java.lang.String requestOptions()
          Specifies request specific options to be passed to the API
 void setCount(long count)
           
 void setFileType(java.lang.String filetype)
           
 void setLocId(java.lang.String locId)
           
 void setOffset(long offset)
           
 void setSortBy(java.lang.String sortby)
           
 java.lang.String sourceType()
          Specifies the source type of the current request object.
 
Methods inherited from class bing.requests.BingRequest
hashCode, removeParentOptions, setAdult, setLanguage, setLatitude, setLongitude, setMarket, setOptions, setRadius, setVersion, toString
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PHONEBOOK_SORT_OPTION_DEFAULT

public static final java.lang.String PHONEBOOK_SORT_OPTION_DEFAULT
See Also:
Constant Field Values

PHONEBOOK_SORT_OPTION_DISTANCE

public static final java.lang.String PHONEBOOK_SORT_OPTION_DISTANCE
See Also:
Constant Field Values

PHONEBOOK_SORT_OPTION_RELEVANCE

public static final java.lang.String PHONEBOOK_SORT_OPTION_RELEVANCE
See Also:
Constant Field Values
Constructor Detail

BingPhonebookRequest

public BingPhonebookRequest()
Method Detail

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

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.

setCount

public void setCount(long count)

setOffset

public void setOffset(long offset)

setFileType

public void setFileType(java.lang.String filetype)

setLocId

public void setLocId(java.lang.String locId)

setSortBy

public void setSortBy(java.lang.String sortby)
Parameters:
sortby - One of the PHONEBOOK_SORT_OPTION_ options.