java中是否有PubSubHubbub Server而不是发布者实现?
问问题
1527 次
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 回答