|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.servlet.ForwardableResource
public class ForwardableResource
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
| Constructor Summary | |
|---|---|
ForwardableResource(ResourceLocation resourceLocation)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Returns the content type for the resource. |
protected java.lang.String |
getLocation()
|
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(java.io.OutputStream out)
Not implemented by a ForwardableResource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardableResource(ResourceLocation resourceLocation)
| 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(java.io.OutputStream out)
ForwardableResource. The supplied OutputStream will not be modified.
streamResource in interface DownloadableResourceout - the stream to write topublic java.lang.String getContentType()
DownloadableResource
getContentType in interface DownloadableResourceprotected java.lang.String getLocation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||