public IFrameContextImpl(IFrameContext iframeContext, String namespaceSuffix) { this(iframeContext.getPluginKey(), iframeContext.getIframePath(), iframeContext.getNamespace() + namespaceSuffix, iframeContext.getIFrameParams()); }
public IFrameContextImpl(IFrameContext iframeContext, String namespaceSuffix) { this(iframeContext.getPluginKey(), iframeContext.getIframePath(), iframeContext.getNamespace() + namespaceSuffix, iframeContext.getIFrameParams()); }
private Map<String, Object> prepareContext(IFrameContext iframeContext, String extraPath, Map<String, String[]> queryParams, Map<String, Object> productContext) throws IOException { RemotablePluginAccessor remotablePluginAccessor = remotablePluginAccessorFactory.get(iframeContext.getPluginKey()); UriBuilder uriBuilder = new UriBuilder(Uri.parse(iframeContext.getIframePath())); uriBuilder.setPath(uriBuilder.getPath() + ObjectUtils.toString(extraPath)); final URI iframeUrl = uriBuilder.toUri().toJavaUri(); allParams.put("user_key", new String[]{userKey}); allParams.put("xdm_e", new String[]{hostUrl.toString()}); allParams.put("xdm_c", new String[]{"channel-" + iframeContext.getNamespace()}); allParams.put("cp", new String[]{hostApplicationInfo.getContextPath()}); allParams.put("tz", new String[]{timeZone}); allParams.put("loc", new String[]{localeHelper.getLocaleTag()}); allParams.put("lic", new String[]{licenseRetriever.getLicenseStatus(iframeContext.getPluginKey()).value()}); .toString(); Map<String, Object> ctx = newHashMap(iframeContext.getIFrameParams().getAsMap()); ctx.put("iframeSrcHtml", escapeQuotes(signedUrl)); ctx.put("plugin", remotablePluginAccessor); ctx.put("namespace", iframeContext.getNamespace()); ctx.put("contextPath", hostApplicationInfo.getContextPath());
private Map<String, Object> prepareContext(IFrameContext iframeContext, String extraPath, Map<String, String[]> queryParams, Map<String, Object> productContext) throws IOException { RemotablePluginAccessor remotablePluginAccessor = remotablePluginAccessorFactory.get(iframeContext.getPluginKey()); UriBuilder uriBuilder = new UriBuilder(Uri.parse(iframeContext.getIframePath())); uriBuilder.setPath(uriBuilder.getPath() + ObjectUtils.toString(extraPath)); final URI iframeUrl = uriBuilder.toUri().toJavaUri(); allParams.put("user_key", new String[]{userKey}); allParams.put("xdm_e", new String[]{hostUrl.toString()}); allParams.put("xdm_c", new String[]{"channel-" + iframeContext.getNamespace()}); allParams.put("cp", new String[]{hostApplicationInfo.getContextPath()}); allParams.put("tz", new String[]{timeZone}); allParams.put("loc", new String[]{localeHelper.getLocaleTag()}); allParams.put("lic", new String[]{licenseRetriever.getLicenseStatus(iframeContext.getPluginKey()).value()}); .toString(); Map<String, Object> ctx = newHashMap(iframeContext.getIFrameParams().getAsMap()); ctx.put("iframeSrcHtml", escapeQuotes(signedUrl)); ctx.put("plugin", remotablePluginAccessor); ctx.put("namespace", iframeContext.getNamespace()); ctx.put("contextPath", hostApplicationInfo.getContextPath());