org.abstracthorizon.danube.webdav.xml.dav.response.properties
Class LockDiscovery

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
      extended by org.abstracthorizon.danube.webdav.xml.dav.response.properties.LockDiscovery
All Implemented Interfaces:
XMLRenderer

public class LockDiscovery
extends ResponseProperty

This class models WebDAV's lockdiscovery response tag

Author:
Daniel Sendula

Field Summary
static String ACTIVE_LOCK_TAG_NAME
          Active lock tag name
static String LOCK_TOKEN_TAG_NAME
          Lock token tag name
protected  List<Lock> locks
          List of locks
static String TAG_NAME
          Tag name
static String TIMEOUT_TAG_NAME
          Timeout tag name
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
status
 
Constructor Summary
LockDiscovery(Status status)
          Constructor
 
Method Summary
 List<Lock> getLocks()
          Returns list of locks.
 void render(PrintWriter writer, NamespacesProvider provider)
          Renders the tag
 String toString()
           
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final String TAG_NAME
Tag name

See Also:
Constant Field Values

ACTIVE_LOCK_TAG_NAME

public static final String ACTIVE_LOCK_TAG_NAME
Active lock tag name

See Also:
Constant Field Values

TIMEOUT_TAG_NAME

public static final String TIMEOUT_TAG_NAME
Timeout tag name

See Also:
Constant Field Values

LOCK_TOKEN_TAG_NAME

public static final String LOCK_TOKEN_TAG_NAME
Lock token tag name

See Also:
Constant Field Values

locks

protected List<Lock> locks
List of locks

Constructor Detail

LockDiscovery

public LockDiscovery(Status status)
Constructor

Parameters:
status - status
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getLocks

public List<Lock> getLocks()
Returns list of locks. It will never be null.

Returns:
list of locks

render

public void render(PrintWriter writer,
                   NamespacesProvider provider)
Renders the tag

Parameters:
writer - writer
provider - namespace provider


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.