Examples of WebPageBookmark


Examples of rocks.xmpp.extensions.bookmarks.model.WebPageBookmark

        Assert.assertEquals(bookmark.getName(), "Council of Oberon");
        Assert.assertTrue(bookmark.isAutojoin());
        Assert.assertEquals(bookmark.getRoom(), Jid.valueOf("council@conference.underhill.org"));
        Assert.assertEquals(bookmark.getNick(), "Puck");

        WebPageBookmark bookmark2 = (WebPageBookmark) bookmarkStorage.getBookmarks().get(1);
        Assert.assertEquals(bookmark2.getName(), "Complete Works of Shakespeare");
        Assert.assertEquals(bookmark2.getUrl(), new URL("http://the-tech.mit.edu/Shakespeare/"));
    }
View Full Code Here

Examples of rocks.xmpp.extensions.bookmarks.model.WebPageBookmark

     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     */
    public void removeWebPageBookmark(URL webPage) throws XmppException {
        BookmarkStorage bookmarkStorage = privateDataManager.getData(BookmarkStorage.class);
        List<Bookmark> bookmarks = new ArrayList<>(bookmarkStorage.getBookmarks());
        bookmarks.remove(new WebPageBookmark("", webPage));
        privateDataManager.storeData(new BookmarkStorage(bookmarks));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.