Is there a PubSubHubbub Server not publisher implementation in java?
Asked
Active
Viewed 1,635 times
-1
-
Have you tried to ask google with "PubSubHubbub java"? I get matches... – arkascha Oct 04 '12 at 18:24
-
I meant the hub server implementation in java not the client side (publisher or subscriber) – Sean Nguyen Oct 04 '12 at 18:36
1 Answers
-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