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()
- returns a
LockHandler implementation class with the
implementation of the lock specific methods from your plugin.
isSupported(String protocol)
-
boolean - you can accept to manage locking for a
certain URL protocol like scheme like ftp
,
http
, https
or
customName
.