org.apache.cactus.server
class AbstractWebImplicitObjects
java.lang.Object
|
+--org.apache.cactus.server.AbstractWebImplicitObjects
- All Implemented Interfaces:
- WebImplicitObjects
- Direct Known Subclasses:
- ServletImplicitObjects
- Known Advisors:
- LogAspect
- public abstract class AbstractWebImplicitObjects
- extends java.lang.Object
- implements WebImplicitObjects
Holder class that contains the instances of the implicit objects that exist
for all web requests. Namely they are HttpServletRequest
,
HttpServletResponse
and ServletContext
.
- Version:
- $Id: AbstractWebImplicitObjects.java,v 1.1 2002/03/10 13:58:25 vmassol Exp $
- Author:
- Vincent Massol
Constructor Summary |
AbstractWebImplicitObjects()
Holder class that contains the instances of the implicit objects that exist
for all web requests. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWebImplicitObjects
public AbstractWebImplicitObjects()
- Holder class that contains the instances of the implicit objects that exist
for all web requests. Namely they are
HttpServletRequest
,
HttpServletResponse
and ServletContext
.
getHttpServletRequest
public HttpServletRequest getHttpServletRequest()
- Specified by:
getHttpServletRequest
in interface WebImplicitObjects
- Returns:
- the
HttpServletRequest
implicit object
getHttpServletResponse
public HttpServletResponse getHttpServletResponse()
- Specified by:
getHttpServletResponse
in interface WebImplicitObjects
- Returns:
- the
HttpServletResponse
implicit object
getServletContext
public ServletContext getServletContext()
- Specified by:
getServletContext
in interface WebImplicitObjects
- Returns:
- the
ServletContext
implicit object
setHttpServletRequest
public void setHttpServletRequest(HttpServletRequest theRequest)
- Specified by:
setHttpServletRequest
in interface WebImplicitObjects
- Parameters:
theRequest
- the HttpServletRequest
implicit object
Affected by: around() in LogAspect
.
setHttpServletResponse
public void setHttpServletResponse(HttpServletResponse theResponse)
- Specified by:
setHttpServletResponse
in interface WebImplicitObjects
- Parameters:
theResponse
- the HttpServletResponse
implicit object
Affected by: around() in LogAspect
.
setServletContext
public void setServletContext(ServletContext theContext)
- Specified by:
setServletContext
in interface WebImplicitObjects
- Parameters:
theContext
- the ServletContext
implicit object
Affected by: around() in LogAspect
.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.