concept portal server in category java

This is an excerpt from Manning's book Portlets in Action.
Figure 1.9. The portal infrastructure consists of a portal server and a portlet container. The portlet container manages the portlet instances and hands over the markup fragments generated by the portlets to the portal server. The portal server aggregates the markup fragments to create the portal page.
![]()
The portal server is responsible for submitting user requests received from the portal page to the portlet container, and for aggregating responses generated by portlets to form the portal page. A portal server is responsible for generating the portal page, so the responsibility of providing a consistent look and feel for the portal lies with the portal server.
Request handling is customized
if the portal server is Jetspeed. The PortletRequest object’s getPortalContext method is used to obtain the PortalContext object, and that object’s getPortalInfo method is used to retrieve the portal server name and version information. The portal server information retrieved via getPortalInfo is then checked to determine whether the portlet is deployed on the Jetspeed portal server. (The value of the Constants.JETSPEED constant used in the code is Jetspeed.) If the portal server is Jetspeed, you can set Jetspeed-specific response headers in the doHeaders method.
if the portal server is Jetspeed. The PortletRequest object’s getPortalContext method is used to obtain the PortalContext object, and that object’s getPortalInfo method is used to retrieve the portal server name and version information. The portal server information retrieved via getPortalInfo is then checked to determine whether the portlet is deployed on the Jetspeed portal server. (The value of the Constants.JETSPEED constant used in the code is Jetspeed.) If the portal server is Jetspeed, you can set Jetspeed-specific response headers in the doHeaders method.