| java.lang.Object |
| ↳ |
com.atlassian.plugin.servlet.ForwardableResource |
Class Overview
A DownloadableResource that simply forwards the request to the given location.
This should be used to reference dynamic resources available in the web application e.g dwr js files
Summary
| Public Methods |
|
String
|
getContentType()
Returns the content type for the resource.
|
|
boolean
|
isResourceModified(HttpServletRequest request, HttpServletResponse response)
Returns true if the plugin resource has been modified.
|
|
void
|
serveResource(HttpServletRequest request, HttpServletResponse response)
Writes the resource content out into the response.
|
|
void
|
streamResource(OutputStream out)
Not implemented by a ForwardableResource.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.plugin.servlet.DownloadableResource
|
abstract
String
|
getContentType()
Returns the content type for the resource.
|
|
abstract
boolean
|
isResourceModified(HttpServletRequest request, HttpServletResponse response)
Returns true if the plugin resource has been modified.
|
|
abstract
void
|
serveResource(HttpServletRequest request, HttpServletResponse response)
Writes the resource content out into the response.
|
|
abstract
void
|
streamResource(OutputStream out)
Write the resource to the supplied OutputStream.
|
|
Public Constructors
Public Methods
public
String
getContentType
()
Returns the content type for the resource. May return null if it cannot resolve its own content type.
public
boolean
isResourceModified
(HttpServletRequest request, HttpServletResponse response)
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.
public
void
serveResource
(HttpServletRequest request, HttpServletResponse response)
Writes the resource content out into the response.
public
void
streamResource
(OutputStream out)
Not implemented by a ForwardableResource. The supplied OutputStream will not be modified.
Parameters
| out
| the stream to write to |
Protected Methods
protected
String
getLocation
()