View Javadoc

1   package com.atlassian.plugin.webresource;
2   
3   import com.atlassian.plugin.servlet.DownloadableResource;
4   import com.atlassian.plugin.webresource.cache.CacheHandle;
5   
6   import java.util.Map;
7   
8   /**
9    * Creates a batch of all like-typed resources that are declared as "super-batch="true"" in their plugin
10   * definitions.
11   *
12   * The URL for batch resources is /download/superbatch/<type>/batch.<type. The additional type part in the path
13   * is simply there to make the number of path-parts identical with other resources, so relative URLs will still work
14   * in CSS files.
15   *
16   */
17  public class SuperBatchDownloadableResource extends AbstractBatchDownloadableResource
18  {
19      public SuperBatchDownloadableResource(final String type, final Map<String, String> params,
20                                            final Iterable<DownloadableResource> resources,
21                                            final CacheHandle cacher)
22      {
23          super(type, params, resources, cacher);
24      }
25  
26      @Override
27      public String toString()
28      {
29          return "[Superbatch  type=" + getType() + ", params=" + getParams() + "]";
30      }
31  }