com.atlassian.plugin.servlet.DownloadableResource |
Known Indirect Subclasses |
Represents a plugin resource that can be downloaded.
It is up to the calling class to check if the resource is modified before calling
serveResource(HttpServletRequest, HttpServletResponse)
to serve the resource.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the content type for the resource.
| |||||||||||
Returns true if the plugin resource has been modified.
| |||||||||||
Writes the resource content out into the response.
| |||||||||||
Write the resource to the supplied OutputStream.
|
Returns the content type for the resource. May return null if it cannot resolve its own content type.
Returns true if the plugin resource has been modified. The implementing class is responsible for setting any appropriate response codes or headers on the response. If the resource has been modified, the resource shouldn't be served.
Writes the resource content out into the response.
DownloadException | if there were errors writing to the response. |
---|
Write the resource to the supplied OutputStream. Note that the OutputStream will not be closed by this method.
out | the stream to write to |
---|
DownloadException | if there were errors writing to the response. Since 2.3. |
---|