}
@Override
@SuppressWarnings("rawtypes")
public void postProcess(ServerResponse response) {
Page page = ResteasyProviderFactory.getContextData(Page.class);
if (page == null) {
log.warn("Method marked for pagination, but no page exists in the context.");
return;
}
// If we aren't paging, then no need for Link headers.
if (page.getPageRequest() == null || !page.getPageRequest().isPaging()) {
return;
}
HttpServletRequest request = ResteasyProviderFactory.getContextData(
HttpServletRequest.class);