public class WebDAV extends Object
Constructor and Description |
---|
WebDAV() |
Modifier and Type | Method and Description |
---|---|
static String |
decodeURL(String strPath)
/**
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(Date date)
Formats the given date so that it conforms with the WebDAV creation date/time format
|
static String |
formatCreationDate(long ldate)
Formats the given date so that it conforms with the WebDAV creation date/time format
|
static String |
formatHeaderDate(Date date)
Formats the given date for use in the HTTP header
|
static String |
formatHeaderDate(long ldate)
Formats the given date for use in the HTTP header
|
static String |
formatModifiedDate(Date date)
Formats the given date so that it conforms with the Last-Modified HTTP header
|
static String |
formatModifiedDate(long ldate)
Formats the given date so that it conforms with the Last-Modified HTTP header
|
static Object |
getDAVPropertyValue(Map<org.alfresco.service.namespace.QName,Serializable> props,
String davPropName)
Return the Alfresco property value for the specified WebDAV property
|
static String |
getDepthName(int depth)
Returns string representation of the depth
|
static String |
makeLockToken(org.alfresco.service.cmr.repository.NodeRef lockNode,
String owner)
Make a unique lock token
|
static String[] |
parseLockToken(String lockToken)
Parse a lock token returning the node if and username
|
public static final String DAV_NS
public static final String DAV_NS_PREFIX
public static final int DEPTH_0
public static final int DEPTH_1
public static final int DEPTH_INFINITY
public static final short TIMEOUT_INFINITY
public static final int TIMEOUT_24_HOURS
public static final int WEBDAV_SC_MULTI_STATUS
public static final int WEBDAV_SC_LOCKED
public static final int WEBDAV_SC_FAILED_DEPENDENCY
public static final String WEBDAV_SC_FAILED_DEPENDENCY_DESC
public static final String SC_OK_DESC
public static final String SC_NOT_FOUND_DESC
public static final String SC_FORBIDDEN_DESC
public static final String METHOD_PUT
public static final String METHOD_POST
public static final String METHOD_GET
public static final String METHOD_DELETE
public static final String METHOD_HEAD
public static final String METHOD_OPTIONS
public static final String METHOD_PROPFIND
public static final String METHOD_PROPPATCH
public static final String METHOD_MKCOL
public static final String METHOD_MOVE
public static final String METHOD_COPY
public static final String METHOD_LOCK
public static final String METHOD_UNLOCK
public static final String HEADER_CONTENT_LENGTH
public static final String HEADER_CONTENT_TYPE
public static final String HEADER_DEPTH
public static final String HEADER_DESTINATION
public static final String HEADER_ETAG
public static final String HEADER_EXPECT
public static final String HEADER_EXPECT_CONTENT
public static final String HEADER_IF
public static final String HEADER_IF_MATCH
public static final String HEADER_IF_MODIFIED_SINCE
public static final String HEADER_IF_NONE_MATCH
public static final String HEADER_IF_RANGE
public static final String HEADER_IF_UNMODIFIED_SINCE
public static final String HEADER_LAST_MODIFIED
public static final String HEADER_LOCK_TOKEN
public static final String HEADER_OVERWRITE
public static final String HEADER_RANGE
public static final String HEADER_TIMEOUT
public static final String HEADER_USER_AGENT
public static final String HEADER_IF_DATE_FORMAT
public static final String HEADER_KEY_NOT
public static final String AGENT_MICROSOFT_DATA_ACCESS_INTERNET_PUBLISHING_PROVIDER_DAV
public static final String AGENT_INTERNET_EXPLORER
public static final String ASTERISK
public static final String DEFAULT_NAMESPACE_URI
public static final String FAKE_TOKEN
public static final String HTTP1_1
public static final String INFINITE
public static final String INFINITY
public static final String OPAQUE_LOCK_TOKEN
public static final String NAMESPACE_SEPARATOR
public static final String SECOND
public static final String HEADER_VALUE_SEPARATOR
public static final String ZERO
public static final String ONE
public static final String F
public static final String XML_NS
public static final String XML_ACTIVE_LOCK
public static final String XML_ALLPROP
public static final String XML_COLLECTION
public static final String XML_CREATION_DATE
public static final String XML_DEPTH
public static final String XML_DISPLAYNAME
public static final String XML_EXCLUSIVE
public static final String XML_GET_CONTENT_LANGUAGE
public static final String XML_GET_CONTENT_LENGTH
public static final String XML_GET_CONTENT_TYPE
public static final String XML_GET_ETAG
public static final String XML_GET_LAST_MODIFIED
public static final String XML_HREF
public static final String XML_LOCK_DISCOVERY
public static final String XML_LOCK_ENTRY
public static final String XML_LOCK_SCOPE
public static final String XML_LOCK_TOKEN
public static final String XML_LOCK_TYPE
public static final String XML_MULTI_STATUS
public static final String XML_OWNER
public static final String XML_PROP
public static final String XML_PROPNAME
public static final String XML_PROPSTAT
public static final String XML_RESOURCE_TYPE
public static final String XML_RESPONSE
public static final String XML_SHARED
public static final String XML_SOURCE
public static final String XML_STATUS
public static final String XML_SUPPORTED_LOCK
public static final String XML_TIMEOUT
public static final String XML_WRITE
public static final String XML_SET
public static final String XML_REMOVE
public static final String XML_ERROR
public static final String XML_NS_ACTIVE_LOCK
public static final String XML_NS_ALLPROP
public static final String XML_NS_COLLECTION
public static final String XML_NS_CREATION_DATE
public static final String XML_NS_DEPTH
public static final String XML_NS_DISPLAYNAME
public static final String XML_NS_EXCLUSIVE
public static final String XML_NS_GET_CONTENT_LANGUAGE
public static final String XML_NS_GET_CONTENT_LENGTH
public static final String XML_NS_GET_CONTENT_TYPE
public static final String XML_NS_GET_ETAG
public static final String XML_NS_GET_LAST_MODIFIED
public static final String XML_NS_HREF
public static final String XML_NS_LOCK_DISCOVERY
public static final String XML_NS_LOCK_ENTRY
public static final String XML_NS_LOCK_SCOPE
public static final String XML_NS_LOCK_TOKEN
public static final String XML_NS_LOCK_TYPE
public static final String XML_NS_MULTI_STATUS
public static final String XML_NS_OWNER
public static final String XML_NS_PROP
public static final String XML_NS_PROPNAME
public static final String XML_NS_PROPSTAT
public static final String XML_NS_RESOURCE_TYPE
public static final String XML_NS_RESPONSE
public static final String XML_NS_SHARED
public static final String XML_NS_SOURCE
public static final String XML_NS_STATUS
public static final String XML_NS_SUPPORTED_LOCK
public static final String XML_NS_TIMEOUT
public static final String XML_NS_WRITE
public static final String XML_NS_ERROR
public static final String XML_NS_CANNOT_MODIFY_PROTECTED_PROPERTY
public static final String XML_CONTENT_TYPE
public static final String XML_ALF_AUTHTICKET
public static final String XML_NS_ALF_AUTHTICKET
public static final String PathSeperator
public static final char PathSeperatorChar
public static final String LOCK_TOKEN_SEPERATOR
public static final String RootPath
public static String formatModifiedDate(Date date)
date
- The date to formatpublic static String formatModifiedDate(long ldate)
ldate
- longpublic static String formatCreationDate(Date date)
date
- The date to formatpublic static String formatCreationDate(long ldate)
ldate
- longpublic static String formatHeaderDate(Date date)
date
- Datepublic static String formatHeaderDate(long ldate)
ldate
- longpublic static Object getDAVPropertyValue(Map<org.alfresco.service.namespace.QName,Serializable> props, String davPropName)
davPropName
- Stringpublic static String decodeURL(String strPath)
null
instead.strPath
- The path to be decodedpublic static final String makeLockToken(org.alfresco.service.cmr.repository.NodeRef lockNode, String owner)
lockNode
- NodeRefowner
- Stringpublic static final String[] parseLockToken(String lockToken)
lockToken
- Stringpublic static final String getDepthName(int depth)
depth
- intCopyright © 2005–2017 Alfresco Software. All rights reserved.