BaseDeltaCollectionRequest<T,T2,T3> Class

Type Parameters

T

the type of the object in the collection

T2

the response collection type

T3

the collection page type

public abstract class BaseDeltaCollectionRequest<T,T2,T3>
extends BaseFunctionCollectionRequest<T,T2,T3>

A request against a collection bound function

Constructor Summary

Constructor Description
BaseDeltaCollectionRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> options, Class<T2> responseCollectionClass, Class<T3> collectionPageClass, Class<? extends BaseCollectionRequestBuilder<T,? extends BaseRequestBuilder<T>,T2,T3,? extends BaseCollectionRequest<T,T2,T3>>> collectionRequestBuilderClass)

Create the collection request

Method Summary

Modifier and Type Method and Description
protected void addDeltaTokenOption(String value, String optionKey)

Adds the delta token query string value for the request

protected java.lang.String getDeltaTokenFromLink(String deltaLink)

Gets the delta token from the delta link provided by the previous response

Methods inherited from BaseCollectionRequest

Methods inherited from BaseFunctionCollectionRequest

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BaseDeltaCollectionRequest

public BaseDeltaCollectionRequest(String requestUrl, IBaseClient client, List options, Class responseCollectionClass, Class collectionPageClass, Class,T2,T3,? extends BaseCollectionRequest>> collectionRequestBuilderClass)

Create the collection request

Parameters:

requestUrl - the URL to make the request against
client - the client which can issue the request
options - the options for this request
responseCollectionClass - the class for the response collection
collectionPageClass - the class for the collection page
collectionRequestBuilderClass - the class for the collection request builder

Method Details

addDeltaTokenOption

protected void addDeltaTokenOption(String value, String optionKey)

Adds the delta token query string value for the request

Parameters:

value -
  • The token
optionKey -
  • the key to use for the query string parameter

getDeltaTokenFromLink

protected String getDeltaTokenFromLink(String deltaLink)

Gets the delta token from the delta link provided by the previous response

Parameters:

deltaLink - the delta link provided by the previous request

Returns:

the delta token

Applies to