org.apache.struts2.portlet.result
Class PortletResult

java.lang.Object
  extended by org.apache.struts2.dispatcher.StrutsResultSupport
      extended by org.apache.struts2.portlet.result.PortletResult
All Implemented Interfaces:
com.opensymphony.xwork2.Result, java.io.Serializable, StrutsStatics

public class PortletResult
extends StrutsResultSupport

Result type that includes a JSP to render.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts2.dispatcher.StrutsResultSupport
DEFAULT_PARAM
 
Fields inherited from interface org.apache.struts2.StrutsStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_PORTLET_CONTEXT
 
Constructor Summary
PortletResult()
           
PortletResult(java.lang.String location)
           
 
Method Summary
protected static void convertQueryParamsToRenderParams(javax.portlet.ActionResponse response, java.lang.String queryParams)
          Converts the query params to render params.
 void doExecute(java.lang.String finalLocation, com.opensymphony.xwork2.ActionInvocation actionInvocation)
          Execute the result.
protected  void executeActionResult(java.lang.String finalLocation, com.opensymphony.xwork2.ActionInvocation invocation)
          Executes the action result.
protected  void executeRenderResult(java.lang.String finalLocation)
          Executes the render result.
 void setContentType(java.lang.String contentType)
          Sets the content type.
 void setTitle(java.lang.String title)
          Sets the title.
 
Methods inherited from class org.apache.struts2.dispatcher.StrutsResultSupport
conditionalParse, execute, getLastFinalLocation, setEncode, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletResult

public PortletResult()

PortletResult

public PortletResult(java.lang.String location)
Method Detail

doExecute

public void doExecute(java.lang.String finalLocation,
                      com.opensymphony.xwork2.ActionInvocation actionInvocation)
               throws java.lang.Exception
Execute the result. Obtains the PortletRequestDispatcherfrom the PortletActionContextand includes the JSP.

Specified by:
doExecute in class StrutsResultSupport
Parameters:
finalLocation - the location (jsp page, action, etc) to go to.
actionInvocation - the execution state of the action.
Throws:
java.lang.Exception - if an error occurs while executing the result.
See Also:
Result.execute(com.opensymphony.xwork2.ActionInvocation)

executeActionResult

protected void executeActionResult(java.lang.String finalLocation,
                                   com.opensymphony.xwork2.ActionInvocation invocation)
Executes the action result.

Parameters:
finalLocation -
invocation -

convertQueryParamsToRenderParams

protected static void convertQueryParamsToRenderParams(javax.portlet.ActionResponse response,
                                                       java.lang.String queryParams)
Converts the query params to render params.

Parameters:
response -
queryParams -

executeRenderResult

protected void executeRenderResult(java.lang.String finalLocation)
                            throws javax.portlet.PortletException,
                                   java.io.IOException
Executes the render result.

Parameters:
finalLocation -
Throws:
javax.portlet.PortletException
java.io.IOException

setContentType

public void setContentType(java.lang.String contentType)
Sets the content type.

Parameters:
contentType - The content type to set.

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - The title to set.


Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.