/** * @param f * the filter to validate direct access to repository files * through a dumb client. If {@code null} then dumb client * support is completely disabled. */ public void setAsIsFileService(AsIsFileService f) { assertNotInitialized(); this.asIs = f != null ? f : AsIsFileService.DISABLED; }
/** * 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) { assertNotInitialized(); this.resolver = resolver; }
/** * @param f * the factory to construct and configure an {@link UploadPack} * session when a fetch or clone is requested by a client. */ @SuppressWarnings("unchecked") public void setUploadPackFactory(UploadPackFactory<HttpServletRequest> f) { assertNotInitialized(); this.uploadPackFactory = f != null ? f : (UploadPackFactory<HttpServletRequest>)UploadPackFactory.DISABLED; }
/** * @param f * the factory to construct and configure a {@link ReceivePack} * session when a push is requested by a client. */ @SuppressWarnings("unchecked") public void setReceivePackFactory(ReceivePackFactory<HttpServletRequest> f) { assertNotInitialized(); this.receivePackFactory = f != null ? f : (ReceivePackFactory<HttpServletRequest>)ReceivePackFactory.DISABLED; }
/** * @param f * the filter to validate direct access to repository files * through a dumb client. If {@code null} then dumb client * support is completely disabled. */ public void setAsIsFileService(AsIsFileService f) { assertNotInitialized(); this.asIs = f != null ? f : AsIsFileService.DISABLED; }
/** * @param f * the factory to construct and configure a {@link ReceivePack} * session when a push is requested by a client. */ @SuppressWarnings("unchecked") public void setReceivePackFactory(ReceivePackFactory<HttpServletRequest> f) { assertNotInitialized(); this.receivePackFactory = f != null ? f : (ReceivePackFactory<HttpServletRequest>)ReceivePackFactory.DISABLED; }
/** * @param f * the factory to construct and configure an {@link UploadPack} * session when a fetch or clone is requested by a client. */ @SuppressWarnings("unchecked") public void setUploadPackFactory(UploadPackFactory<HttpServletRequest> f) { assertNotInitialized(); this.uploadPackFactory = f != null ? f : (UploadPackFactory<HttpServletRequest>)UploadPackFactory.DISABLED; }
/** * 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) { assertNotInitialized(); this.resolver = resolver; }
/** * @param filter * filter to apply before any of the UploadPack operations. The * UploadPack instance is available in the request attribute * {@link ServletUtils#ATTRIBUTE_HANDLER}. */ public void addUploadPackFilter(Filter filter) { assertNotInitialized(); uploadPackFilters.add(filter); }
/** * @param filter * filter to apply before any of the UploadPack operations. The * UploadPack instance is available in the request attribute * {@link ServletUtils#ATTRIBUTE_HANDLER}. */ public void addUploadPackFilter(Filter filter) { assertNotInitialized(); uploadPackFilters.add(filter); }
/** * @param filter * filter to apply before any of the ReceivePack operations. The * ReceivePack instance is available in the request attribute * {@link ServletUtils#ATTRIBUTE_HANDLER}. */ public void addReceivePackFilter(Filter filter) { assertNotInitialized(); receivePackFilters.add(filter); }
/** * @param filter * filter to apply before any of the ReceivePack operations. The * ReceivePack instance is available in the request attribute * {@link ServletUtils#ATTRIBUTE_HANDLER}. */ public void addReceivePackFilter(Filter filter) { assertNotInitialized(); receivePackFilters.add(filter); }