How To Open a File as Read-Only in WebApp Component

This topic assumes that you are using a URLStreamHandler plugin to open the files in your repository. When a file is opened, your plugin is asked to provide a URLConnection object that Oxygen XML Editor uses to read the contents of the file.

By opening the file as read-only, the WebApp Component is instructed to visually warn users that the content of the document cannot edited. This is an alternative to having them edit the content and then receive an error when trying to check it in.

You can instruct the WebApp Component to open a file as read-only by using one of the following methods: