java中是否有PubSubHubbub Server实现?

时间:2012-10-04 18:19:34

标签: pubsubhubbub

在java中是否有PubSubHubbub服务器而不是发布者实现?

1 个答案:

答案 0 :(得分:-2)

检查this。用Java编写的PubSubHubBub 0.3协议的直接订户实现。

用法:

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
    }
} );