com.ibm.portal.resolver
Interface ServletContext

All Superinterfaces:
AttributeContext, CookieContext, DigestContext, DigestProvider, HeaderContext

public interface ServletContext
extends DigestContext, CookieContext, HeaderContext, AttributeContext

Extension of the COR context for use in a servlet. Clients can dynamically check instances of Context if they support the ServletContext interface to find out if the COR lookup was issued by a servlet. NOTE: This API may only be used in the scope of an HTTP request in WebSphere Portal, i.e. within a theme. The API can not be invoked directly by a custom servlet.

Since:
6.0.1

Method Summary
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the HTTP request object associated with the context
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the HTTP 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.servlet.http.HttpServletRequest getRequest()
Returns the HTTP request object associated with the context

Returns:
the current HTTP request, never null

getResponse

javax.servlet.http.HttpServletResponse getResponse()
Returns the HTTP response object associated with the context

Returns:
the current HTTP response, potentially null