Sun Java System Portal Server 7.1 Developer's Guide

Portlet API

The Portlet API version 1.0 is based on the Java 2.0 Platform Enterprise Edition (J2EE) version 1.3. Portlet containers and Portlets meet the requirements, described in the J2EE Specification, for executing in a J2EE environment. The Portlet interface is the main abstraction of the Portlet API.

All Portlets implement this interface either directly or, more commonly, by extending a class that implements the interface. The Portlet API includes a GenericPortlet class that implements the Portlet interface and provides default functionality. If you develop Portlets, you should extend directly or indirectly, the GenericPortlet class to implement their Portlets.

The Portlet API defines the PortletURL interface. Portlets must create Portlet URLs using PortletURL objects. A Portlet creates PortletURL objects invoking the createActionURL and the createRenderURL methods of the RenderResponse interface. The createActionURL method creates action URLs. The createRenderURL method creates render URLs.