Interface PluginUrlResource<T extends PluginUrlResourceParams>
- All Superinterfaces:
WebResource
- All Known Subinterfaces:
PluginCssResource,PluginJsResource
Representation of a resource accessible via a URL
- Since:
- v3.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns params that go outside this url's querystring.getStaticUrl(UrlMode urlMode) The resource's url.Methods inherited from interface com.atlassian.webresource.api.assembler.WebResource
getResourcePhase
-
Method Details
-
getStaticUrl
The resource's url.- Parameters:
urlMode- url mode, either absolute or relative- Returns:
- the url to this resource, prefixed by a static resource. If caching has been disabled for this resource, the raw url without the static prefix is returned.
-
getParams
T getParams()Returns params that go outside this url's querystring. Examples are conditional comments, ie only, media queries and attributes that may be added to an HTML tag- Returns:
- non-querystring params
-
getKey
String getKey()- Returns:
- the WRM key(s) contained in this resource (e.g. "_super")
- Since:
- 3.5.12
-
getBatchType
PluginUrlResource.BatchType getBatchType()- Returns:
- the type of resources contained in this batch (either "context" or "resource")
- Since:
- 3.5.12
-