@Override protected void doStart() throws Exception { super.doStart(); this.helper.start(); }
@Override protected void doStop() throws Exception { super.doStop(); this.helper.stop(); }
public void destroy() { if (!isStopped()) throw new IllegalStateException("!STOPPED"); if (_server!=null) _server.getContainer().removeBean(this); }
public void setServer(Server server) { if (getServer()!=null && getServer()!=server) { getServer().getContainer().update(this, _filters, null, "filter",true); getServer().getContainer().update(this, _filterMappings, null, "filterMapping",true); getServer().getContainer().update(this, _servlets, null, "servlet",true); getServer().getContainer().update(this, _servletMappings, null, "servletMapping",true); } if (server!=null && getServer()!=server) { server.getContainer().update(this, null, _filters, "filter",true); server.getContainer().update(this, null, _filterMappings, "filterMapping",true); server.getContainer().update(this, null, _servlets, "servlet",true); server.getContainer().update(this, null, _servletMappings, "servletMapping",true); } super.setServer(server); }
public void doStart() throws Exception { SContext scontext = ContextHandler.getCurrentContext(); _context = (scontext==null?null:scontext.getContextHandler()); super.doStart(); }
protected synchronized void doStop() throws Exception { super.doStop(); // Stop filters if (_filters!=null) { for (int i=_filters.length; i-->0;) { try { _filters[i].stop(); }catch(Exception e){Log.warn(Log.EXCEPTION,e);} } } // Stop servlets if (_servlets!=null) { for (int i=_servlets.length; i-->0;) { try { _servlets[i].stop(); }catch(Exception e){Log.warn(Log.EXCEPTION,e);} } } _filterPathMappings=null; _filterNameMappings=null; _servletPathMap=null; _chainCache=null; }
protected synchronized void doStart() throws Exception { _servletContext=ContextHandler.getCurrentContext(); _contextHandler=_servletContext==null?null:_servletContext.getContextHandler(); updateNameMappings(); updateMappings(); if(_filterChainsCached) _chainCache= new HashMap[]{null,new HashMap(),new HashMap(),null,new HashMap(),null,null,null,new HashMap()}; super.doStart(); if (_contextHandler==null || !(_contextHandler instanceof Context)) initialize(); }