Source:
<code>public void initialize(Server server, Injector injector) { final ServletContextHandler root = new ServletContextHandler(ServletContextHandler.SESSIONS); root.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false"); root.setInitParameter("org.eclipse.jetty.servlet.Default.redirectWelcome", "true"); root.setWelcomeFiles(new String[]{"index.html", "console.html"}); ServletHolder holderPwd = new ServletHolder("default", DefaultServlet.class); root.addServlet(holderPwd, "/"); root.setBaseResource( new ResourceCollection( new String[]{ TaskMaster.class.getClassLoader().getResource("static").toExternalForm(), TaskMaster.class.getClassLoader().getResource("indexer_static").toExternalForm() } ) ); final ObjectMapper jsonMapper = injector.getInstance(Key.get(ObjectMapper.class, Json.class)); final AuthenticatorMapper authenticatorMapper = injector.getInstance(AuthenticatorMapper.class); AuthenticationUtils.addSecuritySanityCheckFilter(root, jsonMapper); AuthenticationUtils.addNoopAuthorizationFilters(root, UNSECURED_PATHS); AuthenticationUtils.addNoopAuthorizationFilters(root, authConfig.getUnsecuredPaths()); <START> List<Authenticator> authenticators = authenticatorMapper.getAuthenticatorChain(); <END> AuthenticationUtils.addAuthenticationFilterChain(root, authenticators); AuthenticationUtils.addAllowOptionsFilter(root, authConfig.isAllowUnauthenticatedHttpOptions()); JettyServerInitUtils.addExtensionFilters(root, injector); AuthenticationUtils.addPreResponseAuthorizationCheckFilter( root, authenticators, jsonMapper ); root.addFilter(GuiceFilter.class, "/status/*", null); root.addFilter(GuiceFilter.class, "/druid-internal/*", null); root.addFilter(new FilterHolder(injector.getInstance(RedirectFilter.class)), "/*", null); root.addFilter(GuiceFilter.class, "/druid/*", null); root.addFilter(GuiceFilter.class, "/druid-ext/*", null); HandlerList handlerList = new HandlerList(); handlerList.setHandlers( new Handler[]{ JettyServerInitUtils.getJettyRequestLogHandler(), JettyServerInitUtils.wrapWithDefaultGzipHandler( root, serverConfig.getInflateBufferSize(), serverConfig.getCompressionLevel() ) } ); server.setHandler(handlerList); }</code><technical_language>final</technical_language>

Target:
public void initialize(Server server, Injector injector) { final ServletContextHandler root = new ServletContextHandler(ServletContextHandler.SESSIONS); root.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false"); root.setInitParameter("org.eclipse.jetty.servlet.Default.redirectWelcome", "true"); root.setWelcomeFiles(new String[]{"index.html", "console.html"}); ServletHolder holderPwd = new ServletHolder("default", DefaultServlet.class); root.addServlet(holderPwd, "/"); root.setBaseResource( new ResourceCollection( new String[]{ TaskMaster.class.getClassLoader().getResource("static").toExternalForm(), TaskMaster.class.getClassLoader().getResource("indexer_static").toExternalForm() } ) ); final ObjectMapper jsonMapper = injector.getInstance(Key.get(ObjectMapper.class, Json.class)); final AuthenticatorMapper authenticatorMapper = injector.getInstance(AuthenticatorMapper.class); AuthenticationUtils.addSecuritySanityCheckFilter(root, jsonMapper); AuthenticationUtils.addNoopAuthorizationFilters(root, UNSECURED_PATHS); AuthenticationUtils.addNoopAuthorizationFilters(root, authConfig.getUnsecuredPaths()); final List<Authenticator> authenticators = authenticatorMapper.getAuthenticatorChain(); AuthenticationUtils.addAuthenticationFilterChain(root, authenticators); AuthenticationUtils.addAllowOptionsFilter(root, authConfig.isAllowUnauthenticatedHttpOptions()); JettyServerInitUtils.addExtensionFilters(root, injector); AuthenticationUtils.addPreResponseAuthorizationCheckFilter( root, authenticators, jsonMapper ); root.addFilter(GuiceFilter.class, "/status/*", null); root.addFilter(GuiceFilter.class, "/druid-internal/*", null); root.addFilter(new FilterHolder(injector.getInstance(RedirectFilter.class)), "/*", null); root.addFilter(GuiceFilter.class, "/druid/*", null); root.addFilter(GuiceFilter.class, "/druid-ext/*", null); HandlerList handlerList = new HandlerList(); handlerList.setHandlers( new Handler[]{ JettyServerInitUtils.getJettyRequestLogHandler(), JettyServerInitUtils.wrapWithDefaultGzipHandler( root, serverConfig.getInflateBufferSize(), serverConfig.getCompressionLevel() ) } ); server.setHandler(handlerList); }