|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.superfeedr.Superfeedr
public class Superfeedr
The SuperFeedr Class is the entry point to access the superFeedr XMPP functionnalities. To use this Class, you should already have a superfeedr account.
Constructor Summary | |
---|---|
Superfeedr(java.lang.String jid,
java.lang.String password,
java.lang.String server)
Constructor of a superfeedr instance that will connect to the specified server using the jid and password as credentials |
Method Summary | |
---|---|
void |
addOnNotificationHandler(OnNotificationHandler handler)
Add handler as a notification handler on this superfeedr. |
void |
close()
This method is used to close the connection to the Superfeer Server. |
static java.util.Date |
convertDate(java.lang.String date)
This class converts a ISO 8601 date represented as a string to a java Date Object |
java.util.List<java.net.URL> |
getSubscriptionList()
This method is used to retreive the feeds URL you subscribed to. |
void |
removeOnNotificationHandler(OnNotificationHandler handler)
Try to remove the specified handler from the list of notification handler |
void |
subscribe(java.util.List<java.net.URL> feedUrls,
onSubUnsubscriptionHandler handler)
Call this method to add subscription to your superfeedr account. |
void |
unsubscribe(java.util.List<java.net.URL> feedUrls,
onSubUnsubscriptionHandler handler)
Call this method to remove subscription from your superfeedr account. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Superfeedr(java.lang.String jid, java.lang.String password, java.lang.String server) throws org.jivesoftware.smack.XMPPException
jid
- the jid you want to connect withpassword
- the password to useserver
- the server you connect to
org.jivesoftware.smack.XMPPException
Method Detail |
---|
public static java.util.Date convertDate(java.lang.String date)
date
-
public void close() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public void addOnNotificationHandler(OnNotificationHandler handler)
handler
- the handler to be addedpublic void removeOnNotificationHandler(OnNotificationHandler handler)
handler
- the notification handler to be removed from the listpublic void subscribe(java.util.List<java.net.URL> feedUrls, onSubUnsubscriptionHandler handler)
feedUrls
- the list of feeds you want to add to your superfeedr accounthandler
- the callbackpublic void unsubscribe(java.util.List<java.net.URL> feedUrls, onSubUnsubscriptionHandler handler)
feedUrls
- the list of feeds you want to add to your superfeedr accounthandler
- the callbackpublic java.util.List<java.net.URL> getSubscriptionList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |