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 plugin. 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 plugin.There are two additional methods that must be implemented:
getLockHandler()
- Returns aLockHandler
implementation class with the implementation of the lock specific methods from the plugin.isLockingSupported(String protocol)
- Returns aboolean
that istrue
if the plugin accepts to manage locking for a certain URL protocol scheme (such asftp
,http
,https,
orcustomName
).