protected void setDefaultEntryProperties(Entry entry, List<LogRecord> rs, int entryIndex) {
super.setDefaultEntryProperties(entry, rs, entryIndex);
UriBuilder builder = context.getUriInfo().getAbsolutePathBuilder().path("entry");
Integer realIndex = page == 1 ? entryIndex : page * pageSize + entryIndex;
entry.addLink(builder.clone().path(realIndex.toString()).build().toString(), "self");
entry.addLink(builder.path("alternate").path(realIndex.toString()).build().toString(),
"alternate");
}
}