public interface MVCRenderCommand extends MVCCommand
MVCPortlet
.
The render command that to be invoked is determined by two factors:
mvcRenderCommandName
of the render URL.
Implementations of this interface must be OSGi components that are registered in the OSGi Registry with the following properties:
javax.portlet.name
: The portlet name associated to this render
command.
mvc.command.name
: the command name that matches the
parameter value mvcRenderCommandName
. This name cannot contain
any comma (,
).
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.
Modifier and Type | Field and Description |
---|---|
static MVCRenderCommand |
EMPTY |
Modifier and Type | Method and Description |
---|---|
String |
render(RenderRequest renderRequest,
RenderResponse renderResponse)
Invoked by
MVCPortlet to handle the render phase of the portlet. |
static final MVCRenderCommand EMPTY
String render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException
MVCPortlet
to handle the render phase of the portlet.renderRequest
- the render requestrenderResponse
- the render responsePortletException