Content Viewers

To add a Content Viewer:

  1. Build and bundle your WAR in a processor NAR.

  2. The WAR needs to contain a nifi-content-viewer file in the META-INF directory, which lists the supported content types.

  3. Place the NAR in the lib directory and it will be discovered when NiFi starts up.

  4. When a matching content type is encountered, the content viewer will generate the appropriate view.

A good example to follow is the NAR layout for the Standard Content Viewer:

Standard Content Viewer NAR Layout

nifi-standard-bundle
│
├── nifi-jolt-transform-json-ui
│
├── nifi-standard-content-viewer
│   ├── pom.xml
│   └── src
│       └── main
│           ├── java
│           ├── resources
│           └── webapp
│               └── css
│               └── META-INF
│               │   └── nifi-content-viewer
│               └── WEB-INF
│
├── nifi-standard-nar
│
├── nifi-standard-prioritizers
│
├── nifi-standard-processors
│
├── nifi-standard-reporting-tasks
│
├── nifi-standard-utils
│
└── pom.xml

with the contents of nifi-content-viewer as follows:


application/xml
application/json
text/plain
text/csv
avro/binary
application/avro-binary
application/avro+binary