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

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

Introduction

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

Prototype

public static String protocolize(String url, int port, boolean secure) 

Source Link

Usage

From source file:com.liferay.calendar.notification.NotificationTemplateContextFactory.java

License:Open Source License

private static String _getPortalURL(long companyId, long groupId) throws PortalException {

    Company company = CompanyLocalServiceUtil.getCompany(companyId);

    String portalURL = company.getPortalURL(groupId);

    portalURL = HttpUtil.protocolize(portalURL, PortalUtil.getPortalServerPort(false), false);

    return portalURL;
}