Package org.htmlunit

Class PluginConfiguration

java.lang.Object
org.htmlunit.PluginConfiguration
All Implemented Interfaces:
Serializable, Cloneable

public class PluginConfiguration extends Object implements Serializable, Cloneable
Contains information about a plugin as available in JavaScript via document.navigator.plugins, as well as the associated mime types.
See Also:
  • Field Details

  • Constructor Details

    • PluginConfiguration

      public PluginConfiguration(String name, String description, String version, String filename)
      Creates a new instance.
      Parameters:
      name - the plugin name
      description - the plugin description
      version - the version
      filename - the plugin filename
  • Method Details

    • getDescription

      public String getDescription()
      Gets the plugin's description.
      Returns:
      the description
    • getFilename

      public String getFilename()
      Gets the plugin's file name.
      Returns:
      the file name
    • getName

      public String getName()
      Gets the plugin's name.
      Returns:
      the name
    • getVersion

      public String getVersion()
      Gets the plugin's version.
      Returns:
      the version
    • getMimeTypes

      public Set<PluginConfiguration.MimeType> getMimeTypes()
      Gets the associated mime types.
      Returns:
      a set of PluginConfiguration.MimeType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • clone

      public PluginConfiguration clone()
      Creates and return a copy of this object. Current instance and cloned object can be modified independently.
      Overrides:
      clone in class Object
      Returns:
      a clone of this instance.