org.deegree.protocol.wfs.lockfeature
Class LockFeature

java.lang.Object
  extended by org.deegree.protocol.wfs.AbstractWFSRequest
      extended by org.deegree.protocol.wfs.lockfeature.LockFeature

public class LockFeature
extends AbstractWFSRequest

Represents a LockFeature request to a WFS.

Supported versions:

Version:
$Revision: 31763 $, $Date: 2011-09-05 19:55:05 +0200 (Mon, 05 Sep 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
LockFeature(Version version, String handle, LockOperation[] locks, Integer expiry, Boolean lockAll)
          Creates a new LockFeature request.
 
Method Summary
 Integer getExpiry()
          Returns the expiry time for the acquired locks.
 Boolean getLockAll()
          Returns whether the request should fail if not all specified features can be locked.
 LockOperation[] getLocks()
          Returns the locks to be acquired.
 String toString()
           
 
Methods inherited from class org.deegree.protocol.wfs.AbstractWFSRequest
getHandle, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockFeature

public LockFeature(Version version,
                   String handle,
                   LockOperation[] locks,
                   Integer expiry,
                   Boolean lockAll)
Creates a new LockFeature request.

Parameters:
version - protocol version, may not be null
handle - client-generated identifier, may be null
locks - locks to be acquired, must not be null and contain at least one entry
expiry - expiry time (in minutes) before the features are unlocked automatically, may be null (unspecified)
lockAll - true means that the request should fail if not all requested locks can be acquired, may be null (unspecified)
Method Detail

getLocks

public LockOperation[] getLocks()
Returns the locks to be acquired.

Returns:
the locks to be acquired, never null and always contains at least one entry

getExpiry

public Integer getExpiry()
Returns the expiry time for the acquired locks.

Returns:
the expiry time for the acquired locks, can be null (unspecified)

getLockAll

public Boolean getLockAll()
Returns whether the request should fail if not all specified features can be locked.

Returns:
true, if the request should fail, can be null (unspecified)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.