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
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration that corresponds to the 'LockAction' attribute of 'GetFeaturesWithLock' and 'LockFeatures' requests. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeatures(QName aTypeName, TLcdOGCFilter aFilter, String aHandle) Adds a set of features which should be locked by this request.LockFeaturerequests 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.voidsetExpiry(int aExpiry) Sets the requested expiry time for the lock in seconds.voidSets the optional handle of this request.voidsetLockAction(TLcdWFSLockFeatureRequest.LockAction aLockAction) Sets the lock action.
-
Method Details
-
setLockAction
Sets the lock action. Valid values are the constantsALLandSOME, as defined in this class. By default,ALLis set. Set tonullto 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. 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.
-
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, ornullif 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
LockFeaturerequests do not support KVP encoding.- Specified by:
getKVPEncodingin interfaceILcdOWSRequest- Returns:
null, indicating that KVP encoding is not supported forLockFeaturerequests.
-
getTransportData
Description copied from interface:ILcdOWSRequestReturns 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 theILcdOWSTransportobject 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:
getTransportDatain 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:ILcdOWSRequestReturns the XML encoding of this request. If no XML encoding is supported for this request,nullshould be returned.- Specified by:
getXMLEncodingin interfaceILcdOWSRequest- Returns:
- the XML representation of this request.
-
getRestEncoding
Returnsnull, REST encoding is not supported.- Specified by:
getRestEncodingin interfaceILcdOWSRequest- Parameters:
aBaseURI-- Returns:
null- Since:
- 2013.0
-