org.abstracthorizon.danube.webdav.util
Class Depth

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.util.Depth

public class Depth
extends Object

Object that represents a "Depth" header of WebDAV specification.

Author:
Daniel Sendula

Field Summary
static int INFINITY
          Depth of infinity
static int NONE
          Depth not defined
static int ONE
          Depth of 1
static int ZERO
          Depth of 0
 
Constructor Summary
Depth()
           
 
Method Summary
static int collectDepth(HTTPConnection connection)
          Parses the header (if present) and returns depth object
static String toString(int depth)
          String representation of a depth object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Depth not defined

See Also:
Constant Field Values

ZERO

public static final int ZERO
Depth of 0

See Also:
Constant Field Values

ONE

public static final int ONE
Depth of 1

See Also:
Constant Field Values

INFINITY

public static final int INFINITY
Depth of infinity

See Also:
Constant Field Values
Constructor Detail

Depth

public Depth()
Method Detail

collectDepth

public static int collectDepth(HTTPConnection connection)
Parses the header (if present) and returns depth object

Parameters:
connection - connection to hold the header
Returns:
one of static objects defined here

toString

public static String toString(int depth)
String representation of a depth object

Parameters:
depth - depth object
Returns:
representation of a depth object


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