Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.ibm.wps.portlets.struts
Class WpsStrutsViewJspCommand

java.lang.Object
  extended bycom.ibm.wps.portlets.struts.WpsStrutsViewCommand
      extended bycom.ibm.wps.portlets.struts.WpsStrutsViewJspCommand
All Implemented Interfaces:
IViewCommand, java.io.Serializable
Direct Known Subclasses:
WpsStrutsViewTilesCommand

public class WpsStrutsViewJspCommand
extends WpsStrutsViewCommand

The WpsStrutsViewJspCommand class is a command-pattern class used to provide a mechanism to encapsulate the information needed to redisplay a view for dynamic content like JSPs.

Since:
4.1
See Also:
Serialized Form

Field Summary
protected static java.lang.String QUERY
          Name of the request attribute for the query string.
protected static java.lang.String URI
          Name of the request attribute for the URI string.
 

Fields inherited from class com.ibm.wps.portlets.struts.WpsStrutsViewCommand
LAST_MODIFIED, PREFIX
 

Constructor Summary
WpsStrutsViewJspCommand()
          Default construtor for WpsStrutsViewJspCommand.
org.apache.jetspeed.portlet.PortletRequest)">WpsStrutsViewJspCommand(java.lang.String uri, org.apache.jetspeed.portlet.PortletRequest request)
          Constructs the View command.
 

Method Summary
static void addAttributeNameToSave(java.lang.String attributeName)
          Adds the name of an attribute from the object request that needs to be saved if present for the execution of the IViewCommand in Portal's render phase.
static void addAttributeTypeToSave(java.lang.Class attributeType)
          Adds the class type of an attribute from the request that needs to be saved if present for the execution of the IViewCommand in Portal's render phase.
protected  void org.apache.jetspeed.portlet.PortletRequest)">addQueryParameters(java.lang.String query, org.apache.jetspeed.portlet.PortletRequest request)
          Adds the query parameters to the request object.
 void org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">execute(org.apache.jetspeed.portlet.PortletRequest request, org.apache.jetspeed.portlet.PortletResponse response, ViewCommandExecutionContext executionContext)
          Executes the given command given the request and response objects.
 java.lang.String org.apache.jetspeed.portlet.PortletRequest)">getQueryString(org.apache.jetspeed.portlet.PortletRequest request)
          Returns the query string.
 java.lang.String org.apache.jetspeed.portlet.PortletRequest)">getUri(org.apache.jetspeed.portlet.PortletRequest request)
          Returns the URI.
protected  void org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">includeURL(java.lang.String uri, org.apache.jetspeed.portlet.PortletRequest request, org.apache.jetspeed.portlet.PortletResponse response, ViewCommandExecutionContext executionContext)
          Includes the URL.
static void removeAttributeNameToSave(java.lang.String attributeName)
          Removes the name of an attribute from the list of attribute names to save.
static void removeAttributeTypeToSave(java.lang.Class attributeType)
          Removes the class type of the request attribute from the list of attributes to save.
 void saveAttributes(javax.servlet.http.HttpServletRequest request, ViewCommandExecutionContext executionContext)
          Saves the attributes related to JSP rendering.
 void org.apache.jetspeed.portlet.PortletRequest, java.lang.String)">setQueryString(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String query)
          Sets the query string.
 void org.apache.jetspeed.portlet.PortletRequest, java.lang.String)">setUri(org.apache.jetspeed.portlet.PortletRequest request, java.lang.String uri)
          Sets the URI to include.
 

Methods inherited from class com.ibm.wps.portlets.struts.WpsStrutsViewCommand
java.util.List)">addAttribute, addParameterNameToSave, org.apache.jetspeed.portlet.PortletRequest, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">execute, getLastModified, getPrefix, getRemoveOnModeChange, getSavedAttributes, getSavedCommand, removeAttribute, removeParameterNameToSave, repopulateRequest, saveAsAttribute, saveAsParameter, saveAttribute, saveAttributes, saveCommand, saveCommand, saveParameter, saveParameters, setLastModified, setPrefix, setRemoveOnModeChange, java.util.Map)">setSavedAttributes
 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI

protected static final java.lang.String URI
Name of the request attribute for the URI string.

See Also:
Constant Field Values

QUERY

protected static final java.lang.String QUERY
Name of the request attribute for the query string.

