pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.webdav.request
Enum Depth

java.lang.Object
  extended by java.lang.Enum<Depth>
      extended by org.torweg.pulse.webdav.request.Depth
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Depth>

public enum Depth
extends java.lang.Enum<Depth>

represents the <em>Depth</em> header of a DAV request.

Version:
$Revision: 1432 $
Author:
Thomas Weber

Enum Constant Summary
INFINITY
           
ONE
           
TWO
           
ZERO
          the possible header values: 1, 2, infinity.
 
Method Summary
static Depth getDepth(javax.servlet.http.HttpServletRequest req)
          parses the <em>Depth</em> header from the request and returns the fitting value.
static Depth valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Depth[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ZERO

public static final Depth ZERO
the possible header values: 1, 2, infinity.


ONE

public static final Depth ONE

TWO

public static final Depth TWO

INFINITY

public static final Depth INFINITY
Method Detail

values

public static final Depth[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Depth c : Depth.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Depth valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getDepth

public static final Depth getDepth(javax.servlet.http.HttpServletRequest req)
parses the <em>Depth</em> header from the request and returns the fitting value.

Parameters:
req - the current request
Returns:
the depth