|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginResourceLocator
Assists in locating plugin resources in different ways.
Field Summary | |
---|---|
static String[] |
BATCH_PARAMS
|
Method Summary | |
---|---|
DownloadableResource |
getDownloadableResource(String url,
Map<String,String> queryParams)
Returns a DownloadableResource represented by the given url and query params. |
List<PluginResource> |
getPluginResources(String moduleCompleteKey)
Returns a list of PluginResource s for a given plugin module's complete key. |
String |
getResourceUrl(String pluginModuleKey,
String resourceName)
Deprecated. As of 2.9.0, replaced by WebResourceUrlProvider.getResourceUrl(String, String) |
boolean |
matches(String url)
Returns true if this locator can parse the given url. |
Field Detail |
---|
static final String[] BATCH_PARAMS
Method Detail |
---|
boolean matches(String url)
DownloadableResource getDownloadableResource(String url, Map<String,String> queryParams)
DownloadableResource
represented by the given url and query params.
matches(String)
should be called before invoking this method. If the url is
not understood by the locator or the resource cannot be found, null will be returned.
List<PluginResource> getPluginResources(String moduleCompleteKey)
PluginResource
s for a given plugin module's complete key. If
the plugin the module belongs to is not enabled or does not exist, an empty list is returned.
@Deprecated String getResourceUrl(String pluginModuleKey, String resourceName)
WebResourceUrlProvider.getResourceUrl(String, String)
pluginModuleKey
- a plugin module's complete keyresourceName
- the name of the resource described in the module
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |