public interface DownloadableResource
serveResource(HttpServletRequest, HttpServletResponse) to serve the resource.| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Returns the content type for the resource.
|
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(OutputStream out)
Write the resource to the supplied OutputStream.
|
boolean isResourceModified(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
void serveResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DownloadException
DownloadException - if there were errors writing to the response.void streamResource(OutputStream out) throws DownloadException
out - the stream to write toDownloadException - if there were errors writing to the response. Since 2.3.String getContentType()
Copyright © 2014 Atlassian. All rights reserved.