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    * Represents a batch of all resources that declare themselves as part of a given context(s).
10   *
11   * The URL for batch resources is /download/contextbatch/<type>/<contextname>/batch.<type. The additional type part in the path
12   * is simply there to make the number of path-parts identical with other resources, so relative URLs will still work
13   * in CSS files.
14   *
15   * @since 2.9.0
16   */
17  class ContextBatchDownloadableResource extends AbstractBatchDownloadableResource
18  {
19      ContextBatchDownloadableResource(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 "[Context Batch type=" + getType() + " params=" + getParams() + "]";
30      }
31  }