-1

Is there a PubSubHubbub Server not publisher implementation in java?

Chris Seymour
  • 83,387
  • 30
  • 160
  • 202
Sean Nguyen
  • 12,528
  • 22
  • 74
  • 113

1 Answers1

-2

Check this out. A straight-forward subscriber implementation written in Java for the PubSubHubBub 0.3 protocol.

Usage:

Subscriber subscriber = new SubscriberImpl("subscriber-host",8888);
Subscription subscription = subscriber.subscribe(URI.create("http://feed-host/my-push-enabled-feed.xml"));

subscription.setNotificationCallback(new NotificationCallback()
{

    @Override
    public void handle(SyndFeed feed)
    {
        //TODO: Do something with the feed
    }
} );
Anshu
  • 7,783
  • 5
  • 31
  • 41
  • Do you know a hub server (not the publisher) implementation in java? – Sean Nguyen Oct 04 '12 at 18:45
  • Have you checked http://code.google.com/p/pubsubhubbub-java/ ? and https://code.google.com/p/pubsubhubbub/ – Anshu Oct 04 '12 at 18:50
  • code.google.com/p/pubsubhubbub-java has only publisher and subscriber not the hub. From the wiki https://code.google.com/p/pubsubhubbub/wiki/Hubs, it doesn't have java implementation of hub – Sean Nguyen Oct 04 '12 at 18:56