public class DomainCollectionRequest extends BaseCollectionRequest<DomainCollectionResponse,IDomainCollectionPage> implements IDomainCollectionRequest
| Constructor and Description |
|---|
DomainCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Domain
|
| Modifier and Type | Method and Description |
|---|---|
IDomainCollectionPage |
buildFromResponse(DomainCollectionResponse response) |
IDomainCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IDomainCollectionPage |
get() |
void |
get(ICallback<IDomainCollectionPage> callback) |
Domain |
post(Domain newDomain) |
void |
post(Domain newDomain,
ICallback<Domain> callback) |
IDomainCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IDomainCollectionRequest |
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 DomainCollectionRequest(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<IDomainCollectionPage> callback)
get in interface IDomainCollectionRequestpublic IDomainCollectionPage get() throws ClientException
get in interface IDomainCollectionRequestClientExceptionpublic void post(Domain newDomain, ICallback<Domain> callback)
post in interface IDomainCollectionRequestpublic Domain post(Domain newDomain) throws ClientException
post in interface IDomainCollectionRequestClientExceptionpublic IDomainCollectionRequest expand(java.lang.String value)
expand in interface IDomainCollectionRequestvalue - the expand clausepublic IDomainCollectionRequest select(java.lang.String value)
select in interface IDomainCollectionRequestvalue - the select clausepublic IDomainCollectionRequest top(int value)
top in interface IDomainCollectionRequestvalue - the max number of items to returnpublic IDomainCollectionPage buildFromResponse(DomainCollectionResponse response)