public class LogViewerContentSource extends Object implements DownloadServlet.ContentSource
| Constructor and Description |
|---|
LogViewerContentSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp(DownloadServlet.Context ctx)
This method may be used to clean up any temporary resources.
|
String |
getId()
This method returns a unique string used to identify this
DownloadServlet.getContentSource(String). |
InputStream |
getInputStream(DownloadServlet.Context ctx)
This method is responsible for generating the content and
returning an InputStream to that content.
|
long |
getLastModified(DownloadServlet.Context context)
This method is responsible for returning the last modified date of
the content, or -1 if not applicable.
|
public String getId()
This method returns a unique string used to identify this
DownloadServlet.getContentSource(String). This string must be
specified in order to select the appropriate
DownloadServlet.getContentSource(String) when using the
DownloadServlet.
getId in interface DownloadServlet.ContentSourcepublic InputStream getInputStream(DownloadServlet.Context ctx)
This method is responsible for generating the content and
returning an InputStream to that content. It is also
responsible for setting any attribute values in the
DownloadServlet.CONTENT_SOURCES, such as DownloadServlet.EXTENSION or
DownloadServlet.CONTENT_TYPE.
getInputStream in interface DownloadServlet.ContentSourcepublic void cleanUp(DownloadServlet.Context ctx)
This method may be used to clean up any temporary resources. It
will be invoked after the InputStream has been
completely read.
cleanUp in interface DownloadServlet.ContentSourcepublic long getLastModified(DownloadServlet.Context context)
This method is responsible for returning the last modified date of the content, or -1 if not applicable. This information will be used for caching. This implementation always returns -1.
getLastModified in interface DownloadServlet.ContentSourceCopyright © 2017–2020 Eclipse Foundation. All rights reserved.