/** * Service removed. * * @param service tomcat service */ private void serviceRemoved(final Service service) { final Container container = service.getContainer(); if (container instanceof StandardEngine) { final StandardEngine engine = (StandardEngine) container; engineRemoved(engine); } }
private Container getHost() { // get engine Container container = service.getContainer(); if (container == null) throw new IllegalStateException("The Tomcat server doesn't have any Engines defined"); // now get host Container[] children = container.findChildren(); if (ObjectUtils.isEmpty(children)) throw new IllegalStateException("The Tomcat server doesn't have any Hosts defined"); // pick the first one and associate the context with it return children[0]; }
private void serviceAdded(Service service) { Container container = service.getContainer(); if (container instanceof StandardEngine) { StandardEngine engine = (StandardEngine) container; engineAdded(engine); } }
/** * Service is added. * * @param service tomcat service */ private void serviceAdded(Service service) { Container container = service.getContainer(); if (container instanceof StandardEngine) { StandardEngine engine = (StandardEngine) container; engineAdded(engine); } }
private Container getHost() { // get engine Container container = service.getContainer(); if (container == null) throw new IllegalStateException("The Tomcat server doesn't have any Engines defined"); // now get host Container[] children = container.findChildren(); if (ObjectUtils.isEmpty(children)) throw new IllegalStateException("The Tomcat server doesn't have any Hosts defined"); // pick the first one and associate the context with it return children[0]; }
private void serviceAdded(Service service) { Container container = service.getContainer(); if (container instanceof StandardEngine) { StandardEngine engine = (StandardEngine) container; engineAdded(engine); } }
public Engine next() { return new CatalinaEngine((org.apache.catalina.Engine) services.next().getContainer(), CatalinaServer.this); }
public TomcatRsRegistry() { StandardServer standardServer = TomcatHelper.getServer(); for (Service service : standardServer.findServices()) { if (service.getContainer() instanceof Engine) { connectors = Arrays.asList(service.findConnectors()); engine = (Engine) service.getContainer(); break; } } }
public TomcatWsRegistry() { StandardServer standardServer = (StandardServer) ServerFactory.getServer(); for (Service service : standardServer.findServices()) { if (service.getContainer() instanceof Engine) { connectors = Arrays.asList(service.findConnectors()); engine = (Engine) service.getContainer(); break; } } }
public TomcatWsRegistry() { StandardServer standardServer = TomcatHelper.getServer(); for (Service service : standardServer.findServices()) { if (service.getContainer() instanceof Engine) { connectors = Arrays.asList(service.findConnectors()); engine = (Engine) service.getContainer(); break; } } }
@Override public void stopInternal() throws LifecycleException { setState(LifecycleState.STOPPING); Engine engine = service.getContainer(); if (engine == null) { return; } removeListeners(engine); }
public TomcatSecurityService() { final Server server = TomcatHelper.getServer(); for (final Service service : server.findServices()) { if (service.getContainer() instanceof Engine) { final Engine engine = (Engine) service.getContainer(); if (engine.getRealm() != null) { defaultRealm = engine.getRealm(); break; } } } }
public TomcatSecurityService() { Server server = TomcatHelper.getServer(); for (Service service : server.findServices()) { if (service.getContainer() instanceof Engine) { Engine engine = (Engine) service.getContainer(); if (engine.getRealm() != null) { defaultRealm = engine.getRealm(); break; } } } }
private void registerListenersForServer(Server server) { for (Service service : server.findServices()) { Engine engine = (Engine) service.getContainer(); engine.addContainerListener(this); registerListenersForEngine(engine); } }
private void registerListenersForServer(Server server) { for (Service service : server.findServices()) { Engine engine = (Engine) service.getContainer(); engine.addContainerListener(this); registerListenersForEngine(engine); } }
private void registerListenersForServer(Server server) { for (Service service : server.findServices()) { Engine engine = service.getContainer(); if (engine != null) { engine.addContainerListener(this); registerListenersForEngine(engine); } } }
private void registerListenersForServer(Server server) { for (Service service : server.findServices()) { Engine engine = service.getContainer(); if (engine != null) { engine.addContainerListener(this); registerListenersForEngine(engine); } } }
private void registerListenersForServer(Server server) { for (Service service : server.findServices()) { Engine engine = (Engine) service.getContainer(); engine.addContainerListener(this); registerListenersForEngine(engine); } }
private void registerListenersForServer(Server server) { for (Service service : server.findServices()) { Engine engine = (Engine) service.getContainer(); engine.addContainerListener(this); registerListenersForEngine(engine); } }
public TomcatRsRegistry() { for (final Service service : TomcatHelper.getServer().findServices()) { if (service.getContainer() instanceof Engine) { connectors = Arrays.asList(service.findConnectors()); break; } } hosts = SystemInstance.get().getComponent(Hosts.class); }