A portlet is a Java technology based web component, managed by a portlet container, that processes requests and generates dynamic content. Portlets provide a presentation layer to Information Systems.
Portlets generate fragments of markup (e.g. HTML, XHTML, WML). A portal combines markup fragments generated by different portlets into a portal page.
A portlet container manages the lifecyle of portlets. It also provides the required runtime environment.
Portlets are bundled in Portlet Applications as web applications using the WAR file format. A portlet application consists of two deployment descriptors: one to specify the web application resources (web.xml) and one to specify the portlet resources (portlet.xml). The portlet.xml must follow the schema defined by the http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd namespace.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ActionParameters
Action parameters are additional portlet parameters added to the portlet
URL or provided by the client that extend the state information provided by
the render parameters.
|
| public interface | ActionRequest
The
|
| public interface | ActionResponse
The
|
| public interface | ActionURL
An action URL is created with
MimeResponse#createActionURL(). |
| public interface | BaseURL
The
BaseURL defines the basic capabilities of a portlet URL
pointing back to the portlet. |
| public interface | CacheControl
The
|
| public interface | ClientDataRequest
The
|
| public interface | Event
The |
| public interface | EventPortlet
The |
| public interface | EventRequest
The |
| public interface | EventResponse
The
|
| public interface | HeaderPortlet
The
HeaderPortlet interface provides portlets
with the ability to add HTTP headers to the response, and
to generate markup for aggregation into the portal response document head section. |
| public interface | HeaderRequest
Tag interface designating a header request object.
|
| public interface | HeaderResponse
The portlet programming interface provides a mechanism to assist portlets when
the aggregated portal markup is an HTML or similar document that requires markup
for the document
HEAD section to be written and HTTP headers to be
set before the render markup for each individual portlet is aggregated. |
| public interface | MimeResponse
The
|
| public interface | Mutable
This is a marker interface indicating that the implementing object contains
methods for updating portelt state information.
|
| public interface | MutableActionParameters
Action parameters are additional portlet parameters added to the portlet
URL or provided by the client that extend the state information provided by
the render parameters.
|
| public interface | MutablePortletParameters
The
MutablePortletParameters provides methods that allow
setting parameters to define a potential future render state. |
| public interface | MutableRenderParameters
Provides methods that allow
setting parameters to define a potential future render state.
|
| public interface | MutableRenderState
Provides read-write access to the render state.
|
| public interface | MutableResourceParameters
Resource parameters are additional portlet parameters added to the
URL that extend the state information provided by
the render parameters.
|
| public interface | PortalContext
The |
| public interface | Portlet
The |
| public interface | PortletAsyncContext
Class representing the execution context for an asynchronous operation that was
initiated on a ResourceRequest.
|
| public interface | PortletAsyncListener
Listener that will be notified in the event that an asynchronous operation
initiated on a
ResourceRequest to which the listener had been added has
completed, timed out, or resulted in an error. |
| public interface | PortletConfig
The
|
| public interface | PortletContext
The
|
| public interface | PortletParameters
The
PortletParameters interface defines the API
for accessing the parameters that are set for the portlet or on a portlet URL. |
| public interface | PortletPreferences
The
|
| public interface | PortletRequest
The
PortletRequest defines the base interface to provide client
request information to a portlet. |
| public interface | PortletRequestDispatcher
The |
| public interface | PortletResponse
The
|
| public interface | PortletSession
The
|
| public interface | PortletURL
The
|
| public interface | PortletURLGenerationListener<T extends PortletURL & RenderURL, U extends PortletURL & ActionURL>
Portlet applications can register portlet URL listeners in order to filter URLs before they get generated. |
| public interface | PreferencesValidator
The |
| public interface | RenderParameters
Provides access to render parameters, which make up part of the render state.
|
| public interface | RenderRequest
The |
| public interface | RenderResponse
The
|
| public interface | RenderState
Provides read-only access to the render state.
|
| public interface | RenderURL
This is a marker interface for a render URL.
|
| public interface | ResourceParameters
Resource parameters are additional portlet parameters added to the
URL that extend the state information provided by
the render parameters.
|
| public interface | ResourceRequest
The
|
| public interface | ResourceResponse
The
|
| public interface | ResourceServingPortlet
The |
| public interface | ResourceURL
The
|
| public interface | StateAwareResponse
The
StateAwareResponse represents a response that can modify
render state information or send events. |
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | ProcessAction
Annotation for marking a method for processing a specific action. |
| public @interface | ProcessEvent
Annotation for marking a method for handling a specific event. |
| public @interface | RenderMode
Annotation for marking a method for handling a specific portlet mode in the render phase. |
| Modifier and Type | Class and Description |
|---|---|
| public abstract class | GenericPortlet
The
|
| public class | PortletAsyncEvent
Event that gets fired when the asynchronous operation initiated on a
ResourceRequest (via a call to ResourceRequest#startAsync or
ResourceRequest#startAsync(ResourceRequest, ResouceResponse)) has completed, timed
out, or produced an error. |
| public class | PortletException
The |
| public class | PortletMode
The |
| public class | PortletModeException
The |
| public class | PortletSecurityException
A portlet should throw a |
| public class | PortletSessionUtil
The |
| public class | ReadOnlyException
The |
| public class | UnavailableException
The portlet should throw the |
| public class | ValidatorException
The |
| public class | WindowState
The |
| public class | WindowStateException
The |