public DAVMakeActivityHandler(DAVRepositoryManager repositoryManager, HttpServletRequest request, HttpServletResponse response) {
super(repositoryManager, request, response);
}
public void execute() throws SVNException {
DAVResource resource = getRequestedDAVResource(false, false);
FSRepository repos = (FSRepository) resource.getRepository();
myFSFS = repos.getFSFS();
readInput(true);
if (resource.exists()) {
throw new DAVException("<DAV:resource-must-be-null/>", HttpServletResponse.SC_CONFLICT, SVNLogType.NETWORK);
}
if (!resource.canBeActivity()) {
throw new DAVException("<DAV:activity-location-ok/>", HttpServletResponse.SC_FORBIDDEN, SVNLogType.NETWORK);
}
try {
makeActivity(resource);
} catch (DAVException dave) {
throw new DAVException("Could not create activity {0}.", new Object[] { SVNEncodingUtil.xmlEncodeCDATA(resource.getResourceURI().getURI()) },
dave.getResponseCode(), null, SVNLogType.NETWORK, Level.FINE, dave, null, null, 0, null);
}
setResponseHeader(CACHE_CONTROL_HEADER, CACHE_CONTROL_VALUE);
handleDAVCreated(resource.getResourceURI().getURI(), "Activity", false);
}