Liferay 7.0-ce-b4

com.liferay.portal.kernel.portlet.bridges.mvc
Interface MVCRenderCommand

All Superinterfaces:
MVCCommand

public interface MVCRenderCommand
extends MVCCommand

Provides an interface to handle the render phase of the portlet. This interface can only be used when the portlet is based on MVCPortlet.

The render command that to be invoked is determined by two factors:

Implementations of this interface must be OSGi components that are registered in the OSGi Registry with the following properties:

The method MVCPortlet.render(RenderRequest, RenderResponse) searches the OSGi Registry for the render command that matches both the portlet name with the property javax.portlet.name and the parameter value mvc.command.name with the property mvc.command.name.

When there are multiple render commands registered for the same portlet name and with the same command name, only the render command with the highest service ranking is invoked.


Field Summary
static MVCRenderCommand EMPTY
           
static String MVC_PATH_SKIP_DISPATCH
           
 
Method Summary
 String render(RenderRequest renderRequest, RenderResponse renderResponse)
          Invoked by MVCPortlet to handle the render phase of the portlet.
 

Field Detail

EMPTY

static final MVCRenderCommand EMPTY

MVC_PATH_SKIP_DISPATCH

static final String MVC_PATH_SKIP_DISPATCH
Method Detail

render

String render(RenderRequest renderRequest,
              RenderResponse renderResponse)
              throws PortletException
Invoked by MVCPortlet to handle the render phase of the portlet.

Parameters:
renderRequest - the render request
renderResponse - the render response
Returns:
the path that should be dispatched
Throws:
PortletException

Liferay 7.0-ce-b4