Package de.innovationgate.wgpublisher.webtml.utils

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.meta()


   
    public static URLBuilder urlBuilder(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj) throws JavaScriptException, FormattingException, WGAPIException, MalformedURLException, UnsupportedEncodingException {
       
        TMLContext tmlContext = fetchInitialContext(cx);
       
        URL wgaUrl = new URL((String) tmlContext.meta("request", "absolutewgaurl"));
        String baseURL;
        if (args.length >= 1) {
            baseURL = String.valueOf(args[0]);
        }
        else {
View Full Code Here


        String baseURL;
        if (args.length >= 1) {
            baseURL = String.valueOf(args[0]);
        }
        else {
            baseURL = (String) tmlContext.meta("request", "url");
        }
       
        URL url = new URL(wgaUrl, baseURL);
        return new URLBuilder(tmlContext, url);
       
View Full Code Here

       
        try {
            // If we are included and the main context is multilang we should try to take the language choice from there
            TMLContext mainContext = context.getmaincontext();
            if (LanguageBehaviourTools.isMultiLanguageContext(mainContext)) {
                Locale mainLangLocale = WGLanguage.languageNameToLocale((String) mainContext.meta(WGContent.META_LANGUAGE));
                String label = LanguageBehaviourTools.fetchLabelForLanguage(manager, container, file, key, mainLangLocale);
                if (label != null) {
                    return label;
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.