Package com.atlassian.jira.web.util
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCssSubstitutionWebResourceTransformer(ApplicationProperties applicationProperties, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.webresource.spi.transformer.UrlReadingWebResourceTransformermakeResourceTransformer(com.atlassian.webresource.api.transformer.TransformerParameters parameters) com.atlassian.webresource.spi.transformer.TransformerUrlBuildermakeUrlBuilder(com.atlassian.webresource.api.transformer.TransformerParameters parameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.webresource.spi.transformer.WebResourceTransformerFactory
allUsedQueryParameters
-
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:
makeUrlBuilderin interfacecom.atlassian.webresource.spi.transformer.WebResourceTransformerFactory
-
makeResourceTransformer
public com.atlassian.webresource.spi.transformer.UrlReadingWebResourceTransformer makeResourceTransformer(com.atlassian.webresource.api.transformer.TransformerParameters parameters) - Specified by:
makeResourceTransformerin interfacecom.atlassian.webresource.spi.transformer.WebResourceTransformerFactory
-