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 DAVMethod

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

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

represents the request methods for DAV.

Version:
$Revision: 1432 $
Author:
Thomas Weber

Enum Constant Summary
COPY
          COPY method.
DELETE
          DELETE method.
GET
          GET method.
HEAD
          HEAD method.
MKCOL
          MKCOL method.
MOVE
          MOVE method.
OPTIONS
          OPTIONS method.
POST
          POST method.
PROPFIND
          PROPFIND method.
PROPPATCH
          PROPPATCH method.
PUT
          PUT method.
UNDEFINED
          unknown method.
 
Method Summary
 java.lang.String getMethodName()
          get the name of the method as a string.
protected static DAVMethod parseMethod(HttpDAVServletRequest request)
          parses the DAVMethod from the request.
static DAVMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DAVMethod[] 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

OPTIONS

public static final DAVMethod OPTIONS
OPTIONS method.


PROPFIND

public static final DAVMethod PROPFIND
PROPFIND method.


PROPPATCH

public static final DAVMethod PROPPATCH
PROPPATCH method.


MKCOL

public static final DAVMethod MKCOL
MKCOL method.


GET

public static final DAVMethod GET
GET method.


HEAD

public static final DAVMethod HEAD
HEAD method.


POST

public static final DAVMethod POST
POST method.


DELETE

public static final DAVMethod DELETE
DELETE method.


PUT

public static final DAVMethod PUT
PUT method.


COPY

public static final DAVMethod COPY
COPY method.


MOVE

public static final DAVMethod MOVE
MOVE method.


UNDEFINED

public static final DAVMethod UNDEFINED
unknown method.

Method Detail

values

public static final DAVMethod[] 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(DAVMethod c : DAVMethod.values())
        System.out.println(c);

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

valueOf

public static DAVMethod 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

getMethodName

public final java.lang.String getMethodName()
get the name of the method as a string.

Returns:
the name of the method

parseMethod

protected static DAVMethod parseMethod(HttpDAVServletRequest request)
parses the DAVMethod from the request.

Parameters:
request - the request
Returns:
the DAVMethod or null, if no such method exists