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);
}
Aggregations