org.alfresco.repo.webdav
Class HierarchicalMethod

java.lang.Object
  extended by org.alfresco.repo.webdav.WebDAVMethod
      extended by org.alfresco.repo.webdav.HierarchicalMethod
Direct Known Subclasses:
AbstractMoveOrCopyMethod

public abstract class HierarchicalMethod
extends WebDAVMethod

Abstract base class for the hierarchical methods COPY and MOVE


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.webdav.WebDAVMethod
WebDAVMethod.Condition
 
Field Summary
protected  boolean m_overwrite
           
protected  java.lang.String m_strDestinationPath
           
 
Fields inherited from class org.alfresco.repo.webdav.WebDAVMethod
logger, m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent
 
Constructor Summary
HierarchicalMethod()
          Default constructor
 
Method Summary
protected  void checkDestinationPath(java.lang.String path)
          Check that the destination path is on this server and is a valid WebDAV path for this server
 java.lang.String getDestinationPath()
          Return the destination path
 boolean hasOverWrite()
          Return the overwrite setting
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, executeImpl, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, getActionService, getAuthenticationService, getContentService, getDAVHelper, getDepth, getFileFolderService, getLockService, getMimetypeService, getNamespaceService, getNodeForPath, getNodeLockInfo, getNodeService, getPath, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getStatusForAccessDeniedException, getTransactionService, getURLForPath, getWorkingCopy, isReadOnly, parseDepthHeader, parseIfHeader, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_strDestinationPath

protected java.lang.String m_strDestinationPath

m_overwrite

protected boolean m_overwrite
Constructor Detail

HierarchicalMethod

public HierarchicalMethod()
Default constructor

Method Detail

getDestinationPath

public final java.lang.String getDestinationPath()
Return the destination path

Returns:
String

hasOverWrite

public final boolean hasOverWrite()
Return the overwrite setting

Returns:
boolean

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

checkDestinationPath

protected final void checkDestinationPath(java.lang.String path)
                                   throws WebDAVServerException
Check that the destination path is on this server and is a valid WebDAV path for this server

Parameters:
path - String
Throws:
WebDAVServerException


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