public class

ForwardableResource

extends Object
implements DownloadableResource
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 Constructors
ForwardableResource(ResourceLocation resourceLocation)
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.
Protected Methods
String getLocation()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.servlet.DownloadableResource

Public Constructors

public ForwardableResource (ResourceLocation resourceLocation)

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 ()