|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.valhalla.jbother.jabber.smack.Bookmark
public class Bookmark
Represents jabber bookmarks (JEP-0048)
| Nested Class Summary | |
|---|---|
class |
Bookmark.Conference
|
class |
Bookmark.URL
Represents an URL bookmark. |
| Constructor Summary | |
|---|---|
Bookmark()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
addConference(java.lang.String name,
java.lang.String jid,
java.lang.String nick,
java.lang.String password,
boolean autojoin)
adds a Conference (jabber conference room) bookmark. |
boolean |
addURL(java.lang.String name,
java.lang.String value)
adds a URL bookmark |
Bookmark.Conference |
getConference(java.lang.String name)
|
java.util.Iterator |
getConferences()
|
java.lang.String |
getElementName()
Returns the name of the XML element representing the bookmark (query) |
java.lang.String |
getNamespace()
Returns the string "jabber:iq:private" |
Bookmark.URL |
getURL(java.lang.String name)
|
java.util.Iterator |
getURLs()
Returns an iterator over the URL bookmarks |
void |
removeConference(Bookmark.Conference c)
|
java.lang.String |
toXML()
Returns an XML representaion of the bookmark, according to JEP-48 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bookmark()
| Method Detail |
|---|
public boolean addURL(java.lang.String name,
java.lang.String value)
name - a name which will represent the url bookmarkvalue - a string representing the url
public void removeConference(Bookmark.Conference c)
public boolean addConference(java.lang.String name,
java.lang.String jid,
java.lang.String nick,
java.lang.String password,
boolean autojoin)
name - a name which will represent the conference bookmarkjid - the jid of the conferencenick - a nickname representing the participant which will be displyed to the other participants in the conferencepassword - password to join the conferenceautojoin - indicates whether the client should attempt to join the conference immediately upon connection
public java.util.Iterator getURLs()
public java.util.Iterator getConferences()
public Bookmark.URL getURL(java.lang.String name)
name - the name of the url
public Bookmark.Conference getConference(java.lang.String name)
name - the name of the url
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smackx.packet.PrivateDatapublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smackx.packet.PrivateDatapublic java.lang.String toXML()
toXML in interface org.jivesoftware.smackx.packet.PrivateData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||