com.atlassian.jira.web.util
Class MetalResourcesManager

java.lang.Object
  extended by com.atlassian.jira.web.util.MetalResourcesManager

public class MetalResourcesManager
extends Object

Manage and allow to print out assets (javscript and css) which are included into Metal Pages

Since:
v6.1

Field Summary
static Set<String> STATIC_ASSETS
          Descriptive list of all files which are considered as static assets
 
Constructor Summary
MetalResourcesManager(String contextPath, Writer out)
           
 
Method Summary
 MetalResourcesManager endIf()
           
static String getMetalResources(String contextPath)
           
static void includeMetalResources(Writer out, String contextPath)
           
 MetalResourcesManager startIf(String condition)
           
 MetalResourcesManager writeScript(String filename)
           
 MetalResourcesManager writeStyle(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATIC_ASSETS

public static Set<String> STATIC_ASSETS
Descriptive list of all files which are considered as static assets

Constructor Detail

MetalResourcesManager

public MetalResourcesManager(String contextPath,
                             Writer out)
Method Detail

getMetalResources

public static String getMetalResources(String contextPath)

includeMetalResources

public static void includeMetalResources(Writer out,
                                         String contextPath)

writeStyle

public MetalResourcesManager writeStyle(String filename)
                                 throws IOException
Throws:
IOException

writeScript

public MetalResourcesManager writeScript(String filename)
                                  throws IOException
Throws:
IOException

startIf

public MetalResourcesManager startIf(String condition)
                              throws IOException
Throws:
IOException

endIf

public MetalResourcesManager endIf()
                            throws IOException
Throws:
IOException


Copyright © 2002-2014 Atlassian. All Rights Reserved.