Package com.luciad.ogc.wfs.client
Class TLcdWFSLockFeatureRequest
java.lang.Object
com.luciad.ogc.wfs.client.TLcdWFSLockFeatureRequest
- All Implemented Interfaces:
ILcdOWSRequest
A WFS
LockFeature
request. Instances of this class can not be created directly. An
instance can be created using the TLcdWFSClient.createLockFeatureRequest()
method. This
method will ensure a request object is created that is compatible with the WFS version
implemented by the WFS server.- Since:
- 10.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
An enumeration that corresponds to the 'LockAction' attribute of 'GetFeaturesWithLock' and 'LockFeatures' requests. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeatures
(QName aTypeName, TLcdOGCFilter aFilter, String aHandle) Adds a set of features which should be locked by this request.LockFeature
requests do not support KVP encoding.getRestEncoding
(URI aBaseURI) Returnsnull
, REST encoding is not supported.Returns an object representing data to be used by the transportation layer (seeILcdOWSTransport
) to perform this OGC Web Service request.Returns the XML encoding of this request.void
setExpiry
(int aExpiry) Sets the requested expiry time for the lock in seconds.void
Sets the optional handle of this request.void
setLockAction
(TLcdWFSLockFeatureRequest.LockAction aLockAction) Sets the lock action.
-
Method Details
-
setLockAction
Sets the lock action. Valid values are the constantsALL
andSOME
, as defined in this class. By default,ALL
is set. Set tonull
to reset to the default.- Parameters:
aLockAction
- The lock action which should be set on this request.- See Also:
-
setExpiry
public void setExpiry(int aExpiry) Sets the requested expiry time for the lock in seconds. The expiry determines how long the lock will remain valid after its creation. The expiry of a lock can also be reset by other requests. By default the expiry is set to 300 seconds.- Parameters:
aExpiry
- A positive integer which represent the lock expiry time in seconds.
-
setHandle
Sets the optional handle of this request. A handle will be used in exception reports to identify the failed request. This is supported starting from WFS version 1.1.0.- Parameters:
aHandle
- A String which can be used to identify this request, ornull
if no handle should be used.
-
addFeatures
Adds a set of features which should be locked by this request. This method can be called multiple times to specify multiple groups of features that should be locked.- Parameters:
aTypeName
- The type name of the featuresaFilter
- A filter which specifies which features of type aTypeName should be locked.aHandle
- A handle which will be used by the server in an exception report if present. Can be set to null.
-
getKVPEncoding
LockFeature
requests do not support KVP encoding.- Specified by:
getKVPEncoding
in interfaceILcdOWSRequest
- Returns:
null
, indicating that KVP encoding is not supported forLockFeature
requests.
-
getTransportData
Description copied from interface:ILcdOWSRequest
Returns an object representing data to be used by the transportation layer (seeILcdOWSTransport
) to perform this OGC Web Service request. The type of object and the data contained in it depends on theILcdOWSTransport
object used to perform this request. An example in the case of a HTTP transport connection is a map of request properties (seeURLConnection.getRequestProperties()
) to be used for the request.- Specified by:
getTransportData
in interfaceILcdOWSRequest
- Returns:
- an object representing data to be used by the transportation layer to perform this OGC Web Service request.
-
getXMLEncoding
Description copied from interface:ILcdOWSRequest
Returns the XML encoding of this request. If no XML encoding is supported for this request,null
should be returned.- Specified by:
getXMLEncoding
in interfaceILcdOWSRequest
- Returns:
- the XML representation of this request.
-
getRestEncoding
Returnsnull
, REST encoding is not supported.- Specified by:
getRestEncoding
in interfaceILcdOWSRequest
- Parameters:
aBaseURI
-- Returns:
null
- Since:
- 2013.0
-