public class

CssSubstitutionWebResourceTransformer

extends Object
implements WebResourceTransformerFactory
java.lang.Object
   ↳ com.atlassian.jira.web.util.CssSubstitutionWebResourceTransformer

Class Overview

A resource transform that makes variable substitutions based on L&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.

Summary

Nested Classes
class CssSubstitutionWebResourceTransformer.VariableMap  
Constants
String LOOKNFEEL_VERSION_QUERY_PARAM
Public Constructors
CssSubstitutionWebResourceTransformer(ApplicationProperties applicationProperties, WebResourceIntegration webResourceIntegration)
Public Methods
UrlReadingWebResourceTransformer makeResourceTransformer(TransformerParameters parameters)
TransformerUrlBuilder makeUrlBuilder(TransformerParameters parameters)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.webresource.transformer.WebResourceTransformerFactory

Constants

public static final String LOOKNFEEL_VERSION_QUERY_PARAM

Constant Value: "looknfeel_version"

Public Constructors

public CssSubstitutionWebResourceTransformer (ApplicationProperties applicationProperties, WebResourceIntegration webResourceIntegration)

Public Methods

public UrlReadingWebResourceTransformer makeResourceTransformer (TransformerParameters parameters)

public TransformerUrlBuilder makeUrlBuilder (TransformerParameters parameters)