|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DownloadableResource
Represents a plugin resource that can be downloaded.
It is up to the calling class to check if the resource is modified before calling
serveResource(HttpServletRequest, HttpServletResponse) to serve the resource.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 to
DownloadException - if there were errors writing to the response. Since 2.3.String getContentType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||