org.alfresco.repo.webdav
Class LockMethod

java.lang.Object
  extended by org.alfresco.repo.webdav.WebDAVMethod
      extended by org.alfresco.repo.webdav.LockMethod

public class LockMethod
extends WebDAVMethod

Implements the WebDAV LOCK method


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.webdav.WebDAVMethod
WebDAVMethod.Condition
 
Field Summary
static java.lang.String EMPTY_NS
           
 
Fields inherited from class org.alfresco.repo.webdav.WebDAVMethod
logger, m_conditions, m_davHelper, m_depth, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath
 
Constructor Summary
LockMethod()
          Default constructor
 
Method Summary
protected  void executeImpl()
          Execute the request
protected  void generateLockDiscoveryXML(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.repository.NodeRef lockNode)
          Generates the lock discovery XML response
protected  java.lang.String generateNamespaceDeclarations(java.util.HashMap nameSpaces)
          Generates a list of namespace declarations for the response
protected  int getLockTimeout()
          Return the lock timeout, in minutes
protected  boolean hasLockToken()
          Returns true if request has lock token in the If header
protected  void parseRequestBody()
          Parse the request body
protected  void parseRequestHeaders()
          Parse the request headers
 
Methods inherited from class org.alfresco.repo.webdav.WebDAVMethod
checkNode, checkNode, createXMLWriter, execute, generateLockDiscoveryXML, getAuthenticationService, getContentService, getDAVHelper, getDepth, getFileFolderService, getLockService, getMimetypeService, getNamespaceService, getNodeLockInfo, getNodeService, getPath, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getTransactionService, isReadOnly, parseDepthHeader, parseIfHeader, setDetails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_NS

public static final java.lang.String EMPTY_NS
See Also:
Constant Field Values
Constructor Detail

LockMethod

public LockMethod()
Default constructor

Method Detail

hasLockToken

protected final boolean hasLockToken()
Returns true if request has lock token in the If header

Returns:
boolean

getLockTimeout

protected final int getLockTimeout()
Return the lock timeout, in minutes

Returns:
int

parseRequestHeaders

protected void parseRequestHeaders()
                            throws WebDAVServerException
Parse the request headers

Specified by:
parseRequestHeaders in class WebDAVMethod
Throws:
WebDAVServerException

parseRequestBody

protected void parseRequestBody()
                         throws WebDAVServerException
Parse the request body

Specified by:
parseRequestBody in class WebDAVMethod
Throws:
WebDAVServerException

executeImpl

protected void executeImpl()
                    throws WebDAVServerException,
                           java.lang.Exception
Execute the request

Specified by:
executeImpl in class WebDAVMethod
Throws:
WebDAVServerException
java.lang.Exception - any unhandled exception

generateLockDiscoveryXML

protected void generateLockDiscoveryXML(org.dom4j.io.XMLWriter xml,
                                        org.alfresco.service.cmr.repository.NodeRef lockNode)
                                 throws java.lang.Exception
Generates the lock discovery XML response

Parameters:
xml - XMLWriter
lockNode - NodeRef
Throws:
java.lang.Exception

generateNamespaceDeclarations

protected java.lang.String generateNamespaceDeclarations(java.util.HashMap nameSpaces)
Generates a list of namespace declarations for the response

Overrides:
generateNamespaceDeclarations in class WebDAVMethod


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.