Package org.alfresco.repo.webdav
Class WebDAV
java.lang.Object
org.alfresco.repo.webdav.WebDAV
Helper class used by the WebDAV protocol handling classes
- Author:
- gavinc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final char
static final String
static final String
static final String
static final String
static final String
static final int
static final short
static final int
static final String
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
/** Returns a context-relative path, beginning with a "/", that represents the canonical version of the specified path after ".." and "." elements are resolved out.static String
formatCreationDate
(long ldate) Formats the given date so that it conforms with the WebDAV creation date/time formatstatic String
formatCreationDate
(Date date) Formats the given date so that it conforms with the WebDAV creation date/time formatstatic String
formatHeaderDate
(long ldate) Formats the given date for use in the HTTP headerstatic String
formatHeaderDate
(Date date) Formats the given date for use in the HTTP headerstatic String
formatModifiedDate
(long ldate) Formats the given date so that it conforms with the Last-Modified HTTP headerstatic String
formatModifiedDate
(Date date) Formats the given date so that it conforms with the Last-Modified HTTP headerstatic Object
getDAVPropertyValue
(Map<org.alfresco.service.namespace.QName, Serializable> props, String davPropName) Return the Alfresco property value for the specified WebDAV propertystatic final String
getDepthName
(int depth) Returns string representation of the depthstatic final String
makeLockToken
(NodeRef lockNode, String owner) Make a unique lock tokenstatic final String[]
parseLockToken
(String lockToken) Parse a lock token returning the node if and username
-
Field Details
-
DAV_NS
- See Also:
-
DAV_NS_PREFIX
- See Also:
-
DEPTH_0
public static final int DEPTH_0- See Also:
-
DEPTH_1
public static final int DEPTH_1- See Also:
-
DEPTH_INFINITY
public static final int DEPTH_INFINITY- See Also:
-
TIMEOUT_INFINITY
public static final short TIMEOUT_INFINITY- See Also:
-
TIMEOUT_24_HOURS
public static final int TIMEOUT_24_HOURS- See Also:
-
WEBDAV_SC_MULTI_STATUS
public static final int WEBDAV_SC_MULTI_STATUS- See Also:
-
WEBDAV_SC_LOCKED
public static final int WEBDAV_SC_LOCKED- See Also:
-
WEBDAV_SC_FAILED_DEPENDENCY
public static final int WEBDAV_SC_FAILED_DEPENDENCY- See Also:
-
WEBDAV_SC_FAILED_DEPENDENCY_DESC
- See Also:
-
SC_OK_DESC
- See Also:
-
SC_NOT_FOUND_DESC
- See Also:
-
SC_FORBIDDEN_DESC
- See Also:
-
METHOD_PUT
- See Also:
-
METHOD_POST
- See Also:
-
METHOD_GET
- See Also:
-
METHOD_DELETE
- See Also:
-
METHOD_HEAD
- See Also:
-
METHOD_OPTIONS
- See Also:
-
METHOD_PROPFIND
- See Also:
-
METHOD_PROPPATCH
- See Also:
-
METHOD_MKCOL
- See Also:
-
METHOD_MOVE
- See Also:
-
METHOD_COPY
- See Also:
-
METHOD_LOCK
- See Also:
-
METHOD_UNLOCK
- See Also:
-
HEADER_CONTENT_LENGTH
- See Also:
-
HEADER_CONTENT_TYPE
- See Also:
-
HEADER_DEPTH
- See Also:
-
HEADER_DESTINATION
- See Also:
-
HEADER_ETAG
- See Also:
-
HEADER_EXPECT
- See Also:
-
HEADER_EXPECT_CONTENT
- See Also:
-
HEADER_IF
- See Also:
-
HEADER_IF_MATCH
- See Also:
-
HEADER_IF_MODIFIED_SINCE
- See Also:
-
HEADER_IF_NONE_MATCH
- See Also:
-
HEADER_IF_RANGE
- See Also:
-
HEADER_IF_UNMODIFIED_SINCE
- See Also:
-
HEADER_LAST_MODIFIED
- See Also:
-
HEADER_LOCK_TOKEN
- See Also:
-
HEADER_OVERWRITE
- See Also:
-
HEADER_RANGE
- See Also:
-
HEADER_TIMEOUT
- See Also:
-
HEADER_USER_AGENT
- See Also:
-
HEADER_IF_DATE_FORMAT
- See Also:
-
HEADER_KEY_NOT
- See Also:
-
AGENT_MICROSOFT_DATA_ACCESS_INTERNET_PUBLISHING_PROVIDER_DAV
- See Also:
-
AGENT_INTERNET_EXPLORER
- See Also:
-
ASTERISK
- See Also:
-
DEFAULT_NAMESPACE_URI
- See Also:
-
FAKE_TOKEN
- See Also:
-
HTTP1_1
- See Also:
-
INFINITE
- See Also:
-
INFINITY
- See Also:
-
OPAQUE_LOCK_TOKEN
- See Also:
-
NAMESPACE_SEPARATOR
- See Also:
-
SECOND
- See Also:
-
HEADER_VALUE_SEPARATOR
- See Also:
-
ZERO
- See Also:
-
ONE
- See Also:
-
F
- See Also:
-
XML_NS
- See Also:
-
XML_ACTIVE_LOCK
- See Also:
-
XML_ALLPROP
- See Also:
-
XML_COLLECTION
- See Also:
-
XML_CREATION_DATE
- See Also:
-
XML_DEPTH
- See Also:
-
XML_DISPLAYNAME
- See Also:
-
XML_EXCLUSIVE
- See Also:
-
XML_GET_CONTENT_LANGUAGE
- See Also:
-
XML_GET_CONTENT_LENGTH
- See Also:
-
XML_GET_CONTENT_TYPE
- See Also:
-
XML_GET_ETAG
- See Also:
-
XML_GET_LAST_MODIFIED
- See Also:
-
XML_HREF
- See Also:
-
XML_LOCK_DISCOVERY
- See Also:
-
XML_LOCK_ENTRY
- See Also:
-
XML_LOCK_SCOPE
- See Also:
-
XML_LOCK_TOKEN
- See Also:
-
XML_LOCK_TYPE
- See Also:
-
XML_MULTI_STATUS
- See Also:
-
XML_OWNER
- See Also:
-
XML_PROP
- See Also:
-
XML_PROPNAME
- See Also:
-
XML_PROPSTAT
- See Also:
-
XML_RESOURCE_TYPE
- See Also:
-
XML_RESPONSE
- See Also:
-
XML_SHARED
- See Also:
-
XML_SOURCE
- See Also:
-
XML_STATUS
- See Also:
-
XML_SUPPORTED_LOCK
- See Also:
-
XML_TIMEOUT
- See Also:
-
XML_WRITE
- See Also:
-
XML_SET
- See Also:
-
XML_REMOVE
- See Also:
-
XML_ERROR
- See Also:
-
XML_NS_ACTIVE_LOCK
- See Also:
-
XML_NS_ALLPROP
- See Also:
-
XML_NS_COLLECTION
- See Also:
-
XML_NS_CREATION_DATE
- See Also:
-
XML_NS_DEPTH
- See Also:
-
XML_NS_DISPLAYNAME
- See Also:
-
XML_NS_EXCLUSIVE
- See Also:
-
XML_NS_GET_CONTENT_LANGUAGE
- See Also:
-
XML_NS_GET_CONTENT_LENGTH
- See Also:
-
XML_NS_GET_CONTENT_TYPE
- See Also:
-
XML_NS_GET_ETAG
- See Also:
-
XML_NS_GET_LAST_MODIFIED
- See Also:
-
XML_NS_HREF
- See Also:
-
XML_NS_LOCK_DISCOVERY
- See Also:
-
XML_NS_LOCK_ENTRY
- See Also:
-
XML_NS_LOCK_SCOPE
- See Also:
-
XML_NS_LOCK_TOKEN
- See Also:
-
XML_NS_LOCK_TYPE
- See Also:
-
XML_NS_MULTI_STATUS
- See Also:
-
XML_NS_OWNER
- See Also:
-
XML_NS_PROP
- See Also:
-
XML_NS_PROPNAME
- See Also:
-
XML_NS_PROPSTAT
- See Also:
-
XML_NS_RESOURCE_TYPE
- See Also:
-
XML_NS_RESPONSE
- See Also:
-
XML_NS_SHARED
- See Also:
-
XML_NS_SOURCE
- See Also:
-
XML_NS_STATUS
- See Also:
-
XML_NS_SUPPORTED_LOCK
- See Also:
-
XML_NS_TIMEOUT
- See Also:
-
XML_NS_WRITE
- See Also:
-
XML_NS_ERROR
- See Also:
-
XML_NS_CANNOT_MODIFY_PROTECTED_PROPERTY
- See Also:
-
XML_CONTENT_TYPE
- See Also:
-
XML_ALF_AUTHTICKET
- See Also:
-
XML_NS_ALF_AUTHTICKET
- See Also:
-
PathSeperator
- See Also:
-
PathSeperatorChar
public static final char PathSeperatorChar- See Also:
-
LOCK_TOKEN_SEPERATOR
- See Also:
-
RootPath
- See Also:
-
-
Constructor Details
-
WebDAV
public WebDAV()
-
-
Method Details
-
formatModifiedDate
Formats the given date so that it conforms with the Last-Modified HTTP header- Parameters:
date
- The date to format- Returns:
- The formatted date string
-
formatModifiedDate
Formats the given date so that it conforms with the Last-Modified HTTP header- Parameters:
ldate
- long- Returns:
- The formatted date string
-
formatCreationDate
Formats the given date so that it conforms with the WebDAV creation date/time format- Parameters:
date
- The date to format- Returns:
- The formatted date string
-
formatCreationDate
Formats the given date so that it conforms with the WebDAV creation date/time format- Parameters:
ldate
- long- Returns:
- The formatted date string
-
formatHeaderDate
Formats the given date for use in the HTTP header- Parameters:
date
- Date- Returns:
- String
-
formatHeaderDate
Formats the given date for use in the HTTP header- Parameters:
ldate
- long- Returns:
- String
-
getDAVPropertyValue
public static Object getDAVPropertyValue(Map<org.alfresco.service.namespace.QName, Serializable> props, String davPropName) Return the Alfresco property value for the specified WebDAV property- Parameters:
davPropName
- String- Returns:
- Object
-
decodeURL
/** Returns a context-relative path, beginning with a "/", that represents the canonical version of the specified path after ".." and "." elements are resolved out. If the specified path attempts to go outside the boundaries of the current context (i.e. too many ".." path elements are present), returnnull
instead.- Parameters:
strPath
- The path to be decoded
-
makeLockToken
Make a unique lock token- Parameters:
lockNode
- NodeRefowner
- String- Returns:
- String
-
parseLockToken
Parse a lock token returning the node if and username- Parameters:
lockToken
- String- Returns:
- String[]
-
getDepthName
Returns string representation of the depth- Parameters:
depth
- int- Returns:
- String
-