View Javadoc

1   package com.atlassian.plugin.servlet;
2   
3   /**
4    * Identifies a resource in the plugin system. Normally generated from a request URL.
5    */
6   class PluginResource
7   {
8       private final String moduleCompleteKey;
9       private final String resourceName;
10  
11      /**
12       * @param moduleCompleteKey the key of the plugin module where the resource can be found, or the key
13       * of the plugin if the resource is specified at the plugin level.
14       * @param resourceName the name of the resource.
15       */
16      public PluginResource(String moduleCompleteKey, String resourceName)
17      {
18          this.moduleCompleteKey = moduleCompleteKey;
19          this.resourceName = resourceName;
20      }
21  
22      public String getModuleCompleteKey()
23      {
24          return moduleCompleteKey;
25      }
26  
27      public String getResourceName()
28      {
29          return resourceName;
30      }
31  
32  
33      public String toString()
34      {
35          return "[moduleCompleteKey=" + moduleCompleteKey + ", resourceName=" + resourceName + "]";
36      }
37  }