Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

org.apache.jetspeed.portlet
Class DefaultPortletAction

java.lang.Object
  extended byorg.apache.jetspeed.portlet.DefaultPortletAction
All Implemented Interfaces:
PortletAction, java.io.Serializable

public final class DefaultPortletAction
extends java.lang.Object
implements PortletAction, java.io.Serializable

The DefaultPortletAction is a portlet action with default parameters. You can use this portlet action to pass parameters in your action or create your own portlet action. This default implementation demonstrates how to implement it.

Since:
4.1
See Also:
PortletAction, Serialized Form

Constructor Summary
DefaultPortletAction(java.lang.String name)
           
 

Method Summary
 void addParameter(java.lang.String name, java.lang.Object value)
          Adds a parameters to this action
 java.lang.String getName()
          Returns the name of this action
 java.util.Map getParameters()
          Returns all parameters
 

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

Constructor Detail

DefaultPortletAction

public DefaultPortletAction(java.lang.String name)

Method Detail

getName

public java.lang.String getName()
Returns the name of this action

Returns:
the name as a string

addParameter

public void addParameter(java.lang.String name,
                         java.lang.Object value)
Adds a parameters to this action

Parameters:
name - the name of the new parameter
value - the value of the new parameter

getParameters

public java.util.Map getParameters()
Returns all parameters

Returns:
all parameters as map

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.