Class BookmarkStorage
- java.lang.Object
-
- rocks.xmpp.extensions.bookmarks.model.BookmarkStorage
-
public final class BookmarkStorage extends Object
The implementation of the<storage/>
element in thestorage:bookmarks
namespace.Note:
It is RECOMMENDED to use Publish-Subscribe (XEP-0060) [4] for data storage, specifically through the use of personal data nodes hosted at the user's virtual publish-subscribe service as described in Best Practices for Persistent Storage of Private Data via Publish-Subscribe (XEP-0223) [5] and illustrated in the following sections.
Note: In the past, Private XML Storage (XEP-0049) [6] was the recommended method. In addition, other methods could be used, such as HTTP or WebDAV.
- See Also:
- XEP-0048: Bookmarks, XML Schema
-
-
Constructor Summary
Constructors Constructor Description BookmarkStorage()
BookmarkStorage(Collection<AbstractBookmark> bookmarks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AbstractBookmark>
getBookmarks()
Gets the bookmarks.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
storage:bookmarks- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BookmarkStorage
public BookmarkStorage()
-
BookmarkStorage
public BookmarkStorage(Collection<AbstractBookmark> bookmarks)
-
-
Method Detail
-
getBookmarks
public final List<AbstractBookmark> getBookmarks()
Gets the bookmarks.- Returns:
- The bookmarks.
- See Also:
ChatRoomBookmark
,WebPageBookmark
-
-