AbstractNCSARequestLog create() { return new AbstractNCSARequestLog() { @Override protected boolean isEnabled() { return true; } @Override public void write(String s) throws IOException { logger.info(s); } }; }
public EmbeddedJettyFactoryConstructor(AbstractNCSARequestLog requestLog) { this.requestLog = requestLog; }
private static EmbeddedJettyFactory createEmbeddedJettyFactoryWithRequestLog(Logger logger) { AbstractNCSARequestLog requestLog = new RequestLogFactory(logger).create(); return new EmbeddedJettyFactoryConstructor(requestLog).create(); }