public class PortletResult extends StrutsResultSupport
Modifier and Type | Field and Description |
---|---|
protected javax.portlet.PortletMode |
portletMode |
DEFAULT_PARAM, DEFAULT_URL_ENCODING, parseLocation
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT
Constructor and Description |
---|
PortletResult() |
PortletResult(String location) |
Modifier and Type | Method and Description |
---|---|
protected void |
convertQueryParamsToRenderParams(String queryParams)
Converts the query params to render params.
|
void |
doExecute(String finalLocation,
ActionInvocation actionInvocation)
Execute the result.
|
protected void |
executeActionResult(String finalLocation,
ActionInvocation invocation)
Executes the action result.
|
protected void |
executeMimeResult(String finalLocation)
Executes the render result.
|
void |
setContentType(String contentType)
Sets the content type.
|
void |
setDispatcherServletName(String dispatcherServletName) |
void |
setPortletMode(String portletMode) |
void |
setTitle(String title)
Sets the title.
|
void |
setUseDispatcherServlet(String useDispatcherServlet) |
conditionalParse, conditionalParseCollection, execute, getLastFinalLocation, getLocation, setEncode, setLocation, setParse
public PortletResult()
public PortletResult(String location)
public void doExecute(String finalLocation, ActionInvocation actionInvocation) throws Exception
PortletRequestDispatcher
from the
PortletActionContext
and includes the JSP.doExecute
in class StrutsResultSupport
finalLocation
- the final locationactionInvocation
- the action invocationException
- in case of any errorsResult.execute(com.opensymphony.xwork2.ActionInvocation)
protected void executeActionResult(String finalLocation, ActionInvocation invocation) throws Exception
finalLocation
- the final locationinvocation
- the action invocationException
- in case of any errorsprotected void convertQueryParamsToRenderParams(String queryParams)
queryParams
- query parameterprotected void executeMimeResult(String finalLocation) throws javax.portlet.PortletException, IOException
finalLocation
- the final locationjavax.portlet.PortletException
- in case of any Portlet errorsIOException
- in case of any IO errorspublic void setContentType(String contentType)
contentType
- The content type to set.public void setTitle(String title)
title
- The title to set.public void setPortletMode(String portletMode)
public void setUseDispatcherServlet(String useDispatcherServlet)
public void setDispatcherServletName(String dispatcherServletName)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.