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    * @deprecated since 2.2
6    */
7   class PluginResource
8   {
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      {
19          this.moduleCompleteKey = moduleCompleteKey;
20          this.resourceName = resourceName;
21      }
22  
23      public String getModuleCompleteKey()
24      {
25          return moduleCompleteKey;
26      }
27  
28      public String getResourceName()
29      {
30          return resourceName;
31      }
32  
33  
34      public String toString()
35      {
36          return "[moduleCompleteKey=" + moduleCompleteKey + ", resourceName=" + resourceName + "]";
37      }
38  }