|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.webresource.BatchSubResource
public class BatchSubResource
Represents a plugin resource that is a subordinate of a batch.
This is typically the case for CSS in the superbatch or context batch with relative urls to images. For example:
/download/superbatch/css/images/foo.png
/download/contextbatch/css/contexta/images/foo.png
| Constructor Summary | |
|---|---|
BatchSubResource(String resourceName,
String type,
Map<String,String> params)
|
|
BatchSubResource(String resourceName,
String type,
Map<String,String> params,
List<DownloadableResource> resources)
|
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the content type for the resource. |
String |
getResourceName()
|
boolean |
isEmpty()
|
boolean |
isResourceModified(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns true if the plugin resource has been modified. |
void |
serveResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Writes the resource content out into the response. |
void |
streamResource(OutputStream out)
Write the resource to the supplied OutputStream. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BatchSubResource(String resourceName,
String type,
Map<String,String> params)
public BatchSubResource(String resourceName,
String type,
Map<String,String> params,
List<DownloadableResource> resources)
| Method Detail |
|---|
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(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 String getContentType()
DownloadableResource
getContentType in interface DownloadableResourcepublic boolean isEmpty()
public String getResourceName()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||