Interface WebResourceTransformerMatcher

All Known Implementing Classes:
RelativeUrlTransformerMatcher

public interface WebResourceTransformerMatcher
Describes whether a resource transformer matches a type or resource location
Since:
v3.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(com.atlassian.plugin.elements.ResourceLocation resourceLocation)
    Called at resource fetch time
    boolean
    Called at url generation time
  • Method Details

    • matches

      boolean matches(String type)
      Called at url generation time
      Parameters:
      type - resource type (eg js / css)
      Returns:
      true if the transformer should be applied to the given type
    • matches

      boolean matches(com.atlassian.plugin.elements.ResourceLocation resourceLocation)
      Called at resource fetch time
      Parameters:
      resourceLocation - resource location
      Returns:
      true if the transformer should be applied to the given type