PageSizeInterceptor Class

public class PageSizeInterceptor extends RequestInterceptor

Interceptor which contains a function used to set the maximum page size of a request. If there are multiple instances of this then the last set wins.

Constructor Summary

Constructor Description
PageSizeInterceptor(int pageSize)

Initializes a new PageSizeInterceptor for setting maximum page size of a request.

Method Summary

Modifier and Type Method and Description
int maxResults()

Gets the maximum number of items applied by this PageSizeInterceptor instance.

Inherited Members

Constructor Details

PageSizeInterceptor

public PageSizeInterceptor(int pageSize)

Initializes a new PageSizeInterceptor for setting maximum page size of a request.

Parameters:

pageSize - The maximum number of items to return in a response.

Method Details

maxResults

public int maxResults()

Gets the maximum number of items applied by this PageSizeInterceptor instance.

Returns:

The maximum number of items to return in a response.

Applies to