Java 类org.eclipse.jetty.server.AbstractNCSARequestLog 实例源码

项目:demo-spark-eb-ci    文件:RequestLogFactory.java   
AbstractNCSARequestLog create() {
    return new AbstractNCSARequestLog() {
        @Override
        protected boolean isEnabled() {
            return true;
        }

        @Override
        public void write(String s) throws IOException {
            logger.info(s);
        }
    };
}
项目:daf-cacher    文件:RequestLogFactory.java   
AbstractNCSARequestLog create() {
    return new AbstractNCSARequestLog() {
        @Override
        protected boolean isEnabled() {
            return true;
        }

        @Override
        public void write(String s) throws IOException {
            logger.info(s);
        }
    };
}
项目:demo-spark-eb-ci    文件:EmbeddedJettyFactoryConstructor.java   
public EmbeddedJettyFactoryConstructor(AbstractNCSARequestLog requestLog) {
    this.requestLog = requestLog;
}
项目:demo-spark-eb-ci    文件:SparkUtils.java   
private static EmbeddedJettyFactory createEmbeddedJettyFactoryWithRequestLog(Logger logger) {
    AbstractNCSARequestLog requestLog = new RequestLogFactory(logger).create();
    return new EmbeddedJettyFactoryConstructor(requestLog).create();
}
项目:daf-cacher    文件:EmbeddedJettyFactoryConstructor.java   
public EmbeddedJettyFactoryConstructor(AbstractNCSARequestLog requestLog) {
    this.requestLog = requestLog;
}