com.sas.portal.portlet
Class DefaultPortletAction
java.lang.Object
|
+--com.sas.portal.portlet.DefaultPortletAction
- All Implemented Interfaces:
- PortletActionInterface,
- Direct Known Subclasses:
- HTMLPortletAction,
- public class DefaultPortletAction
- extends Object
- implements PortletActionInterface
This action is the default portlet action for portlets. The service() method
can be overridden to set properties on the response, such as
response.setContentType("text/html;charset=UTF-8")
to allow non-Latin1 languages render via UTF-8.
It also allows you to set and retrieve an instance of PortletActionInfoInterface.
- See Also:
- Serialized Form
|
Field Summary |
protected PortletActionInfoInterface |
_actionInfo
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_actionInfo
protected PortletActionInfoInterface _actionInfo
DefaultPortletAction
public DefaultPortletAction()
service
public String service(HttpServletRequest request,
HttpServletResponse response,
PortletContext context)
throws Exception
- Integration point for portlet actions.
In this class, this method returns null.
- Specified by:
service in interface PortletActionInterface
- Parameters:
request - The HtppServletRequest associated with the method invocationresponse - HttpServletResponse associated with the method invocationcontext - PortletContext mapped to the request path- Returns:
java.lang.String - representing a valid URL.- Throws:
Exception - if anything went wrong- See Also:
PortletActionInterface.service(HttpServletRequest, HttpServletResponse, PortletContext)
setInfo
public void setInfo(PortletActionInfoInterface info)
- Sets the PortletActionInfoInterface for the given
PortletAction. This allows each concrete portlet action
class to have a reference to its deployment descriptor
metadata.
- Specified by:
setInfo in interface PortletActionInterface
- Parameters:
info - PortletActionInfoInterface - deployment descriptor metadataPortletActionInfoInterface - the PortletActionInfoInterface to set- See Also:
PortletActionInterface.setInfo(PortletActionInfoInterface)
getInfo
public PortletActionInfoInterface getInfo()
- Gets the deployment descriptor metadata corresponding
to this concrete action instance.
- Specified by:
getInfo in interface PortletActionInterface
- Returns:
- PortletActionInfoInterface - deployment descriptor metadata
- See Also:
PortletActionInterface.getInfo()
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:12