Package org.apache.ofbiz.webapp.webdav
Class WebDavUtil
java.lang.Object
org.apache.ofbiz.webapp.webdav.WebDavUtil
Utility methods needed to implement a WebDAV servlet.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatDate
(String formatString, Date date) Returns aMap
containing user credentials found in the request.static Document
getDocumentFromRequest
(HttpServletRequest request) static String
-
Method Details
-
formatDate
-
getDocumentFromRequest
public static Document getDocumentFromRequest(HttpServletRequest request) throws IOException, SAXException, ParserConfigurationException -
getCredentialsFromRequest
Returns aMap
containing user credentials found in the request. Returnsnull
if no user credentials were found. The returnedMap
is intended to be used as parameters for theuserLogin
service.The method checks for the request parameters
USERNAME
andPASSWORD
. 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
containinglogin.username
andlogin.password
elements.
-
getRFC1123DateFormat
-