Description
For use in property:
nifi.content.viewer.url
The content viewer will be extensible in that the supported mime types will be discovered at runtime. We will be taking an approach similar to Java SPI. During startup all war files will be inspected looking for a META-INF/nifi-data-viewer file. This file will contain the mime types that it can render (1 per line). Duplicate viewers will be logged and either the first or the last will be utilized.
Currently, the content viewer is applicable for viewing archived data through the provenance UI. This will likely be expanded to integrate with other parts of the application where applicable (viewing content in queues, etc). When viewing the data, the content viewer controller will get the data stream and detect its type (Apache Tika, known mime type, file extension, etc). Will likely need to add support for decompressing/unpacking. Once the underlying type is known and is supported, the content viewer controller will generate the webpage and defer to the discovered web application to generate the mark up for the data (via RequestDispatcher.include). This means that the discovered web application does not need to generate any boilerplate HTML and all types of content will be viewed in a similar UI.
Attachments
Attachments
Issue Links
- is duplicated by
-
NIFI-100 Provide a simple/basic viewing capability
- Resolved