@Inject protected WebdavServlet(ResourceFactory fact, Injector injector, Objectify ofy) { inj = injector; WebdavUserSecurityManager sm = inject(new WebdavUserSecurityManager(ofy)); NonceProvider np = new AppEngineMemcacheNonceProvider(10 * 60 * 60); List<AuthenticationHandler> authHandlers = new ArrayList<AuthenticationHandler>(); authHandlers.add(new SecurityManagerBasicAuthHandler(sm)); authHandlers.add(new SecurityManagerDigestAuthenticationHandler(np, sm)); AuthenticationService authSvc = new AuthenticationService(authHandlers); DefaultWebDavResponseHandler respHandler = new DefaultWebDavResponseHandler(authSvc); respHandler.setBuffering(BUFFERING.always); httpManager = new ServletHttpManager(fact, respHandler, authSvc); httpManager.addFilter(0, new PreAuthenticationFilter(respHandler, sm, np)); }