Class BookmarkedURL
java.lang.Object
org.jivesoftware.smackx.bookmarks.BookmarkedURL
- All Implemented Interfaces:
SharedBookmark
Represents one instance of a URL defined using XEP-0048 Bookmark Storage XEP.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBookmarkedURL(String URL) protectedBookmarkedURL(String URL, String name, boolean isRss) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns the name representing the URL (eg.getURL()Returns the URL.inthashCode()booleanisRss()Returns true if this URL is a news feed.booleanisShared()Returns true if this bookmark is shared.protected voidSets the name representing the URL.protected voidsetRss(boolean isRss) Set to true if this URL is an RSS or news feed.protected voidsetShared(boolean shared)
-
Constructor Details
-
BookmarkedURL
-
BookmarkedURL
-
-
Method Details
-
getName
Returns the name representing the URL (eg. Jive Software). This can be used in as a label, or identifier in applications.- Returns:
- the name representing the URL.
-
setName
Sets the name representing the URL.- Parameters:
name- the name.
-
getURL
Returns the URL.- Returns:
- the url.
-
setRss
Set to true if this URL is an RSS or news feed.- Parameters:
isRss- True if the URL is a news feed and false if it is not.
-
isRss
Returns true if this URL is a news feed.- Returns:
- Returns true if this URL is a news feed.
-
equals
-
hashCode
-