com.ibm.portal.resolver
Interface ServletContext
- All Superinterfaces:
- CookieContext, DigestContext, DigestProvider, HeaderContext
public interface ServletContext
- extends DigestContext, CookieContext, HeaderContext
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 |
HttpServletRequest |
getRequest()
Returns the HTTP request object associated with the context |
HttpServletResponse |
getResponse()
Returns the HTTP response object associated with the context |
getRequest
HttpServletRequest getRequest()
- Returns the HTTP request object associated with the context
- Returns:
- the current HTTP request, never
null
getResponse
HttpServletResponse getResponse()
- Returns the HTTP response object associated with the context
- Returns:
- the current HTTP response, potentially
null