Class OffsetBasedPagination


  • public class OffsetBasedPagination
    extends java.lang.Object
    Offset-based pagination using HTTP Headers
    • Constructor Detail

      • OffsetBasedPagination

        public OffsetBasedPagination()
        Empty Pagination Constructor
      • OffsetBasedPagination

        public OffsetBasedPagination​(javax.servlet.http.HttpServletRequest request)
                              throws VitamException
        Parameters:
        request -
        Throws:
        VitamException
      • OffsetBasedPagination

        public OffsetBasedPagination​(int offset,
                                     int limit)
        Parameters:
        offset -
        limit -
      • OffsetBasedPagination

        public OffsetBasedPagination​(int offset,
                                     int limit,
                                     int total)
        Parameters:
        offset -
        limit -
        total -
    • Method Detail

      • getOffset

        public int getOffset()
        Returns:
        the offset
      • setOffset

        public OffsetBasedPagination setOffset​(int offset)
        Parameters:
        offset - the offset to set
        Returns:
        this
      • getLimit

        public int getLimit()
        Returns:
        the limit
      • setLimit

        public OffsetBasedPagination setLimit​(int limit)
        Parameters:
        limit - the limit to set
        Returns:
        this
      • getTotal

        public int getTotal()
        Returns:
        the total
      • setTotal

        public OffsetBasedPagination setTotal​(int total)
        Parameters:
        total - the total to set
        Returns:
        this