public class ContractCollectionRequest extends BaseCollectionRequest<ContractCollectionResponse,IContractCollectionPage> implements IContractCollectionRequest
| Constructor and Description |
|---|
ContractCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Contract
|
| Modifier and Type | Method and Description |
|---|---|
IContractCollectionPage |
buildFromResponse(ContractCollectionResponse response) |
IContractCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IContractCollectionPage |
get() |
void |
get(ICallback<IContractCollectionPage> callback) |
Contract |
post(Contract newContract) |
void |
post(Contract newContract,
ICallback<Contract> callback) |
IContractCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IContractCollectionRequest |
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 ContractCollectionRequest(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<IContractCollectionPage> callback)
get in interface IContractCollectionRequestpublic IContractCollectionPage get() throws ClientException
get in interface IContractCollectionRequestClientExceptionpublic void post(Contract newContract, ICallback<Contract> callback)
post in interface IContractCollectionRequestpublic Contract post(Contract newContract) throws ClientException
post in interface IContractCollectionRequestClientExceptionpublic IContractCollectionRequest expand(java.lang.String value)
expand in interface IContractCollectionRequestvalue - the expand clausepublic IContractCollectionRequest select(java.lang.String value)
select in interface IContractCollectionRequestvalue - the select clausepublic IContractCollectionRequest top(int value)
top in interface IContractCollectionRequestvalue - the max number of items to returnpublic IContractCollectionPage buildFromResponse(ContractCollectionResponse response)