/** * Sets HTTP headers to HTTP servlet response per specified paging information. * * @param httpServletResponse the HTTP servlet response * @param pagingInfo the paging information DTO */ protected void addPagingHttpHeaders(HttpServletResponse httpServletResponse, PagingInfoDto pagingInfo) { httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_NUM, String.valueOf(pagingInfo.getPageNum())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_SIZE, String.valueOf(pagingInfo.getPageSize())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_COUNT, String.valueOf(pagingInfo.getPageCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORDS_ON_PAGE, String.valueOf(pagingInfo.getTotalRecordsOnPage())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORD_COUNT, String.valueOf(pagingInfo.getTotalRecordCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_MAX_RESULTS_PER_PAGE, String.valueOf(pagingInfo.getMaxResultsPerPage())); }
/** * Sets HTTP headers to HTTP servlet response per specified paging information. * * @param httpServletResponse the HTTP servlet response * @param pagingInfo the paging information DTO */ protected void addPagingHttpHeaders(HttpServletResponse httpServletResponse, PagingInfoDto pagingInfo) { httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_NUM, String.valueOf(pagingInfo.getPageNum())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_SIZE, String.valueOf(pagingInfo.getPageSize())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_COUNT, String.valueOf(pagingInfo.getPageCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORDS_ON_PAGE, String.valueOf(pagingInfo.getTotalRecordsOnPage())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORD_COUNT, String.valueOf(pagingInfo.getTotalRecordCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_MAX_RESULTS_PER_PAGE, String.valueOf(pagingInfo.getMaxResultsPerPage())); }
thePageCount = this.getPageCount(); strategy.appendField(locator, this, "pageCount", buffer, thePageCount, (this.pageCount!= null));
lhsPageCount = this.getPageCount(); Long rhsPageCount; rhsPageCount = that.getPageCount(); if (!strategy.equals(LocatorUtils.property(thisLocator, "pageCount", lhsPageCount), LocatorUtils.property(thatLocator, "pageCount", rhsPageCount), lhsPageCount, rhsPageCount, (this.pageCount!= null), (that.pageCount!= null))) { return false;
thePageCount = this.getPageCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pageCount", thePageCount), currentHashCode, thePageCount, (this.pageCount!= null));
if (pageCountShouldBeCopiedAndSet == Boolean.TRUE) { Long sourcePageCount; sourcePageCount = this.getPageCount(); Long copyPageCount = ((Long) strategy.copy(LocatorUtils.property(locator, "pageCount", sourcePageCount), sourcePageCount, (this.pageCount!= null))); copy.setPageCount(copyPageCount);