java.lang.Object
org.apache.jackrabbit.webdav.DavMethods

public final class DavMethods extends Object
DavMethods defines constants for the WebDAV METHODS.
  • Field Details

  • Method Details

    • getMethodCode

      public static int getMethodCode(String method)
      Returns webdav method type code, error result <= 0 Valid type codes > 0
    • isCreateRequest

      public static boolean isCreateRequest(DavServletRequest request)
      Returns true if the request is to create a resource. True for PUT, POST, MKCOL and MKWORKSPACE requests.
      Returns:
      true if request method is to create (or replace) a resource
    • isCreateCollectionRequest

      public static boolean isCreateCollectionRequest(DavServletRequest request)
      Returns true if the request is to create a collection resource. True for MKCOL and MKWORKSPACE requests.
      Returns:
      true if request method is to create a new collection resource
    • isMethodAffectedByLabel

      public static boolean isMethodAffectedByLabel(DavServletRequest request)
      Returns true, if the specified method is affected by a Label header
      Parameters:
      request -
      Returns:
    • isDeltaVMethod

      public static boolean isDeltaVMethod(DavServletRequest request)
      Returns true, if the specified method is defined by RFC 3253
      Parameters:
      request -
      Returns:
      true, if the specified method is defined by RFC 3253