com.atlassian.greenhopper.web.util
Class JsGlobalTransformer
java.lang.Object
com.atlassian.greenhopper.web.util.JsGlobalTransformer
- All Implemented Interfaces:
- com.atlassian.plugin.webresource.transformer.WebResourceTransformer
public class JsGlobalTransformer
- extends java.lang.Object
- implements com.atlassian.plugin.webresource.transformer.WebResourceTransformer
Takes care of transforming javascript files using global constants. Currently supported are:
${contextPath} : The contextPath from HttpServletRequest
- Author:
- ahennecke
Method Summary |
java.lang.CharSequence |
doTransform(java.lang.CharSequence originalContent)
|
com.atlassian.plugin.servlet.DownloadableResource |
transform(org.dom4j.Element configElement,
com.atlassian.plugin.elements.ResourceLocation location,
java.lang.String filePath,
com.atlassian.plugin.servlet.DownloadableResource nextResource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsGlobalTransformer
public JsGlobalTransformer(BuildProperties buildProperties)
transform
public com.atlassian.plugin.servlet.DownloadableResource transform(org.dom4j.Element configElement,
com.atlassian.plugin.elements.ResourceLocation location,
java.lang.String filePath,
com.atlassian.plugin.servlet.DownloadableResource nextResource)
- Specified by:
transform
in interface com.atlassian.plugin.webresource.transformer.WebResourceTransformer
doTransform
public java.lang.CharSequence doTransform(java.lang.CharSequence originalContent)
Copyright © 2007-2014 Atlassian. All Rights Reserved.