public class Subscriptions extends Object
Constructor and Description |
---|
Subscriptions() |
Subscriptions(FeedFetcherCache cache,
Requester requester,
String callbackPrefix,
SubDAO dao) |
Modifier and Type | Method and Description |
---|---|
void |
callback(String callbackPath,
byte[] feed) |
void |
callback(String callbackPath,
InputStream feed) |
void |
callback(String callbackPath,
String feed) |
void |
callback(String callbackPath,
SyndFeed feed) |
void |
setCache(FeedFetcherCache cache) |
void |
setCallbackPrefix(String callbackPrefix) |
void |
setDao(SubDAO dao) |
void |
setRequester(Requester requester) |
void |
subscribe(String topic,
boolean sync,
long leaseSeconds,
String secret,
SubscriptionCallback callback) |
void |
subscribe(String hubUrl,
String topic,
boolean sync,
long leaseSeconds,
String secret,
SubscriptionCallback callback) |
void |
unsubscribe(Subscription subscription,
String hubUrl,
boolean sync,
String secret,
SubscriptionCallback callback) |
String |
validate(String callbackPath,
String topic,
String mode,
String challenge,
String leaseSeconds,
String verifyToken) |
public Subscriptions()
public Subscriptions(FeedFetcherCache cache, Requester requester, String callbackPrefix, SubDAO dao)
public void callback(String callbackPath, InputStream feed)
public void callback(String callbackPath, byte[] feed)
public void unsubscribe(Subscription subscription, String hubUrl, boolean sync, String secret, SubscriptionCallback callback)
public void subscribe(String hubUrl, String topic, boolean sync, long leaseSeconds, String secret, SubscriptionCallback callback)
public void subscribe(String topic, boolean sync, long leaseSeconds, String secret, SubscriptionCallback callback) throws IllegalArgumentException, IOException, FeedException
public String validate(String callbackPath, String topic, String mode, String challenge, String leaseSeconds, String verifyToken)
public void setCache(FeedFetcherCache cache)
cache
- the cache to setpublic void setRequester(Requester requester)
requester
- the requester to setpublic void setCallbackPrefix(String callbackPrefix)
callbackPrefix
- the callbackPrefix to setpublic void setDao(SubDAO dao)
dao
- the dao to setCopyright © 2017. All rights reserved.