org.apache.wink.webdav.server
Class WebDAVUtils

java.lang.Object
  extended by org.apache.wink.webdav.server.WebDAVUtils

public class WebDAVUtils
extends java.lang.Object


Constructor Summary
WebDAVUtils()
           
 
Method Summary
static javax.ws.rs.core.Response getOptions(javax.ws.rs.core.UriInfo info)
          Provides a default response with two additional headers for WebDAV and MS compatibility.
static javax.ws.rs.core.Response msCompatibilityLock(java.lang.String body)
          This method does not perform a real lock but returns a 'dummy' lock response for compatibility with MS Windows.
static javax.ws.rs.core.Response msCompatibilityUnlock()
          This method does not perform a real unlock but returns a NO_CONTENT response for compatibility with MS Windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDAVUtils

public WebDAVUtils()
Method Detail

getOptions

public static javax.ws.rs.core.Response getOptions(javax.ws.rs.core.UriInfo info)
Provides a default response with two additional headers for WebDAV and MS compatibility.

Returns:

msCompatibilityLock

public static javax.ws.rs.core.Response msCompatibilityLock(java.lang.String body)
This method does not perform a real lock but returns a 'dummy' lock response for compatibility with MS Windows. It opens any resource as read-only file when a lock is not received.

Parameters:
body - the lock request xml
Returns:
a response instance

msCompatibilityUnlock

public static javax.ws.rs.core.Response msCompatibilityUnlock()
This method does not perform a real unlock but returns a NO_CONTENT response for compatibility with MS Windows.

Returns:
a response instance


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.