Resource Locking Custom Protocol Plugin Extension
This resource locking plugin extension allows you to work with a custom designed protocol for retrieving and storing files. It can lock a resource on opening it in Oxygen XML Developer. 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 Developer.There are two additional methods that must be implemented:
getLockHandler()- Returns aLockHandlerimplementation class with the implementation of the lock specific methods from the plugin.isLockingSupported(String protocol)- Returns abooleanthat istrueif the plugin accepts to manage locking for a certain URL protocol scheme (such asftp,http,https,orcustomName).