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    * @deprecated since 2.2
7    */
8   class PluginResource {
9       private final String moduleCompleteKey;
10      private final String resourceName;
11  
12      /**
13       * @param moduleCompleteKey the key of the plugin module where the resource can be found, or the key
14       *                          of the plugin if the resource is specified at the plugin level.
15       * @param resourceName      the name of the resource.
16       */
17      public PluginResource(String moduleCompleteKey, String resourceName) {
18          this.moduleCompleteKey = moduleCompleteKey;
19          this.resourceName = resourceName;
20      }
21  
22      public String getModuleCompleteKey() {
23          return moduleCompleteKey;
24      }
25  
26      public String getResourceName() {
27          return resourceName;
28      }
29  
30  
31      public String toString() {
32          return "[moduleCompleteKey=" + moduleCompleteKey + ", resourceName=" + resourceName + "]";
33      }
34  }