See Also:
Constant Field Values

Constructor Detail

WpsStrutsViewJspCommand

public WpsStrutsViewJspCommand()
Default construtor for WpsStrutsViewJspCommand. Use setURI if this constructor is used.


org.apache.jetspeed.portlet.PortletRequest)">

WpsStrutsViewJspCommand

public WpsStrutsViewJspCommand(java.lang.String uri,
                               org.apache.jetspeed.portlet.PortletRequest request)
Constructs the View command.

Parameters:
uri - the uri path to the JSP
request - The request object to save context information from

Method Detail
org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">

execute

public void execute(org.apache.jetspeed.portlet.PortletRequest request,
                    org.apache.jetspeed.portlet.PortletResponse response,
                    ViewCommandExecutionContext executionContext)
             throws org.apache.jetspeed.portlet.PortletException
Executes the given command given the request and response objects.

Specified by:
org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">execute in interface IViewCommand
Overrides:
execute in class WpsStrutsViewCommand
Parameters:
request - The request object
response - The response object
executionContext - the execution context object
Throws:
org.apache.jetspeed.portlet.PortletException - if the request cannot be fulfilled

org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">

includeURL

protected void includeURL(java.lang.String uri,
                          org.apache.jetspeed.portlet.PortletRequest request,
                          org.apache.jetspeed.portlet.PortletResponse response,
                          ViewCommandExecutionContext executionContext)
                   throws org.apache.jetspeed.portlet.PortletException
Includes the URL.

Parameters:
uri - the uri to include
request - the request object
response - the reponse object
executionContext - the execution context
Throws:
org.apache.jetspeed.portlet.PortletException - if the file cannot be included

org.apache.jetspeed.portlet.PortletRequest)">

addQueryParameters

protected void addQueryParameters(java.lang.String query,
                                  org.apache.jetspeed.portlet.PortletRequest request)
Adds the query parameters to the request object. Expects the query parameters in the form ?param=valu

Parameters:
query - the query string
request - the request object

saveAttributes

public void saveAttributes(javax.servlet.http.HttpServletRequest request,
                           ViewCommandExecutionContext executionContext)
Saves the attributes related to JSP rendering.

Overrides:
saveAttributes in class WpsStrutsViewCommand
Parameters:
request - the request object
executionContext - the context object

org.apache.jetspeed.portlet.PortletRequest)">

getQueryString

public java.lang.String getQueryString(org.apache.jetspeed.portlet.PortletRequest request)
Returns the query string.

Parameters:
request - the portlet request object
Returns:
returns the query string

org.apache.jetspeed.portlet.PortletRequest, java.lang.String)">

setQueryString

public void setQueryString(org.apache.jetspeed.portlet.PortletRequest request,
                           java.lang.String query)
Sets the query string.

Parameters:
request - the portlet request object
query - the query string

org.apache.jetspeed.portlet.PortletRequest)">

getUri

public java.lang.String getUri(org.apache.jetspeed.portlet.PortletRequest request)
Returns the URI.

Parameters:
request - the portlet request object
Returns:
returns the uri to include

org.apache.jetspeed.portlet.PortletRequest, java.lang.String)">

setUri

public void setUri(org.apache.jetspeed.portlet.PortletRequest request,
                   java.lang.String uri)
Sets the URI to include.

Parameters:
request - the portlet request object
uri - the uri to include

addAttributeNameToSave

public static void addAttributeNameToSave(java.lang.String attributeName)
Adds the name of an attribute from the object request that needs to be saved if present for the execution of the IViewCommand in Portal's render phase.

Parameters:
attributeName - the name of the attribute to save

removeAttributeNameToSave

public static void removeAttributeNameToSave(java.lang.String attributeName)
Removes the name of an attribute from the list of attribute names to save.

Parameters:
attributeName - the name of the attribute to remove

addAttributeTypeToSave

public static void addAttributeTypeToSave(java.lang.Class attributeType)
Adds the class type of an attribute from the request that needs to be saved if present for the execution of the IViewCommand in Portal's render phase.

Parameters:
attributeType - the attribute type to save

removeAttributeTypeToSave

public static void removeAttributeTypeToSave(java.lang.Class attributeType)
Removes the class type of the request attribute from the list of attributes to save.

Parameters:
attributeType - the attribute type to remove

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.