***  This class is subject to change   ***

com.sas.portal.portlet
Class HTMLPortletAction

java.lang.Object
  |
  +--com.sas.portal.portlet.DefaultPortletAction
        |
        +--com.sas.portal.portlet.HTMLPortletAction
All Implemented Interfaces:
PortletActionInterface,
Direct Known Subclasses:
JspPortlet,

public abstract class HTMLPortletAction
extends DefaultPortletAction

This action can be extended to use with HTML portlets. The service() method calls response.setContentType("text/html;charset=UTF-8") so that non-Latin1 languages render via UTF-8.

See Also:
Serialized Form

Fields inherited from class com.sas.portal.portlet.DefaultPortletAction
_actionInfo
 
Constructor Summary
HTMLPortletAction()
           
 
Method Summary
 String service(HttpServletRequest request, HttpServletResponse response, PortletContext context)
          Extend this method and call super() first.
 
Methods inherited from class com.sas.portal.portlet.DefaultPortletAction
getInfo, setInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLPortletAction

public HTMLPortletAction()
Method Detail

service

public String service(HttpServletRequest request,
                      HttpServletResponse response,
                      PortletContext context)
               throws Exception
Extend this method and call super() first. Assure that you return a non-null String representing the URL for the portlet. Typically this is the name of the JSP without any path (e.g. "Foo.jsp"). In this class, this method returns null.
Overrides:
service in class DefaultPortletAction
Parameters:
request - The HttpServletRequest
reponse - The HttpServletResponse
context - The PortletContext
Returns:
the URL for the portlet
Throws:
Exception - if anything went wrong
See Also:
PortletActionInterface.service(HttpServletRequest, HttpServletResponse, PortletContext)

***  This class is subject to change   ***




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:12