| java.lang.Object | |
| ↳ | com.atlassian.plugin.servlet.DownloadableWebResource |
A DownloadableResource that will serve the resource via the web application's ServletContext.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| extraPath | |||||||||||
| plugin | |||||||||||
| resourceLocation | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the content type for the resource.
| |||||||||||
Checks any "If-Modified-Since" header from the request against the
plugin's loading time, since plugins can't be modified after they've been
loaded this is a good way to determine if a plugin resource has been
modified or not.
| |||||||||||
Writes the resource content out into the response.
| |||||||||||
Write the resource to the supplied OutputStream.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This is called to return the location of the resource that this object
represents.
| |||||||||||
Returns an InputStream to stream the resource from based on
resource name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.servlet.DownloadableResource
| |||||||||||
Returns the content type for the resource. May return null if it cannot resolve its own content type.
Checks any "If-Modified-Since" header from the request against the plugin's loading time, since plugins can't be modified after they've been loaded this is a good way to determine if a plugin resource has been modified or not. If this method returns true, don't do any more processing on the request -- the response code has already been set to "304 Not Modified" for you, and you don't need to serve the file.
Writes the resource content out into the response.
| DownloadException |
|---|
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 |
|---|
This is called to return the location of the resource that this object represents.
Returns an InputStream to stream the resource from based on resource name.
| resourceLocation | the location of the resource to try and load |
|---|