-1

java中是否有PubSubHubbub Server而不是发布者实现?

4

1 回答 1

-2

看看这个。用 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
    }
} );
于 2012-10-04T18:41:19.577 回答