java.lang.Object
com.atlassian.plugin.webresource.impl.snapshot.resource.Resource

public class Resource extends Object
Resource of Web Resource or Plugin.
Since:
3.3
  • Method Details

    • getUrlParamsStatic

      public static Map<String,String> getUrlParamsStatic(Map<String,String> params)
    • isCacheableStatic

      public static boolean isCacheableStatic(Map<String,String> params)
    • getPrebuiltSourcePath

      public static String getPrebuiltSourcePath(String resourceName)
    • isPrebuiltSourceName

      public static boolean isPrebuiltSourceName(String name)
    • getResourceNameFromPrebuiltSourceName

      public static String getResourceNameFromPrebuiltSourceName(String prebuiltSourcePath)
    • getParent

      public Bundle getParent()
      Get Parent - Web Resource or Plugin.
    • getName

      public String getName()
    • getFullName

      public String getFullName()
    • getLocation

      public String getLocation()
    • isRedirect

      public boolean isRedirect()
    • getNameType

      public String getNameType()
    • getNameOrLocationType

      public String getNameOrLocationType()
    • getLocationType

      public String getLocationType()
    • getContentType

      public String getContentType()
    • isBatchable

      public boolean isBatchable()
    • getStreamFor

      public InputStream getStreamFor(String path)
    • getPath

      public String getPath()
    • isBatchable

      public boolean isBatchable(Map<String,String> batchParams)
      Should it be included in Batch with given Parameters?
    • getParams

      public Map<String,String> getParams()
    • getUrlParams

      public Map<String,String> getUrlParams()
      Get only those parameters that would be output to url.
    • isTransformable

      public boolean isTransformable()
    • getVersion

      public String getVersion()
    • getKey

      public String getKey()
    • isCacheable

      public boolean isCacheable()
    • getContent

      public Content getContent()
    • getResourceLocation

      @Deprecated public com.atlassian.plugin.elements.ResourceLocation getResourceLocation()
      Deprecated.
      since 3.3.2
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object