Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/handler/ContextHandler.java @ 833:83765eb09bef
remove ContextHandlerCollection
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 16 Sep 2016 00:41:20 -0600 |
| parents | 7c737c376bc3 |
| children | 22a4e93ed20e |
comparison
equal
deleted
inserted
replaced
| 832:2afcb04f56a4 | 833:83765eb09bef |
|---|---|
| 1280 public void setContextPath(String contextPath) | 1280 public void setContextPath(String contextPath) |
| 1281 { | 1281 { |
| 1282 if (contextPath != null && contextPath.length() > 1 && contextPath.endsWith("/")) | 1282 if (contextPath != null && contextPath.length() > 1 && contextPath.endsWith("/")) |
| 1283 throw new IllegalArgumentException("ends with /"); | 1283 throw new IllegalArgumentException("ends with /"); |
| 1284 _contextPath = contextPath; | 1284 _contextPath = contextPath; |
| 1285 | |
| 1286 if (getServer() != null && (getServer().isStarting() || getServer().isStarted())) | |
| 1287 { | |
| 1288 Handler[] contextCollections = getServer().getChildHandlersByClass(ContextHandlerCollection.class); | |
| 1289 for (int h = 0; contextCollections != null && h < contextCollections.length; h++) | |
| 1290 ((ContextHandlerCollection)contextCollections[h]).mapContexts(); | |
| 1291 } | |
| 1292 } | 1285 } |
| 1293 | 1286 |
| 1294 /* ------------------------------------------------------------ */ | 1287 /* ------------------------------------------------------------ */ |
| 1295 /** | 1288 /** |
| 1296 * @param servletContextName | 1289 * @param servletContextName |
