Example usage for com.liferay.portal.kernel.util PortalUtil getCurrentCompleteURL

List of usage examples for com.liferay.portal.kernel.util PortalUtil getCurrentCompleteURL

Introduction

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

Prototype

public static String getCurrentCompleteURL(HttpServletRequest httpServletRequest) 

Source Link

Usage

From source file:com.liferay.marketplace.store.web.internal.portlet.RemoteMVCPortlet.java

License:Open Source License

protected void setBaseRequestParameters(PortletRequest portletRequest, PortletResponse portletResponse,
        OAuthRequest oAuthRequest) {/* w ww.  jav  a2s.c o m*/

    HttpServletRequest httpServletRequest = PortalUtil.getHttpServletRequest(portletRequest);

    String clientAuthToken = AuthTokenUtil.getToken(httpServletRequest);

    addOAuthParameter(oAuthRequest, "clientAuthToken", clientAuthToken);

    addOAuthParameter(oAuthRequest, "clientPortletId", getClientPortletId());
    addOAuthParameter(oAuthRequest, "clientURL", PortalUtil.getCurrentCompleteURL(httpServletRequest));
    addOAuthParameter(oAuthRequest, "p_p_id", getServerPortletId());
}