com.ibm.portal.resolver
Interface PortletContext

All Superinterfaces:
AttributeContext, CookieContext, DigestContext, DigestProvider, HeaderContext
All Known Subinterfaces:
ActionContext, EventContext, MimeContext, RenderContext, ResourceContext

public interface PortletContext
extends DigestContext, CookieContext, HeaderContext, AttributeContext

Extension of the COR Context for use in a JSR168 portlet. Clients can dynamically check instances of Context if they support the PortletContext interface to find out if the COR lookup was issued by a portlet.

Since:
6.0.1

Method Summary
 javax.portlet.PortletRequest getRequest()
          Returns the JSR168 portlet request object associated with the context
 javax.portlet.PortletResponse getResponse()
          Returns the JSR168 portlet response object associated with the context
 
Methods inherited from interface com.ibm.portal.resolver.DigestContext
getDigest
 
Methods inherited from interface com.ibm.portal.resolver.CookieContext
getCookies
 
Methods inherited from interface com.ibm.portal.resolver.HeaderContext
getHeader, getHeaderNames, getHeaders
 
Methods inherited from interface com.ibm.portal.resolver.AttributeContext
getAttribute, getAttributeNames
 

Method Detail

getRequest

javax.portlet.PortletRequest getRequest()
Returns the JSR168 portlet request object associated with the context

Returns:
the current portlet request (never null)

getResponse

javax.portlet.PortletResponse getResponse()
Returns the JSR168 portlet response object associated with the context

Returns:
the current portlet response or null