Class PluginMetadata

  • Direct Known Subclasses:
    AvailablePlugin

    public class PluginMetadata
    extends Object
    A bean-like representation of the metadata of a plugin.
    Author:
    Guus der Kinderen, guus.der.kinderen@gmail.com
    • Method Detail

      • getInstance

        public static PluginMetadata getInstance​(Path pluginDir)
        Constructs a metadata object based on a plugin. The plugin must be installed in Openfire.
        Parameters:
        pluginDir - the path of the plugin directory (cannot be null)
        Returns:
        Metadata for the plugin (never null).
      • getInstance

        public static PluginMetadata getInstance​(Plugin plugin)
        Constructs a metadata object based on a plugin. The plugin must be installed in Openfire.
        Parameters:
        plugin - The plugin (cannot be null)
        Returns:
        Metadata for the plugin (never null).
      • getName

        public String getName()
      • getCanonicalName

        public String getCanonicalName()
      • getDescription

        public String getDescription()
      • getVersion

        public Version getVersion()
      • getAuthor

        public String getAuthor()
      • getIcon

        public URL getIcon()
      • getChangelog

        public URL getChangelog()
      • getReadme

        public URL getReadme()
      • getLicense

        public String getLicense()
      • getMinServerVersion

        public Version getMinServerVersion()
      • getPriorToServerVersion

        public Version getPriorToServerVersion()
      • getHashCode

        public String getHashCode()
      • isCsrfProtectionEnabled

        public boolean isCsrfProtectionEnabled()