|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.webresource.PluginResourceLocatorImpl
public class PluginResourceLocatorImpl
Default implementation of PluginResourceLocator.
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.webresource.PluginResourceLocator |
|---|
BATCH_PARAMS |
| Constructor Summary | |
|---|---|
PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider)
|
|
PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider,
ResourceBatchingConfiguration batchingConfiguration)
|
|
| 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 PluginResources for a given plugin module's complete key. |
String |
getResourceUrl(String moduleCompleteKey,
String resourceName)
Constructs and returns url for the given resource. |
boolean |
matches(String url)
Returns true if this locator can parse the given url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider)
public PluginResourceLocatorImpl(WebResourceIntegration webResourceIntegration,
ServletContextFactory servletContextFactory,
WebResourceUrlProvider webResourceUrlProvider,
ResourceBatchingConfiguration batchingConfiguration)
| Method Detail |
|---|
public boolean matches(String url)
PluginResourceLocator
matches in interface PluginResourceLocator
public DownloadableResource getDownloadableResource(String url,
Map<String,String> queryParams)
PluginResourceLocatorDownloadableResource represented by the given url and query params.
PluginResourceLocator.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.
getDownloadableResource in interface PluginResourceLocatorpublic List<PluginResource> getPluginResources(String moduleCompleteKey)
PluginResourceLocatorPluginResources 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.
getPluginResources in interface PluginResourceLocator
public String getResourceUrl(String moduleCompleteKey,
String resourceName)
PluginResourceLocator
getResourceUrl in interface PluginResourceLocatormoduleCompleteKey - 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 | |||||||||