Interface PluginUrlResource<T extends PluginUrlResourceParams>

All Superinterfaces:
WebResource
All Known Subinterfaces:
PluginCssResource, PluginJsResource

public interface PluginUrlResource<T extends PluginUrlResourceParams> extends WebResource
Representation of a resource accessible via a URL
Since:
v3.0
  • Method Details

    • getStaticUrl

      String getStaticUrl(UrlMode urlMode)
      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

      Returns:
      the type of resources contained in this batch (either "context" or "resource")
      Since:
      3.5.12