com.bradmcevoy.http.webdav
Class CopyHandler
java.lang.Object
com.bradmcevoy.http.webdav.CopyHandler
- All Implemented Interfaces:
- ExistingEntityHandler, Handler, ResourceHandler
public class CopyHandler
- extends java.lang.Object
- implements ExistingEntityHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyHandler
public CopyHandler(WebDavResponseHandler responseHandler,
HandlerHelper handlerHelper,
ResourceHandlerHelper resourceHandlerHelper)
getMethods
public java.lang.String[] getMethods()
- Specified by:
getMethods in interface Handler
- Returns:
- - the http methods supported by this handler. Must be all upper case.
isCompatible
public boolean isCompatible(Resource handler)
- Specified by:
isCompatible in interface Handler
- Returns:
- - true if the given resource is compatible with this method
processResource
public void processResource(HttpManager manager,
Request request,
Response response,
Resource r)
throws NotAuthorizedException,
ConflictException,
BadRequestException
- Specified by:
processResource in interface ResourceHandler
- Throws:
NotAuthorizedException
ConflictException
BadRequestException
process
public void process(HttpManager httpManager,
Request request,
Response response)
throws ConflictException,
NotAuthorizedException,
BadRequestException
- Specified by:
process in interface Handler
- Throws:
ConflictException
NotAuthorizedException
BadRequestException
processExistingResource
public void processExistingResource(HttpManager manager,
Request request,
Response response,
Resource resource)
throws NotAuthorizedException,
BadRequestException,
ConflictException
- Specified by:
processExistingResource in interface ExistingEntityHandler
- Throws:
NotAuthorizedException
BadRequestException
ConflictException
setDeleteExistingBeforeCopy
public void setDeleteExistingBeforeCopy(boolean deleteExistingBeforeCopy)
isDeleteExistingBeforeCopy
public boolean isDeleteExistingBeforeCopy()
getUserAgentHelper
public UserAgentHelper getUserAgentHelper()
setUserAgentHelper
public void setUserAgentHelper(UserAgentHelper userAgentHelper)
Copyright © 2011. All Rights Reserved.