public final class BookmarkManager extends ExtensionManager
This class is thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmark(Bookmark bookmark)
Adds a bookmark.
|
Collection<ChatRoomBookmark> |
getChatRoomBookmarks()
Gets a sorted collection of chat room bookmarks.
|
Collection<WebPageBookmark> |
getWebPageBookmarks()
Gets a sorted collection of web page bookmarks.
|
void |
removeChatRoomBookmark(Jid chatRoom)
Removes a chat room bookmark.
|
void |
removeWebPageBookmark(URL webPage)
Removes a web page bookmark.
|
isEnabled, setEnabledpublic final Collection<ChatRoomBookmark> getChatRoomBookmarks() throws XmppException
StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic final Collection<WebPageBookmark> getWebPageBookmarks() throws XmppException
StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic final void addBookmark(Bookmark bookmark) throws XmppException
bookmark - The bookmark.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic final void removeChatRoomBookmark(Jid chatRoom) throws XmppException
chatRoom - The chat room.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic final void removeWebPageBookmark(URL webPage) throws XmppException
webPage - The web page.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionCopyright © 2014–2015 XMPP.rocks. All rights reserved.