在java中是否有PubSubHubbub服务器而不是发布者实现?
答案 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
}
} );