| java.lang.Object | |
| ↳ | com.atlassian.plugin.servlet.ResourceUrlParser |
This class is deprecated.
Since 2.2
Parses resource download URLs for a plugin resource download strategy, and can determine whether a given URL is valid for that download strategy.
The URLs are in the form "/servletPath/strategyPrefix/moduleCompleteKey/resourceName", where the 'servletPath' is defined asSERVLET_PATH, the 'strategyPrefix' is defined by a constructor parameter,
the remainder is parsed by this parser into a PluginResource.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a parser with the given strategy prefix for parsing URLs.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the provided URL matches a the URL prefix defined for this download strategy.
| |||||||||||
Parses resource download URLs for this plugin resource download strategy, returning a PluginResource.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a parser with the given strategy prefix for parsing URLs.
For example, a strategy prefix of 'resources' means that this parser will match URLs which include 'download/resources'. (Where 'download' is defined asSERVLET_PATH.)| strategyPrefix | a String which will be found following 'download' at the start of matching URLs. |
|---|
Returns true if the provided URL matches a the URL prefix defined for this download strategy.
| resourceUrl | the URL of the resource request |
|---|
Parses resource download URLs for this plugin resource download strategy, returning a PluginResource.
Returns null if the URL does not match (i.e. matches(String) returns false), or the
final part of the URL cannot be split into a moduleCompleteKey and resourceName (i.e. there's no slash in the
final component).
| resourceUrl | the URL of the resource request |
|---|