List of usage examples for com.liferay.portal.kernel.util HttpUtil protocolize
public static String protocolize(String url, int port, boolean secure)
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; }