/** * New servlet configured with a specific resolver. * * @param resolver * the resolver to use when matching URL to Git repository. If * null the {@code base-path} parameter will be looked for in the * parameter table during init, which usually comes from the * {@code web.xml} file of the web application. */ public void setRepositoryResolver(RepositoryResolver<HttpServletRequest> resolver) { gitFilter.setRepositoryResolver(resolver); }
/** * New servlet configured with a specific resolver. * * @param resolver * the resolver to use when matching URL to Git repository. If * null the {@code base-path} parameter will be looked for in the * parameter table during init, which usually comes from the * {@code web.xml} file of the web application. */ public void setRepositoryResolver(RepositoryResolver<HttpServletRequest> resolver) { gitFilter.setRepositoryResolver(resolver); }
File root = getFile(filterConfig, "base-path"); boolean exportAll = getBoolean(filterConfig, "export-all"); setRepositoryResolver(new FileResolver<HttpServletRequest>(root, exportAll));
File root = getFile(filterConfig, "base-path"); boolean exportAll = getBoolean(filterConfig, "export-all"); setRepositoryResolver(new FileResolver<HttpServletRequest>(root, exportAll));