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, getHeaders, getHttpMethod, getOptions, getRequestUrl, getUseCaches, post, send, setUseCaches
public 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 ISiteCollectionRequest
public ISiteCollectionPage get() throws ClientException
get
in interface ISiteCollectionRequest
ClientException
public void post(Site newSite, ICallback<Site> callback)
post
in interface ISiteCollectionRequest
public Site post(Site newSite) throws ClientException
post
in interface ISiteCollectionRequest
ClientException
public ISiteCollectionRequest expand(java.lang.String value)
expand
in interface ISiteCollectionRequest
value
- the expand clausepublic ISiteCollectionRequest select(java.lang.String value)
select
in interface ISiteCollectionRequest
value
- the select clausepublic ISiteCollectionRequest top(int value)
top
in interface ISiteCollectionRequest
value
- the max number of items to returnpublic ISiteCollectionPage buildFromResponse(SiteCollectionResponse response)