Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/handler/ContextHandlerCollection.java @ 820:8e9db0bbf4f9
remove org.eclipse.jetty.util.log and upgrade slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 13 Sep 2016 23:13:06 -0600 |
parents | 3428c60d7cfc |
children |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
30 import org.eclipse.jetty.server.AsyncContinuation; | 30 import org.eclipse.jetty.server.AsyncContinuation; |
31 import org.eclipse.jetty.server.Handler; | 31 import org.eclipse.jetty.server.Handler; |
32 import org.eclipse.jetty.server.HandlerContainer; | 32 import org.eclipse.jetty.server.HandlerContainer; |
33 import org.eclipse.jetty.server.Request; | 33 import org.eclipse.jetty.server.Request; |
34 import org.eclipse.jetty.util.LazyList; | 34 import org.eclipse.jetty.util.LazyList; |
35 import org.eclipse.jetty.util.log.Log; | 35 import org.slf4j.Logger; |
36 import org.eclipse.jetty.util.log.Logger; | 36 import org.slf4j.LoggerFactory; |
37 | 37 |
38 /* ------------------------------------------------------------ */ | 38 /* ------------------------------------------------------------ */ |
39 /** ContextHandlerCollection. | 39 /** ContextHandlerCollection. |
40 * | 40 * |
41 * This {@link org.eclipse.jetty.server.handler.HandlerCollection} is creates a | 41 * This {@link org.eclipse.jetty.server.handler.HandlerCollection} is creates a |
47 * | 47 * |
48 * @org.apache.xbean.XBean element="contexts" | 48 * @org.apache.xbean.XBean element="contexts" |
49 */ | 49 */ |
50 public class ContextHandlerCollection extends HandlerCollection | 50 public class ContextHandlerCollection extends HandlerCollection |
51 { | 51 { |
52 private static final Logger LOG = Log.getLogger(ContextHandlerCollection.class); | 52 private static final Logger LOG = LoggerFactory.getLogger(ContextHandlerCollection.class); |
53 | 53 |
54 private volatile PathMap _contextMap; | 54 private volatile PathMap _contextMap; |
55 private Class<? extends ContextHandler> _contextClass = ContextHandler.class; | 55 private Class<? extends ContextHandler> _contextClass = ContextHandler.class; |
56 | 56 |
57 /* ------------------------------------------------------------ */ | 57 /* ------------------------------------------------------------ */ |
287 addHandler(context); | 287 addHandler(context); |
288 return context; | 288 return context; |
289 } | 289 } |
290 catch (Exception e) | 290 catch (Exception e) |
291 { | 291 { |
292 LOG.debug(e); | 292 LOG.debug("",e); |
293 throw new Error(e); | 293 throw new Error(e); |
294 } | 294 } |
295 } | 295 } |
296 | 296 |
297 | 297 |