Top Description Methods
javax.portlet

public Interface HeaderPortlet

Known Direct Implementers
javax.portlet.GenericPortlet
Imports
java.io.IOException

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.

Since
3.0
See Also
HeaderRequest, HeaderResponse

Method Summary

Modifier and TypeMethod and Description
public void
renderHeaders(HeaderRequest
the header request
request
,
HeaderResponse
the header response
response
)

Called by the portlet container to allow the portlet to set response headers and generate markup for overall response document head section.

Method Detail

renderHeadersback to summary
public void renderHeaders(HeaderRequest request, HeaderResponse response) throws PortletException, IOException

Called by the portlet container to allow the portlet to set response headers and generate markup for overall response document head section.
Parameters
request:HeaderRequest

the header request

response:HeaderResponse

the header response

Exceptions
PortletException:
if the portlet has problems fulfilling the request
IOException:
if the streaming causes an I/O problem
UnavailableException:
if the portlet is unavailable to process the request at this time
PortletSecurityException:
if the portlet cannot fulfill this request due to security reasons