Package jakarta.portlet
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.
-
Interface Summary Interface Description 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.ActionRequest TheActionRequestrepresents the request sent to the portlet to handle an action.
It extends the ClientDataRequest interface and provides action request information to portlets.ActionResponse TheActionResponseinterface represents the portlet response to an action request.ActionURL An action URL is created withMimeResponse.createActionURL().BaseURL TheBaseURLdefines the basic capabilities of a portlet URL pointing back to the portlet.CacheControl TheCacheControlinterface represents cache settings for a piece of markup.ClientDataRequest TheClientDataRequestrepresents the request information of the HTTP request issued from the client to the portal.
It extends the PortletRequest interface.Event TheEventinterface represents an event that the portlet has received in the event processing phase.EventPortlet TheEventPortletinterface allows portlets receiving events.EventRequest TheEventRequestrepresents the request sent to the portlet to handle an event.EventResponse TheEventResponseinterface represents the portlet response to an event request.HeaderPortlet TheHeaderPortletinterface 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.HeaderRequest Tag interface designating a header request object.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 documentHEADsection to be written and HTTP headers to be set before the render markup for each individual portlet is aggregated.MimeResponse TheMimeResponsedefines the base interface to assist a portlet in returning MIME content.Mutable This is a marker interface indicating that the implementing object contains methods for updating portelt state information.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.MutablePortletParameters TheMutablePortletParametersprovides methods that allow setting parameters to define a potential future render state.MutableRenderParameters Provides methods that allow setting parameters to define a potential future render state.MutableRenderState Provides read-write access to the render state.MutableResourceParameters Resource parameters are additional portlet parameters added to the URL that extend the state information provided by the render parameters.PortalContext ThePortalContextinterface gives the portlet the ability to retrieve information about the portal calling this portlet.Portlet ThePortletinterface is used by the portlet container to invoke the portlets.PortletAsyncContext Class representing the execution context for an asynchronous operation that was initiated on a ResourceRequest.PortletAsyncListener Listener that will be notified in the event that an asynchronous operation initiated on aResourceRequestto which the listener had been added has completed, timed out, or resulted in an error.PortletConfig ThePortletConfiginterface provides the portlet with its configuration.PortletContext ThePortletContextinterface defines a portlet view of the portlet container.PortletParameters ThePortletParametersinterface defines the API for accessing the parameters that are set for the portlet or on a portlet URL.PortletPreferences ThePortletPreferencesinterface allows the portlet to store configuration data.PortletRequest ThePortletRequestdefines the base interface to provide client request information to a portlet.PortletRequestDispatcher ThePortletRequestDispatcherinterface defines an object that receives requests from the client and sends them to the specified resources (such as a servlet, HTML file, or JSP file) on the server.PortletResponse ThePortletResponsedefines the base interface to assist a portlet in creating and sending a response to the client.PortletSession ThePortletSessioninterface provides a way to identify a user across more than one request and to store transient information about that user.PortletURL ThePortletURLinterface represents a URL that reference the portlet itself.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.PreferencesValidator ThePreferencesValidatorallows to validate the set of preferences of the associated portlet just before they are stored in the persistent store.RenderParameters Provides access to render parameters, which make up part of the render state.RenderRequest TheRenderRequestrepresents the request sent to the portlet to handle a render.RenderResponse TheRenderResponsedefines an object to assist a portlet in sending a response to the portal.RenderState Provides read-only access to the render state.RenderURL This is a marker interface for a render URL.ResourceParameters Resource parameters are additional portlet parameters added to the URL that extend the state information provided by the render parameters.ResourceRequest TheResourceRequestinterface represents the request send to the portlet for rendering resources.ResourceResponse TheResourceResponsedefines an object to assist a portlet for rendering a resource.ResourceServingPortlet TheResourceServingPortletinterface allows serving resources through the portlet.ResourceURL TheResourceURLdefines a resource URL that when clicked will result in aserveResourcecall of theResourceServingPortletinterface.StateAwareResponse TheStateAwareResponserepresents a response that can modify render state information or send events. -
Class Summary Class Description GenericPortlet TheGenericPortletclass provides a default implementation for thePortletinterface.PortletAsyncEvent Event that gets fired when the asynchronous operation initiated on aResourceRequest(via a call toResourceRequest#startAsyncorResourceRequest#startAsync(ResourceRequest, ResouceResponse))has completed, timed out, or produced an error.PortletMode ThePortletModeclass represents the possible modes that a portlet can assume.PortletSessionUtil ThePortletSessionUtilclass helps identify and decode attributes in thePORTLET_SCOPEscope of the PortletSession when accessed through the HttpSession an from within calls to methods of the HttpSessionBindingListener interface.WindowState TheWindowStateclass represents the possible window states that a portlet window can assume. -
Enum Summary Enum Description MimeResponse.Copy Specifies processing when a URL is created.PortletRequest.P3PUserInfos P3P user information constants. -
Exception Summary Exception Description PortletException ThePortletExceptionclass defines a general exception that a portlet can throw when it is unable to perform its operation successfully.PortletModeException ThePortletModeExceptionis thrown when a portlet tries to use or set a portlet mode that is not supported by the current runtime environment or the portlet.PortletSecurityException A portlet should throw aPortletSecurityExceptionwhen a call fails because of security reasons.
Additionally it can be thrown by the portal/portlet-container.ReadOnlyException TheReadOnlyExceptionis thrown when a portlet tries to change the value for a read-only preference attribute.UnavailableException The portlet should throw theUnavailableExceptionwhen the portlet is either temporarily or permanently unavailable to handle requests.ValidatorException TheValidatorExceptionis thrown by thevalidatemethod of a PreferencesValidator when the validation of a preference failed.WindowStateException TheWindowStateExceptionis thrown when a portlet tries to use a window state that is not supported by the current runtime environment or the portlet. -
Annotation Types Summary Annotation Type Description ProcessAction Annotation for marking a method for processing a specific action.ProcessEvent Annotation for marking a method for handling a specific event.RenderMode Annotation for marking a method for handling a specific portlet mode in the render phase.