Package de.innovationgate.wgpublisher.webtml.utils

Examples of de.innovationgate.wgpublisher.webtml.utils.URLBuilder


        try {
            Status status = getStatus();
            java.net.URL resultURL = new java.net.URL(new java.net.URL(status.getRequestURL()), completeURL);
           
            // URL Params
            URLBuilder builder = new URLBuilder(getTMLContext(), resultURL);
            for (Map.Entry<String,Object> param : status.urlparams.entrySet()) {
                builder.setParameter(param.getKey(), String.valueOf(param.getValue()));
            }
           
            // Var Params
            for (Map.Entry<String,Object> param : status.varparams.entrySet()) {
                builder.setVarParameter(param.getKey(), param.getValue());
            }
           
            return builder.rebuild(absolute);
        }
        catch (Exception e) {
            addWarning("Exception adding parameters to URL " + completeURL + " :" + e.getClass().getName() " - " + e.getMessage());
            getTMLContext().getlog().error("Exception adding parameters to URL " + completeURL, e);
            return completeURL;
View Full Code Here


        else {
            baseURL = (String) tmlContext.meta("request", "url");
        }
       
        URL url = new URL(wgaUrl, baseURL);
        return new URLBuilder(tmlContext, url);
       
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.webtml.utils.URLBuilder

Copyright © 2018 www.massapicom. 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.