Class WebDavUtil

java.lang.Object
org.apache.ofbiz.webapp.webdav.WebDavUtil

public final class WebDavUtil extends Object
Utility methods needed to implement a WebDAV servlet.
  • Method Details

    • formatDate

      public static String formatDate(String formatString, Date date)
    • getDocumentFromRequest

      public static Document getDocumentFromRequest(HttpServletRequest request) throws IOException, SAXException, ParserConfigurationException
      Throws:
      IOException
      SAXException
      ParserConfigurationException
    • getCredentialsFromRequest

      public static Map<String,Object> getCredentialsFromRequest(HttpServletRequest request)
      Returns a Map containing user credentials found in the request. Returns null if no user credentials were found. The returned Map is intended to be used as parameters for the userLogin service.

      The method checks for the request parameters USERNAME and PASSWORD. If those aren't found, then the request is checked for the HTTP Authorization header. Currently, only Basic authorization is supported.

      Parameters:
      request - The WebDAV request
      Returns:
      A Map containing login.username and login.password elements.
    • getRFC1123DateFormat

      public static String getRFC1123DateFormat()