Resource Locking Custom Protocol Plugin Extension
This plugin type allows the developer to work with a custom designed protocol for retrieving and storing files. It can lock a resource on opening it in Oxygen XML Editor. This type of plugin extends the custom protocol plugin type with resource locking support.
Such a plugin provides the following API:
-
The interface URLStreamHandlerWithLockPluginExtension - The plugin receives callbacks following the simple protocol for resource locking and unlocking imposed by Oxygen XML Editor.
There are two additional methods that must be implemented:
- getLockHandler() - Returns a
LockHandlerimplementation class with the implementation of the lock specific methods from the plugin. - isLockingSupported(String protocol) - Returns a
booleanthat istrueif the plugin accepts to manage locking for a certain URL protocol scheme (such asftp,http,https,orcustomName).
- getLockHandler() - Returns a