GzipFilter filter = new GzipFilter();
filterHolder.setFilter(filter);
EnumSet<DispatcherType> types = EnumSet.allOf(DispatcherType.class);
servletContextHandler.addFilter(filterHolder, "/*", types);
HandlerCollection handlers = new HandlerCollection();
final RequestLogHandler requestLogHandler = new RequestLogHandler();
NCSARequestLog requestLog = new NCSARequestLog();
requestLog.setAppend(true);
requestLog.setExtended(true);
requestLog.setLogLatency(true);
requestLogHandler.setRequestLog(requestLog);
handlers.setHandlers(new Handler[] {servletContextHandler, requestLogHandler});
server.setHandler(handlers);
try {
server.start();