public class PersonCollectionRequest extends BaseCollectionRequest<PersonCollectionResponse,IPersonCollectionPage> implements IPersonCollectionRequest
| Constructor and Description |
|---|
PersonCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Person
|
| Modifier and Type | Method and Description |
|---|---|
IPersonCollectionPage |
buildFromResponse(PersonCollectionResponse response) |
IPersonCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IPersonCollectionPage |
get() |
void |
get(ICallback<IPersonCollectionPage> callback) |
Person |
post(Person newPerson) |
void |
post(Person newPerson,
ICallback<Person> callback) |
IPersonCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPersonCollectionRequest |
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 PersonCollectionRequest(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<IPersonCollectionPage> callback)
get in interface IPersonCollectionRequestpublic IPersonCollectionPage get() throws ClientException
get in interface IPersonCollectionRequestClientExceptionpublic void post(Person newPerson, ICallback<Person> callback)
post in interface IPersonCollectionRequestpublic Person post(Person newPerson) throws ClientException
post in interface IPersonCollectionRequestClientExceptionpublic IPersonCollectionRequest expand(java.lang.String value)
expand in interface IPersonCollectionRequestvalue - the expand clausepublic IPersonCollectionRequest select(java.lang.String value)
select in interface IPersonCollectionRequestvalue - the select clausepublic IPersonCollectionRequest top(int value)
top in interface IPersonCollectionRequestvalue - the max number of items to returnpublic IPersonCollectionPage buildFromResponse(PersonCollectionResponse response)