Class PageSizeInterceptor


  • 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 Detail

      • 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 Detail

      • 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.