Interface WebPlugin

  • All Known Implementing Classes:
    DefaultWebPlugin

    public interface WebPlugin
    Author:
    Yohann Chastagnier
    • Method Detail

      • getHtml

        default org.apache.ecs.ElementContainer getHtml​(SupportedWebPlugin plugin,
                                                        String language)
        Include a plugin by its name.

        The method returns a filled element container one time per request.

        Parameters:
        plugin - the aimed plugin.
        language - the aimed language.
        Returns:
        the element container filled with the necessary HTML tags to invoke the plugin, or empty if the initialization script has already been done into the context of the same request.
      • getHtml

        default org.apache.ecs.ElementContainer getHtml​(String pluginName,
                                                        String language)
        Include a plugin by its name.

        The method returns a filled element container one time per request.

        Parameters:
        pluginName - the aimed plugin name.
        language - the aimed language.
        Returns:
        the element container filled with the necessary HTML tags to invoke the plugin, or empty if the initialization script has already been done into the context of the same request.