comparison src/org/eclipse/jetty/server/handler/ContextHandler.java @ 848:22a4e93ed20e

remove Container
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 19 Sep 2016 16:38:36 -0600
parents 83765eb09bef
children cb78ee27b0e0
comparison
equal deleted inserted replaced
847:5dfb10ec0ca5 848:22a4e93ed20e
248 @Override 248 @Override
249 public void setServer(Server server) 249 public void setServer(Server server)
250 { 250 {
251 if (_errorHandler != null) 251 if (_errorHandler != null)
252 { 252 {
253 Server old_server = getServer();
254 if (old_server != null && old_server != server)
255 old_server.getContainer().update(this,_errorHandler,null,"error",true);
256 super.setServer(server); 253 super.setServer(server);
257 if (server != null && server != old_server)
258 server.getContainer().update(this,null,_errorHandler,"error",true);
259 _errorHandler.setServer(server); 254 _errorHandler.setServer(server);
260 } 255 }
261 else 256 else
262 super.setServer(server); 257 super.setServer(server);
263 } 258 }
1257 1252
1258 /* ------------------------------------------------------------ */ 1253 /* ------------------------------------------------------------ */
1259 public void setManagedAttribute(String name, Object value) 1254 public void setManagedAttribute(String name, Object value)
1260 { 1255 {
1261 Object old = _managedAttributes.put(name,value); 1256 Object old = _managedAttributes.put(name,value);
1262 getServer().getContainer().update(this,old,value,name,true);
1263 } 1257 }
1264 1258
1265 /* ------------------------------------------------------------ */ 1259 /* ------------------------------------------------------------ */
1266 /** 1260 /**
1267 * @param classLoader 1261 * @param classLoader
1420 */ 1414 */
1421 public void setErrorHandler(ErrorHandler errorHandler) 1415 public void setErrorHandler(ErrorHandler errorHandler)
1422 { 1416 {
1423 if (errorHandler != null) 1417 if (errorHandler != null)
1424 errorHandler.setServer(getServer()); 1418 errorHandler.setServer(getServer());
1425 if (getServer() != null)
1426 getServer().getContainer().update(this,_errorHandler,errorHandler,"errorHandler",true);
1427 _errorHandler = errorHandler; 1419 _errorHandler = errorHandler;
1428 } 1420 }
1429 1421
1430 /* ------------------------------------------------------------ */ 1422 /* ------------------------------------------------------------ */
1431 public int getMaxFormContentSize() 1423 public int getMaxFormContentSize()