|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.webresource.SuperBatchPluginResource
public class SuperBatchPluginResource
Creates a batch of all like-typed resources that are declared as "super-batch="true"" in their plugin definitions. The URL for batch resources is /download/superbatch/<type>/batch.<type. The additional type part in the path is simply there to make the number of path-parts identical with other resources, so relative URLs will still work in CSS files.
| Constructor Summary | |
|---|---|
|
SuperBatchPluginResource(java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> params)
|
protected |
SuperBatchPluginResource(java.lang.String resourceName,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> params)
|
| Method Summary | |
|---|---|
void |
add(DownloadableResource downloadableResource)
|
static SuperBatchPluginResource |
createBatchFor(PluginResource pluginResource)
|
java.lang.String |
getContentType()
Returns the content type for the resource. |
java.lang.String |
getModuleCompleteKey()
|
java.util.Map<java.lang.String,java.lang.String> |
getParams()
|
java.lang.String |
getResourceName()
|
java.lang.String |
getType()
|
protected static java.lang.String |
getType(java.lang.String path)
|
java.lang.String |
getUrl()
|
java.lang.String |
getVersion(WebResourceIntegration integration)
|
boolean |
isCacheSupported()
|
boolean |
isEmpty()
|
boolean |
isResourceModified(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns true if the plugin resource has been modified. |
static boolean |
matches(java.lang.String path)
|
static SuperBatchPluginResource |
parse(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> params)
|
void |
serveResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Writes the resource content out into the response. |
void |
streamResource(java.io.OutputStream out)
Write the resource to the supplied OutputStream. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SuperBatchPluginResource(java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> params)
protected SuperBatchPluginResource(java.lang.String resourceName,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.String> params)
| Method Detail |
|---|
public static boolean matches(java.lang.String path)
public static SuperBatchPluginResource createBatchFor(PluginResource pluginResource)
public static SuperBatchPluginResource parse(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> params)
protected static java.lang.String getType(java.lang.String path)
public boolean isResourceModified(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
DownloadableResource
isResourceModified in interface DownloadableResource
public void serveResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DownloadException
DownloadableResource
serveResource in interface DownloadableResourceDownloadException - if there were errors writing to the response.
public void streamResource(java.io.OutputStream out)
throws DownloadException
DownloadableResource
streamResource in interface DownloadableResourceout - the stream to write to
DownloadException - if there were errors writing to the response. Since 2.3.public java.lang.String getContentType()
DownloadableResource
getContentType in interface DownloadableResourcepublic void add(DownloadableResource downloadableResource)
public boolean isEmpty()
public java.lang.String getUrl()
getUrl in interface PluginResourcepublic java.util.Map<java.lang.String,java.lang.String> getParams()
getParams in interface BatchResourcegetParams in interface PluginResourcepublic java.lang.String getVersion(WebResourceIntegration integration)
getVersion in interface PluginResourcepublic java.lang.String getType()
getType in interface BatchResourcepublic boolean isCacheSupported()
isCacheSupported in interface PluginResourcepublic java.lang.String getResourceName()
getResourceName in interface PluginResourcepublic java.lang.String getModuleCompleteKey()
getModuleCompleteKey in interface PluginResourcepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||