Class DoCopy

All Implemented Interfaces:
IMethodExecutor

public class DoCopy extends AbstractMethod
  • Constructor Details

  • Method Details

    • execute

      public void execute(ITransaction transaction, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException, LockFailedException
      Throws:
      IOException
      LockFailedException
    • copyResource

      public boolean copyResource(ITransaction transaction, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws WebdavException, IOException
      Copy a resource.
      Parameters:
      transaction - indicates that the method is within the scope of a WebDAV transaction
      req - Servlet request
      resp - Servlet response
      Returns:
      true if the copy is successful
      Throws:
      WebdavException - if an error in the underlying store occurs
      IOException - when an error occurs while sending the response
    • normalize

      protected String normalize(String path)
      Return a context-relative path, beginning with a "/", that represents the canonical version of the specified path after ".." and "." elements are resolved out. If the specified path attempts to go outside the boundaries of the current context (i.e. too many ".." path elements are present), return null instead.
      Parameters:
      path - path to be normalized
      Returns:
      normalized path