URLStreamHandlerWithLockPluginExtension
allows the
developer to work with a protocol that he designed for retrieving and storing
files and lock a resource on opening it in <oXygen/>. This type of plugin extends
the custom protocol plugin type
URLStreamHandlerPluginExtension
with resource locking
support. The plugin receives callbacks following the simple protocol for
resource locking and unlocking imposed by <oXygen/> as you can read in the developer
manual. There are two additional methods that must be implemented:
getLockHandler()
and
isSupported()
. With
getLockHandler()
<oXygen/> requests the handler class
with the implementation of the lock specific methods from the plugin. <oXygen/>
calls the method isSupported()
with a protocol scheme
like 'ftp', 'http', 'https', etc. as parameter for finding if the plugin
supports that protocol.