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
|
ISiteCollectionPage |
get() |
void |
get(ICallback<ISiteCollectionPage> callback) |
Site |
post(Site newSite) |
void |
post(Site newSite,
ICallback<Site> callback) |
ISiteCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ISiteCollectionRequest |
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 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<ISiteCollectionPage> callback)
get in interface ISiteCollectionRequestpublic ISiteCollectionPage get() throws ClientException
get in interface ISiteCollectionRequestClientExceptionpublic void post(Site newSite, ICallback<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 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 ISiteCollectionPage buildFromResponse(SiteCollectionResponse response)