Class PluginAssets

java.lang.Object
io.bdeploy.api.plugin.v1.PluginAssets

public class PluginAssets extends Object
Describes a mapping of a static path inside the JAR file of a plugin to a URL path in the plugins scope under which this path should be made available on the server.
  • Constructor Details

    • PluginAssets

      public PluginAssets(String jarPath, String urlPath)
      Parameters:
      jarPath - the path inside the JAR file to make available.
      urlPath - the additional context path under which to make this asset available. Note that this is appended to a plugin-specific unique context-path, so it is not the full path on the server.
  • Method Details

    • getJarPath

      public String getJarPath()
      Returns:
      the path inside the plugin's JAR file which is used to load resources when requested.
    • getUrlPath

      public String getUrlPath()
      Returns:
      the path inside the plugins namespace on the server under which this asset path should be hosted.