bing.requests
Class BingWebRequest
java.lang.Object
bing.requests.BingRequest
bing.requests.BingWebRequest
public class BingWebRequest
- extends BingRequest
Request object to be used when requesting web results.
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 |
setOffset(long offset)
|
void |
setWebOptions(java.lang.String options)
|
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 |
WEB_SEARCH_OPTIONS_SEPERATOR
public static final java.lang.String WEB_SEARCH_OPTIONS_SEPERATOR
- See Also:
- Constant Field Values
WEB_SEARCH_OPTIONS_DISABLE_HOST_COLLAPSING
public static final java.lang.String WEB_SEARCH_OPTIONS_DISABLE_HOST_COLLAPSING
- See Also:
- Constant Field Values
WEB_SEARCH_OPTIONS_DISABLE_QUERY_ALTERATIONS
public static final java.lang.String WEB_SEARCH_OPTIONS_DISABLE_QUERY_ALTERATIONS
- See Also:
- Constant Field Values
BingWebRequest
public BingWebRequest()
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
setCount
public void setCount(long count)
setFileType
public void setFileType(java.lang.String fileType)
setOffset
public void setOffset(long offset)
setWebOptions
public void setWebOptions(java.lang.String options)
- Parameters:
options
- One or more combinations of the WEB_SEARCH_OPTIONS_ options separated by WEB_SEARCH_OPTIONS_SEPERATOR.