public class SiteCollectionRequest extends BaseCollectionRequest<SiteCollectionResponse,ISiteCollectionPage> implements ISiteCollectionRequest
| Constructor and Description |
|---|
SiteCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Site
|
| Modifier and Type | Method and Description |
|---|---|
ISiteCollectionPage |
buildFromResponse(SiteCollectionResponse response) |
ISiteCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ISiteCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
ISiteCollectionPage |
get() |
void |
get(ICallback<? super ISiteCollectionPage> callback) |
ISiteCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Site |
post(Site newSite) |
void |
post(Site newSite,
ICallback<? super Site> callback) |
ISiteCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ISiteCollectionRequest |
skip(int value)
Sets the skip value for the request
|
ISiteCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
ISiteCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic SiteCollectionRequest(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<? super ISiteCollectionPage> callback)
get in interface ISiteCollectionRequestpublic ISiteCollectionPage get() throws ClientException
get in interface ISiteCollectionRequestClientExceptionpublic void post(Site newSite, ICallback<? super Site> callback)
post in interface ISiteCollectionRequestpublic Site post(Site newSite) throws ClientException
post in interface ISiteCollectionRequestClientExceptionpublic ISiteCollectionRequest expand(java.lang.String value)
expand in interface ISiteCollectionRequestvalue - the expand clausepublic ISiteCollectionRequest filter(java.lang.String value)
filter in interface ISiteCollectionRequestvalue - the filter clausepublic ISiteCollectionRequest orderBy(java.lang.String value)
orderBy in interface ISiteCollectionRequestvalue - the order by clausepublic ISiteCollectionRequest select(java.lang.String value)
select in interface ISiteCollectionRequestvalue - the select clausepublic ISiteCollectionRequest top(int value)
top in interface ISiteCollectionRequestvalue - the max number of items to returnpublic ISiteCollectionRequest skip(int value)
skip in interface ISiteCollectionRequestvalue - of the number of items to skippublic ISiteCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface ISiteCollectionRequestskipToken - - Token for paginationpublic ISiteCollectionPage buildFromResponse(SiteCollectionResponse response)