TOMEE-1667 publishedUrl support for cxf openejb-jar.xml config
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/3ff6ff6a Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/3ff6ff6a Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/3ff6ff6a Branch: refs/heads/tomee-7.0.0-M1 Commit: 3ff6ff6aae212d36aa02219a0c022a9ab5312cbc Parents: 953cf92 Author: Romain Manni-Bucau <[email protected]> Authored: Wed Nov 25 13:59:18 2015 +0100 Committer: Romain Manni-Bucau <[email protected]> Committed: Wed Nov 25 13:59:29 2015 +0100 ---------------------------------------------------------------------- .../org/apache/openejb/server/cxf/transport/util/CxfUtil.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/3ff6ff6a/server/openejb-cxf-transport/src/main/java/org/apache/openejb/server/cxf/transport/util/CxfUtil.java ---------------------------------------------------------------------- diff --git a/server/openejb-cxf-transport/src/main/java/org/apache/openejb/server/cxf/transport/util/CxfUtil.java b/server/openejb-cxf-transport/src/main/java/org/apache/openejb/server/cxf/transport/util/CxfUtil.java index 83f3beb..a7a7689 100644 --- a/server/openejb-cxf-transport/src/main/java/org/apache/openejb/server/cxf/transport/util/CxfUtil.java +++ b/server/openejb-cxf-transport/src/main/java/org/apache/openejb/server/cxf/transport/util/CxfUtil.java @@ -67,6 +67,7 @@ public final class CxfUtil { public static final String OUT_FAULT_INTERCEPTORS = "out-fault-interceptors"; public static final String DATABINDING = "databinding"; public static final String ADDRESS = "address"; + public static final String PUBLISHED_URL = "published-url"; public static final String DEBUG = "debug"; public static final String BUS_PREFIX = "org.apache.openejb.cxf.bus."; public static final String BUS_CONFIGURED_FLAG = "openejb.cxf.bus.configured"; @@ -202,6 +203,12 @@ public final class CxfUtil { if (changedAddress != null && !changedAddress.trim().isEmpty()) { svrFactory.setAddress(changedAddress); } + + // published url + final String publishedUrl = beanConfig.getProperty(prefix + PUBLISHED_URL); + if (publishedUrl != null && !publishedUrl.trim().isEmpty()) { + svrFactory.setPublishedEndpointUrl(publishedUrl); + } } public static void configureInterceptors(final InterceptorProvider abip, final String prefix, final Collection<ServiceInfo> availableServices, final Properties beanConfig) {
