String redirect = request.getContextPath() + request.getServletPath() + path + "/?viewer=" + viewer;
response.sendRedirect(redirect);
return;
}
HtmlCollectionViewer v = webAdmin.getCollectionViewer(viewer);
if (v == null) {
response.setStatus(WebdavStatus.SC_NOT_IMPLEMENTED);
return;
}
v.execute(request, response, col);
} else {
HtmlResourceViewer v = webAdmin.getResourceViewer(viewer);
if (v == null) {
response.setStatus(WebdavStatus.SC_NOT_IMPLEMENTED);
return;
}
v.execute(request, response, col, resource);
}
}