- public E2ManagerConfiguration(@Value("${e2mgr.basepath}") final String e2mgrBasepath) {
- Assert.notNull(e2mgrBasepath, "base path must not be null");
- logger.info("Configuring E2 Manager at base path {}", e2mgrBasepath);
- this.e2mgrBasepath = e2mgrBasepath;
+ public E2ManagerConfiguration(@Value("${e2mgr.url.prefix}") final String urlPrefix,
+ @Value("${e2mgr.url.suffix}") final String urlSuffix) {
+ logger.debug("ctor prefix '{}' suffix '{}'", urlPrefix, urlSuffix);
+ e2mgrUrl = new DefaultUriBuilderFactory(urlPrefix.trim()).builder().path(urlSuffix.trim()).build().normalize()
+ .toString();
+ logger.info("Configuring E2 Manager at URL {}", e2mgrUrl);