public class DoCopy extends AbstractMethod
BUF_SIZE, CREATION_DATE_FORMAT, DEFAULT_TIMEOUT, INFINITY, LAST_MODIFIED_DATE_FORMAT, LOCAL_DATE_FORMAT, MAX_TIMEOUT, TEMP_TIMEOUT, TEMPORARY, URL_ENCODER
Constructor and Description |
---|
DoCopy(IWebdavStore store,
ResourceLocks resourceLocks,
DoDelete doDelete,
boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
copyResource(ITransaction transaction,
HttpServletRequest req,
HttpServletResponse resp)
Copy a resource.
|
void |
execute(ITransaction transaction,
HttpServletRequest req,
HttpServletResponse resp) |
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.
|
creationDateFormat, getCleanPath, getDepth, getDocumentBuilder, getETag, getLocalDateFormat, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getParentPath, getRelativePath, isUnlocked, lastModifiedDateFormat, rewriteUrl, sendReport
public DoCopy(IWebdavStore store, ResourceLocks resourceLocks, DoDelete doDelete, boolean readOnly)
public void execute(ITransaction transaction, HttpServletRequest req, HttpServletResponse resp) throws IOException, LockFailedException
IOException
LockFailedException
public boolean copyResource(ITransaction transaction, HttpServletRequest req, HttpServletResponse resp) throws WebdavException, IOException, LockFailedException
transaction
- indicates that the method is within the scope of a WebDAV transactionreq
- Servlet requestresp
- Servlet responseWebdavException
- if an error in the underlying store occursIOException
- when an error occurs while sending the responseLockFailedException
protected String normalize(String path)
null
instead.path
- Path to be normalizedCopyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.