Plumtree uses a group of custom headers to communicate system and user configuration variables. These headers include information that can be used by services. All the useful information stored in these headers should be accessed using the Plumtree Enterprise Web Development Kit (EDK). For details on settings used by portlets and Web services, see the previous page, Plumtree Settings Model.
The table below provides a summary of the headers that are useful to portlets and Web services.
Setting / Header Name |
Description |
User ID |
The User ID of the currently logged in user. This value can be used to determine if the session has expired. (If UserID=2, the default “Guest” user is logged in; any other user’s session has ended.) |
User Name |
The name of the logged in user. The user’s name can be used to personalize display or pre-fill form fields. |
Locale |
The current user’s language and character set. This value is essential when determining the correct content to return in an internationalized implementation of the portal. |
Time Zone |
The time zone of the current user in the format used by the portal. This value can be used to synchronize remote server time with the Portal. |
Image Server URL |
The URL to the root virtual directory of the Image Server in the user’s implementation of Plumtree. This location should be used for all static images used in services. |
Stylesheet URL |
The URL to the current user's style sheet. In each implementation of the portal, the UI is customized to match the implementing company’s style. In some portals, users can choose between a selection of stylesheets. Using Plumtree-defined styles ensures that portlets appear in the style of the current user’s portal. |
Community ID |
The Community ID for the Community in which the portlet appears. This value is used internally to identify the correct group of settings. (If CommunityID=0, the portlet appears on a My Page.) |
Page ID |
The Page ID for the current portal page. This value allows a single Portlet object to display different content on different portal pages. (5.0 and above only. In previous versions of Plumtree, the portlet code must be registered multiple times to support per-page preferences.) |
Portlet ID |
This value is useful for appending to the names of HTML forms and client-side JavaScript functions to ensure unique form and function names on the My Page to avoid name conflicts. |
Return URL |
The URL to the page that the portlet should return to when finished, usually the page that hosts the portlet - Preference pages need this URL to return the user to the correct page after settings are configured. |
Content Mode |
The current content mode. This value is used to display portlet content in the appropriate manner. |
Browser Type |
The type of device being used to access the portal. The portal can support wireless handheld devices that communicate with HDML, WML, or HTML. |
Additional proprietary headers contain the protocol version, gateway type, and aggregation mode. All the key information in these headers is accessible through the EDK.