Package com.luciad.ogc.wfs
Interface ILcdWFSLockFactory
public interface ILcdWFSLockFactory
A factory class which can be used to create locks for a WFS-T server.
- Since:
- 10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canCreateLock
(TLcdWFSRequestContext aContext) If a validALcdWFSLock
can be created for the request associated withaContext
.createLock
(long aExpiry) Creates a lock which expires afteraExpiry
seconds.
-
Method Details
-
createLock
Creates a lock which expires afteraExpiry
seconds. The id and expiry of the lock will be set after the creation of the lock by this factory.- Parameters:
aExpiry
- a valid expiry in seconds.- Returns:
- a valid lock.
-
canCreateLock
If a validALcdWFSLock
can be created for the request associated withaContext
. This can depend on if locking is enabled or not for a service. The default implementation always returnstrue
.- Parameters:
aContext
- A context object containing information about the request for which the handler should be created.- Returns:
- If a valid
ALcdWFSLock
that can be created for the request associated withaContext
. - Since:
- 2024.1
-