1 package com.atlassian.plugin.webresource;
2
3 import com.atlassian.plugin.servlet.DownloadableResource;
4
5 /**
6 * Finds a resource
7 */
8 interface DownloadableResourceFinder
9 {
10 /**
11 * Finds a resource to upload given a module key and resource name
12 * If the resource cannot be found null is returned.
13 * @param moduleKey - the key of the web resource
14 * @param resourceName - the name or the resource inside the given web resource
15 * @return a resource to upload
16 */
17 public DownloadableResource find(String moduleKey, String resourceName);
18 }