Example usage for com.liferay.portal.kernel.util HttpUtil URLtoString

List of usage examples for com.liferay.portal.kernel.util HttpUtil URLtoString

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util HttpUtil URLtoString.

Prototype

public static String URLtoString(String location, boolean post) throws IOException 

Source Link

Usage

From source file:com.liferay.jbi.mule.util.URLTransformComponent.java

License:Open Source License

public String getUrlResult(Map parameters, String url) {
    String xml = "<result />";

    try {//from www. j a v  a  2s .  c o  m
        for (Object key : parameters.keySet()) {
            url = HttpUtil.addParameter(url, (String) key, (String) parameters.get(key));
        }
        xml = HttpUtil.URLtoString(url, true);
    } catch (Exception e) {
    }

    return xml;
}