public class Resource extends Object
| Constructor and Description |
|---|
Resource(Bundle parent,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String nameType,
String locationType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Content |
getContent() |
String |
getContentType() |
String |
getFilePath()
Deprecated.
since 3.3.2
|
String |
getFullName() |
String |
getKey() |
String |
getLocation() |
String |
getLocationType() |
String |
getName() |
String |
getNameOrLocationType() |
String |
getNameType() |
Map<String,String> |
getParams() |
Bundle |
getParent()
Get Parent - Web Resource or Plugin.
|
String |
getPath()
The actual path of the resource consist of two parts - the location and the file path.
|
static String |
getPrebuiltSourcePath(String resourceName) |
com.atlassian.plugin.elements.ResourceLocation |
getResourceLocation()
Deprecated.
since 3.3.2
|
static String |
getResourceNameFromPrebuiltSourceName(String prebuiltSourcePath) |
InputStream |
getStreamFor(String path) |
Map<String,String> |
getUrlParams()
Get only those parameters that would be output to url.
|
static Map<String,String> |
getUrlParamsStatic(Map<String,String> params) |
String |
getVersion() |
int |
hashCode() |
boolean |
isBatchable() |
boolean |
isBatchable(Map<String,String> batchParams)
Should it be included in Batch with given Parameters?
|
boolean |
isCacheable() |
static boolean |
isCacheableStatic(Map<String,String> params) |
static boolean |
isPrebuiltSourceName(String name) |
boolean |
isRedirect() |
boolean |
isTransformable() |
String |
toString() |
public Bundle getParent()
public String getName()
public String getFullName()
public String getLocation()
public boolean isRedirect()
public String getNameType()
public String getNameOrLocationType()
public String getLocationType()
public String getContentType()
public boolean isBatchable()
public InputStream getStreamFor(String path)
public String getPath()
public boolean isBatchable(Map<String,String> batchParams)
public Map<String,String> getUrlParams()
public boolean isTransformable()
public String getVersion()
public String getKey()
public boolean isCacheable()
public Content getContent()
@Deprecated public com.atlassian.plugin.elements.ResourceLocation getResourceLocation()
@Deprecated public String getFilePath()
public static boolean isPrebuiltSourceName(String name)
Copyright © 2018 Atlassian. All rights reserved.