serveRequest(new BridgeRepository(null), req.getContextPath()+"/plugin/repository");
}
public void serveRequest(IDavRepo repo, String root) {
StaplerRequest req = Stapler.getCurrentRequest();
StaplerResponse rsp = Stapler.getCurrentResponse();
try
{
if (repo.getMimeTypeResolver() == null)
{
ServletContextMimeTypeResolver ctx = new ServletContextMimeTypeResolver();
ctx.setServletContext(req.getSession().getServletContext());
repo.setMimeTypeResolver(ctx);
}
IMethod method = methodFactory.createMethod(req, rsp);
method.init(req, rsp, null, repo, root);
method.invoke();