Class CssSubstitutionWebResourceTransformer

java.lang.Object
com.atlassian.jira.web.util.CssSubstitutionWebResourceTransformer
All Implemented Interfaces:
com.atlassian.webresource.spi.transformer.WebResourceTransformerFactory

public class CssSubstitutionWebResourceTransformer extends Object implements com.atlassian.webresource.spi.transformer.WebResourceTransformerFactory
A resource transform that makes variable substitutions based on Linvalid input: '&F' settings.

Variables are prefixed with @. Variables will be:

  • Of the form @[a-zA-Z][a-zA-Z0-9_]* (e.g. alphanumeric and underscores and starts with an alpha).
  • Any @FOO token found that doesn't correspond to a known variable will be left as-is.
  • @TextHeadingColour, @MenuBackgroundColour, etc.
  • Copies of all the above with any leading hash # removed e.g. @TextHeadingColourNoHash, @MenuBackgroundColourNoHash
  • @ContextPath. This will either be the empty string, or a string that starts with a slash and never ends in a slash.
Since:
v4.3
  • Constructor Details

    • CssSubstitutionWebResourceTransformer

      public CssSubstitutionWebResourceTransformer(ApplicationProperties applicationProperties, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration)
  • Method Details

    • makeUrlBuilder

      public com.atlassian.webresource.spi.transformer.TransformerUrlBuilder makeUrlBuilder(com.atlassian.webresource.api.transformer.TransformerParameters parameters)
      Specified by:
      makeUrlBuilder in interface com.atlassian.webresource.spi.transformer.WebResourceTransformerFactory
    • makeResourceTransformer

      public com.atlassian.webresource.spi.transformer.UrlReadingWebResourceTransformer makeResourceTransformer(com.atlassian.webresource.api.transformer.TransformerParameters parameters)
      Specified by:
      makeResourceTransformer in interface com.atlassian.webresource.spi.transformer.WebResourceTransformerFactory