/** * 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())); }
theTotalRecordsOnPage = this.getTotalRecordsOnPage(); strategy.appendField(locator, this, "totalRecordsOnPage", buffer, theTotalRecordsOnPage, (this.totalRecordsOnPage!= null));
lhsTotalRecordsOnPage = this.getTotalRecordsOnPage(); Long rhsTotalRecordsOnPage; rhsTotalRecordsOnPage = that.getTotalRecordsOnPage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "totalRecordsOnPage", lhsTotalRecordsOnPage), LocatorUtils.property(thatLocator, "totalRecordsOnPage", rhsTotalRecordsOnPage), lhsTotalRecordsOnPage, rhsTotalRecordsOnPage, (this.totalRecordsOnPage!= null), (that.totalRecordsOnPage!= null))) { return false;
theTotalRecordsOnPage = this.getTotalRecordsOnPage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalRecordsOnPage", theTotalRecordsOnPage), currentHashCode, theTotalRecordsOnPage, (this.totalRecordsOnPage!= null));
if (totalRecordsOnPageShouldBeCopiedAndSet == Boolean.TRUE) { Long sourceTotalRecordsOnPage; sourceTotalRecordsOnPage = this.getTotalRecordsOnPage(); Long copyTotalRecordsOnPage = ((Long) strategy.copy(LocatorUtils.property(locator, "totalRecordsOnPage", sourceTotalRecordsOnPage), sourceTotalRecordsOnPage, (this.totalRecordsOnPage!= null))); copy.setTotalRecordsOnPage(copyTotalRecordsOnPage);