// modified before the given date. Logically, we only care about those
// entries that were modified recently.
query.setUpdatedMin(ifModifiedSince);
}
Feed feed = null;
try {
feed = (Feed) service.query(query, Feed.class, ifModifiedSince);
} catch (NotModifiedException nme) {
// excellent! no work to do
return new LinkedList();
} catch (ServiceException se) {
LOGGER.severe(se.toString());
throw new RepositoryException(se);
} catch (IOException ioe) {
LOGGER.severe(ioe.toString());
throw new RepositoryException(ioe);
}
List entries = feed.getEntries();
Collections.sort(entries, comparator);
Entry lastEntry = (Entry) entries.get(entries.size() - 1);
lastEntryId = lastEntry.getId();
lastEntryCheckpoint = fetchTime.toString() + "!" + lastEntryId;