Package org.jivesoftware.openfire.update
Class AvailablePlugin
- java.lang.Object
-
- org.jivesoftware.openfire.container.PluginMetadata
-
- org.jivesoftware.openfire.update.AvailablePlugin
-
public class AvailablePlugin extends PluginMetadata
Plugin available at igniterealtime.org. The plugin may or may not be locally installed.- Author:
- Gaston Dombiak
-
-
Constructor Summary
Constructors Constructor Description AvailablePlugin(String name, String canonicalName, String description, Version latestVersion, String author, URL icon, URL changelog, URL readme, String license, Version minServerVersion, Version priorToServerVersion, JavaSpecVersion minJavaVersion, URL downloadUrl, long fileSize, String releaseDate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getDownloadURL()
URL from where the latest version of the plugin can be downloaded.long
getFileSize()
Returns the size in bytes of the plugin jar file.static AvailablePlugin
getInstance(org.dom4j.Element plugin)
String
getReleaseDate()
-
Methods inherited from class org.jivesoftware.openfire.container.PluginMetadata
getAuthor, getCanonicalName, getChangelog, getDescription, getHashCode, getIcon, getInstance, getInstance, getLicense, getMinJavaVersion, getMinServerVersion, getName, getPriorToServerVersion, getReadme, getVersion, isCsrfProtectionEnabled
-
-
-
-
Constructor Detail
-
AvailablePlugin
public AvailablePlugin(String name, String canonicalName, String description, Version latestVersion, String author, URL icon, URL changelog, URL readme, String license, Version minServerVersion, Version priorToServerVersion, JavaSpecVersion minJavaVersion, URL downloadUrl, long fileSize, String releaseDate)
-
-
Method Detail
-
getInstance
public static AvailablePlugin getInstance(org.dom4j.Element plugin)
-
getDownloadURL
public URL getDownloadURL()
URL from where the latest version of the plugin can be downloaded.- Returns:
- download URL.
-
getFileSize
public long getFileSize()
Returns the size in bytes of the plugin jar file.- Returns:
- the size in bytes of the plugin jar file.
-
getReleaseDate
public String getReleaseDate()
- Returns:
- the date the plugin was released
-
-