Search in sources :

Example 1 with ResourceServingConfigurationAction

use of com.liferay.portal.kernel.portlet.ResourceServingConfigurationAction in project liferay-ide by liferay.

the class EditConfigurationAction method serveResource.

@Override
public void serveResource(ActionMapping actionMapping, ActionForm actionForm, PortletConfig portletConfig, ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws Exception {
    Portlet portlet = null;
    try {
        portlet = ActionUtil.getPortlet(resourceRequest);
    } catch (PrincipalException pe) {
        return;
    }
    resourceRequest = ActionUtil.getWrappedResourceRequest(resourceRequest, null);
    ResourceServingConfigurationAction resourceServingConfigurationAction = (ResourceServingConfigurationAction) getConfigurationAction(portlet);
    if (resourceServingConfigurationAction == null) {
        return;
    }
    resourceServingConfigurationAction.serveResource(portletConfig, resourceRequest, resourceResponse);
}
Also used : Portlet(com.liferay.portal.model.Portlet) PrincipalException(com.liferay.portal.security.auth.PrincipalException) ResourceServingConfigurationAction(com.liferay.portal.kernel.portlet.ResourceServingConfigurationAction)

Aggregations

ResourceServingConfigurationAction (com.liferay.portal.kernel.portlet.ResourceServingConfigurationAction)1 Portlet (com.liferay.portal.model.Portlet)1 PrincipalException (com.liferay.portal.security.auth.PrincipalException)1