|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.webresource.SingleDownloadableResourceBuilder
public class SingleDownloadableResourceBuilder
Constructs a single resource for download
| Constructor Summary | |
|---|---|
SingleDownloadableResourceBuilder(PluginAccessor pluginAccessor,
ServletContextFactory servletContextFactory)
|
|
| Method Summary | |
|---|---|
DownloadableResource |
find(String moduleKey,
String resourceName)
Finds a resource to upload given a module key and resource name If the resource cannot be found null is returned. |
boolean |
matches(String path)
Returns true if the builder can parse the given url |
DownloadableResource |
parse(String path,
Map<String,String> params)
Parses the url and params and then builds a resource to upload If the resource cannot be found null is returned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleDownloadableResourceBuilder(PluginAccessor pluginAccessor,
ServletContextFactory servletContextFactory)
| Method Detail |
|---|
public boolean matches(String path)
path - - the url to parse
public DownloadableResource parse(String path,
Map<String,String> params)
throws UrlParseException
path - - the urlparams - - query parameters provided in the url
UrlParseException - - if the path cannot be parsed
public DownloadableResource find(String moduleKey,
String resourceName)
moduleKey - - the key of the web resourceresourceName - - the name or the resource inside the given web resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||