From d0e27a3a1f2d92b4c8fa36d411d5e77da944e2fc Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Sun, 19 Apr 2015 16:39:18 +0200 Subject: [PATCH] [New] add RestfulStrolchComponent.getServiceHandler() --- .../java/li/strolch/rest/RestfulStrolchComponent.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java b/li.strolch.rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java index 65f0115b6..b1c90ea9b 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java @@ -22,6 +22,7 @@ import li.strolch.agent.api.StrolchComponent; import li.strolch.rest.filters.AccessControlResponseFilter; import li.strolch.rest.filters.HttpCacheResponseFilter; import li.strolch.runtime.configuration.ComponentConfiguration; +import li.strolch.service.api.ServiceHandler; import org.glassfish.jersey.server.ServerProperties; @@ -143,10 +144,10 @@ public class RestfulStrolchComponent extends StrolchComponent { String msg = "Set restLogging={0} with logEntities={1} restTracing={2} with threshold={3}"; //$NON-NLS-1$ logger.info(MessageFormat.format(msg, this.restLogging, this.restLoggingEntity, this.restTracing, this.restTracingThreshold)); - + // set http cache mode this.cacheMode = configuration.getString(PARAM_HTTP_CACHE_MODE, HttpCacheResponseFilter.NO_CACHE); - logger.info("HTTP header cache mode is set to {}",cacheMode); + logger.info("HTTP header cache mode is set to {}", cacheMode); super.initialize(configuration); } @@ -184,4 +185,8 @@ public class RestfulStrolchComponent extends StrolchComponent { public StrolchSessionHandler getSessionHandler() { return getContainer().getComponent(StrolchSessionHandler.class); } + + public ServiceHandler getServiceHandler() { + return getContainer().getComponent(ServiceHandler.class); + } }