org.ztemplates.web.script.javascript
Class ZCachingJavaScriptProcessor

java.lang.Object
  extended by org.ztemplates.web.script.javascript.ZCachingJavaScriptProcessor
All Implemented Interfaces:
ZIJavaScriptProcessor

public class ZCachingJavaScriptProcessor
extends Object
implements ZIJavaScriptProcessor


Constructor Summary
ZCachingJavaScriptProcessor(ZICachingJavaScriptProcessorContext context)
           
 
Method Summary
 List<String> addContextPathToUrls(List<String> group)
           
 String computeHtmlTags(List<String> javaScript, ZIJavaScriptPreprocessor preprocessor, ZIJavaScriptGroupingStrategy groupingStrategy)
           
 ZJavaScriptCacheEntry getMergedJavaScript(String scriptKey)
           
 List<ZJavaScriptTag> merge(List<List<String>> grouped)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZCachingJavaScriptProcessor

public ZCachingJavaScriptProcessor(ZICachingJavaScriptProcessorContext context)
Method Detail

computeHtmlTags

public String computeHtmlTags(List<String> javaScript,
                              ZIJavaScriptPreprocessor preprocessor,
                              ZIJavaScriptGroupingStrategy groupingStrategy)
                       throws Exception
Specified by:
computeHtmlTags in interface ZIJavaScriptProcessor
Throws:
Exception

merge

public List<ZJavaScriptTag> merge(List<List<String>> grouped)
                           throws Exception
Throws:
Exception

addContextPathToUrls

public List<String> addContextPathToUrls(List<String> group)

getMergedJavaScript

public ZJavaScriptCacheEntry getMergedJavaScript(String scriptKey)


Copyright © 2011. All Rights Reserved.