public class DoCopy extends WebDavMethod
BUF_SIZE, CREATION_DATE_FORMAT, DEFAULT_TIMEOUT, INFINITY, LAST_MODIFIED_DATE_FORMAT, MAX_TIMEOUT, TEMP_TIMEOUT, TEMPORARY
Constructor and Description |
---|
DoCopy(WebDavStore store,
DoDelete doDelete) |
Modifier and Type | Method and Description |
---|---|
boolean |
copyResource(RequestContext requestContext)
Copy a resource.
|
void |
execute(RequestContext requestContext)
To be implemented by concrete method.
|
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.
|
checkLocks, determineMethodsAllowed, encodeURL, getCleanPath, getDefaultMethodsAllowed, getDepth, getDocumentBuilder, getETag, getFolderMethodsAllowed, getHRef, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getNullResourceMethodsAllowed, getParentPath, getRelativePath, getRelativePath, getResourceMethodsAllowed, getVersion, sendReport
public DoCopy(WebDavStore store, DoDelete doDelete)
public void execute(RequestContext requestContext) throws IOException, LockFailedException
WebDavMethod
execute
in class WebDavMethod
IOException
LockFailedException
public boolean copyResource(RequestContext requestContext) throws WebdavException, IOException, LockFailedException
requestContext
- 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 normalizedThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.