public class ListItemCollectionRequest extends BaseCollectionRequest<ListItemCollectionResponse,IListItemCollectionPage> implements IListItemCollectionRequest
| Constructor and Description |
|---|
ListItemCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of ListItem
|
| Modifier and Type | Method and Description |
|---|---|
IListItemCollectionPage |
buildFromResponse(ListItemCollectionResponse response) |
IListItemCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IListItemCollectionPage |
get() |
void |
get(ICallback<IListItemCollectionPage> callback) |
ListItem |
post(ListItem newListItem) |
void |
post(ListItem newListItem,
ICallback<ListItem> callback) |
IListItemCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IListItemCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic ListItemCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<IListItemCollectionPage> callback)
get in interface IListItemCollectionRequestpublic IListItemCollectionPage get() throws ClientException
get in interface IListItemCollectionRequestClientExceptionpublic void post(ListItem newListItem, ICallback<ListItem> callback)
post in interface IListItemCollectionRequestpublic ListItem post(ListItem newListItem) throws ClientException
post in interface IListItemCollectionRequestClientExceptionpublic IListItemCollectionRequest expand(java.lang.String value)
expand in interface IListItemCollectionRequestvalue - the expand clausepublic IListItemCollectionRequest select(java.lang.String value)
select in interface IListItemCollectionRequestvalue - the select clausepublic IListItemCollectionRequest top(int value)
top in interface IListItemCollectionRequestvalue - the max number of items to returnpublic IListItemCollectionPage buildFromResponse(ListItemCollectionResponse response)