Class WebDavHttpMethodPlugin

java.lang.Object
org.exoplatform.documents.webdav.plugin.WebDavHttpMethodPlugin
Direct Known Subclasses:
CheckinWebDavHandler, CheckoutWebDavHandler, CopyWebDavHandler, DeleteWebDavHandler, GetWebDavHandler, HeadWebDavHandler, LockWebDavHandler, MkcolWebDavHandler, MoveWebDavHandler, OptionsWebDavHandler, OrderPatchWebDavHandler, PropFindWebDavHandler, PropPatchWebDavHandler, PutWebDavHandler, ReportWebDavHandler, SearchWebDavHandler, UncheckoutWebDavHandler, UnlockWebDavHandler, VersionControlWebDavHandler, WebDavErrorHandler

public abstract class WebDavHttpMethodPlugin extends Object
  • Field Details

    • CONTEXT_PATH

      public static final String CONTEXT_PATH
      See Also:
    • CONTEXT_PATH_ROOT

      public static final String CONTEXT_PATH_ROOT
      See Also:
    • CONTEXT_PATH_SINGLE_DRIVE

      public static final String CONTEXT_PATH_SINGLE_DRIVE
      See Also:
    • CONTEXT_PATH_SINGLE_DRIVE_ROOT

      public static final String CONTEXT_PATH_SINGLE_DRIVE_ROOT
      See Also:
    • OPAQUE_LOCK_TOKEN

      public static final String OPAQUE_LOCK_TOKEN
      See Also:
    • INFINITY_DEPTH

      public static final String INFINITY_DEPTH
      See Also:
    • IF_MODIFIED_SINCE_PATTERN

      public static final String IF_MODIFIED_SINCE_PATTERN
      See Also:
    • DEFAULT_XML_ENCODING

      public static final String DEFAULT_XML_ENCODING
    • LOG

      protected static final org.exoplatform.services.log.Log LOG
    • documentWebDavService

      @Autowired protected org.exoplatform.documents.webdav.service.DocumentWebDavService documentWebDavService
  • Constructor Details

    • WebDavHttpMethodPlugin

      protected WebDavHttpMethodPlugin(String method)
  • Method Details

    • handle

      public abstract void handle(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) throws org.exoplatform.documents.webdav.model.WebDavException
      Handles the WebDav Request switch designated method
      Parameters:
      httpRequest - HttpServletRequest
      httpResponse - HttpServletResponse
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException - when an error happened while handling the operation
    • getLockTokens

      protected List<String> getLockTokens(jakarta.servlet.http.HttpServletRequest httpRequest)
      Creates the list of Lock tokens from Lock-Token and If headers.
      Parameters:
      httpRequest - HttpServletRequest
      Returns:
      the List of lock tokens hold by current WebDav Session sent in HTTP Request Headers
    • getResourcePath

      protected String getResourcePath(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getResourceUri

      protected URI getResourceUri(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getBaseUrl

      protected String getBaseUrl(jakarta.servlet.http.HttpServletRequest httpRequest)
    • parseRequestBodyAsWebDavItemProperty

      protected org.exoplatform.documents.webdav.model.WebDavItemProperty parseRequestBodyAsWebDavItemProperty(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getDepth

      protected String getDepth(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getDepthInt

      protected int getDepthInt(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getDestinationPath

      protected String getDestinationPath(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getOverwriteParameter

      protected boolean getOverwriteParameter(jakarta.servlet.http.HttpServletRequest httpRequest)
    • getRemoveDestinationParameter

      protected boolean getRemoveDestinationParameter(jakarta.servlet.http.HttpServletRequest httpRequest)
    • checkModified

      protected boolean checkModified(jakarta.servlet.http.HttpServletRequest httpRequest, String resourcePath, String version)
    • writeResponse

      protected void writeResponse(jakarta.servlet.http.HttpServletResponse httpResponse, int httpCode, String content)
    • getRequestedPropertyStats

      public final Map<String,Collection<org.exoplatform.documents.webdav.model.WebDavItemProperty>> getRequestedPropertyStats(org.exoplatform.documents.webdav.model.WebDavItem resource, Set<QName> requestPropertyNames)
    • getRequestPropertyNames

      protected Set<QName> getRequestPropertyNames(org.exoplatform.documents.webdav.model.WebDavItemProperty body)
    • getRequestPropertyType

      protected String getRequestPropertyType(org.exoplatform.documents.webdav.model.WebDavItemProperty body)