private void configureEngine(Engine engine) { engine.setBackgroundProcessorDelay(this.backgroundProcessorDelay); for (Valve valve : this.engineValves) { engine.getPipeline().addValve(valve); } }
private void configureEngine(Engine engine) { engine.setBackgroundProcessorDelay(this.backgroundProcessorDelay); for (Valve valve : this.engineValves) { engine.getPipeline().addValve(valve); } }
getEngine().getPipeline().addValve(new UpdateValve(this));
getEngine().getPipeline().addValve(new UpdateValve(this));
getEngine().getPipeline().addValve(new UpdateValve(this));
getEngine().getPipeline().addValve(new UpdateValve(this));
getEngine().getPipeline().addValve(new UpdateValve(this));
public void setUp(@Observes final ContainerStarted ignored) { final StandardServer server = TomcatHelper.getServer(); if (server == null) { return; } for (final Service service : server.findServices()) { if (Engine.class.isInstance(service.getContainer())) { final Engine engine = Engine.class.cast(service.getContainer()); final Realm engineRealm = engine.getRealm(); addTracker(engineRealm); engine.getPipeline().addValve(new TrackerValve()); for (final Container engineChild : engine.findChildren()) { // we suppose we dont add host dynamically with such an algo ()case in tomee) if (Host.class.isInstance(engineChild)) { final Host host = Host.class.cast(engineChild); host.addContainerListener(new HostListener()); final Realm hostRealm = host.getRealm(); if (hostRealm == engineRealm || TrackerRealm.class.isInstance(host)) { continue; } addTracker(hostRealm); } } } } }
engine.setJvmRoute(StringPropertyReplacer.replaceProperties(engineMetaData.getJvmRoute())); engine.getPipeline().addValve(new ActiveRequestResponseCacheValve()); engine.setDefaultHost(engineMetaData.getDefaultHost()); service.setContainer(engine);
private void configEngine(Engine engine, TomcatConf tomcatConf) { engine.setBackgroundProcessorDelay(tomcatConf.getBackgroundProcessorDelay()); if (tomcatConf.isAccessLogEnabled()) { AccessLogValve value = new AccessLogValve(); value.setBuffered(tomcatConf.isAccessLogBuffered()); value.setFileDateFormat(tomcatConf.getAccessLogFileFormat()); value.setRequestAttributesEnabled(tomcatConf.isAccessLogRequestAttributesEnabled()); value.setPattern(tomcatConf.getAccessLogPattern()); engine.getPipeline().addValve(value); } }
Pipeline pipeline = connector.getService().getContainer().getPipeline(); request.setAsyncSupported(pipeline.isAsyncSupported()); pipeline.getFirst().invoke(request, response);
Pipeline pipeline = connector.getService().getContainer().getPipeline(); request.setAsyncSupported(pipeline.isAsyncSupported()); pipeline.getFirst().invoke(request, response);
final RouterValve routerValve = new RouterValve(); routerValve.setConfigurationPath(globalRouterConf); engine.getPipeline().addValve(routerValve);
connector.getService().getContainer().getPipeline().isAsyncSupported()); connector.getService().getContainer().getPipeline().getFirst().invoke( request, response);
connector.getService().getContainer().getPipeline().isAsyncSupported()); connector.getService().getContainer().getPipeline().getFirst().invoke( request, response);
connector.getService().getContainer().getPipeline().getFirst().invoke( request, response); connector.getService().getContainer().getPipeline().getFirst().invoke( request, response); Throwable t = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
connector.getService().getContainer().getPipeline().getFirst().invoke( request, response); connector.getService().getContainer().getPipeline().getFirst().invoke( request, response); Throwable t = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);