logHandler.setRequestLog(new RequestLogger());
rootHandler.addHandler(logHandler);
rootHandler.addHandler(servletHandler);
servletHandler.addEventListener(new GuiceServletContextListener() {
@Override
protected Injector getInjector() {
return parentInjector.createChildInjector(new JerseyServletModule() {
private void registerJerseyEndpoint(String indexPath, Class<?> servlet) {
filter(indexPath + "*").through(LeaderRedirectFilter.class);