Package com.luciad.ogc.wfs.client
Class TLcdWFSGetFeatureWithLockRequest
java.lang.Object
com.luciad.ogc.wfs.client.TLcdWFSGetFeatureRequest
com.luciad.ogc.wfs.client.TLcdWFSGetFeatureWithLockRequest
- All Implemented Interfaces:
ILcdOWSRequest
A WFS
GetFeatureWithLock request. Instances of this class can not be created
directly. An instance can be created using the
TLcdWFSClient.createGetFeatureWithLockRequest() method. This
method will ensure a request object is created that is compatible with the WFS version
implemented by the WFS server.
This class extends the GetFeature request class with the necessary properties to request a lock.- Since:
- 10.0
-
Field Summary
Fields inherited from class com.luciad.ogc.wfs.client.TLcdWFSGetFeatureRequest
RESULT_TYPE_HITS, RESULT_TYPE_RESULTS -
Method Summary
Modifier and TypeMethodDescriptionReturns a key-value pair (KVP) encoding of this request.Returns the XML encoding of this request.voidsetExpiry(int aExpiry) Sets the requested expiry time for the lock in seconds.voidsetLockAction(TLcdWFSLockFeatureRequest.LockAction aLockAction) Sets the lock action.Methods inherited from class com.luciad.ogc.wfs.client.TLcdWFSGetFeatureRequest
getRestEncoding, getTransportData, setBoundingBox, setBoundingBox, setMaxFeatures, setOGCFilter, setOGCFilters, setOGCSortBy, setOutputFormat, setResultType, setTransportData, setTypeName, setTypeNames
-
Method Details
-
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. In case the WFS server does not support WFS 2.0.0, the expiry time is automatically converted to minutes, which is the time unit used by WFS 1.0.0 and 1.1.0. If this conversion results in a decimal value, the next minute is used; for example, 100 seconds results in 2 minutes.- Parameters:
aExpiry- A positive integer which represent the lock expiry time in seconds.
-
setLockAction
Sets the lock action. Valid values are the enumeration valuesALLandSOME, as defined inTLcdWFSLockFeatureRequest. By default, this is set toALL. Set to null to reset to the default. Note that this parameter is not officially supported in WFS 1.0.0 forGetFeatureWithLockrequests. It will still be included inKVP requestsbut not inXML requests, to remain compliant with the OGC WFS 1.0.0 XML Schemas.- Parameters:
aLockAction- The lock action which should be set on this request.- See Also:
-
getKVPEncoding
Description copied from class:TLcdWFSGetFeatureRequestReturns a key-value pair (KVP) encoding of this request. If no key-value pairs are defined, an empty map should be returned. If no key-value pair encoding is supported for this request,nullshould be returned.- Specified by:
getKVPEncodingin interfaceILcdOWSRequest- Overrides:
getKVPEncodingin classTLcdWFSGetFeatureRequest- Returns:
- the key-value pair (KVP) representation of this request.
-
getXMLEncoding
Description copied from class:TLcdWFSGetFeatureRequestReturns the XML encoding of this request. If no XML encoding is supported for this request,nullshould be returned.- Specified by:
getXMLEncodingin interfaceILcdOWSRequest- Overrides:
getXMLEncodingin classTLcdWFSGetFeatureRequest- Returns:
- the XML representation of this request.
-