store average entry interval and use it to decide when to reschedule feed refresh when it returns 304

This commit is contained in:
Athou
2013-06-10 12:53:46 +02:00
parent 3cfc37c841
commit 2baa2bbfe5
6 changed files with 81 additions and 74 deletions

View File

@@ -82,7 +82,7 @@ public class PubSubHubbubCallbackREST {
try {
byte[] bytes = IOUtils.toByteArray(request.getInputStream());
FetchedFeed fetchedFeed = parser.parse(null, bytes);
String topic = fetchedFeed.getTopic();
String topic = fetchedFeed.getFeed().getPushTopic();
if (topic != null) {
log.debug("content callback received for {}", topic);
List<Feed> feeds = feedDAO.findByTopic(topic);