1
|
|
/* Generated by AspectJ version 1.0.5 */
|
2
|
|
package org.apache.cactus.server;
|
3
|
|
import javax.servlet.ServletContext;
|
4
|
|
import javax.servlet.http.HttpServletRequest;
|
5
|
|
import javax.servlet.http.HttpServletResponse;
|
6
|
|
|
7
|
|
/**
|
8
|
|
* Holder class that contains the instances of the implicit objects that exist
|
9
|
|
* for all web requests. Namely they are <code>HttpServletRequest</code>,
|
10
|
|
* <code>HttpServletResponse</code> and <code>ServletContext</code>.
|
11
|
|
*
|
12
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
13
|
|
*
|
14
|
|
* @version $Id: AbstractWebImplicitObjects.java,v 1.1 2002/03/10 13:58:25 vmassol Exp $
|
15
|
|
*/
|
16
|
|
public abstract class AbstractWebImplicitObjects implements WebImplicitObjects {
|
17
|
|
/**
|
18
|
|
* The HTTP request object.
|
19
|
|
*/
|
20
|
|
protected HttpServletRequest request;
|
21
|
|
/**
|
22
|
|
* The HTTP response object.
|
23
|
|
*/
|
24
|
|
protected HttpServletResponse response;
|
25
|
|
/**
|
26
|
|
* The Context object.
|
27
|
|
*/
|
28
|
|
protected ServletContext context;
|
29
|
|
/**
|
30
|
|
* @return the <code>ServletContext</code> implicit object
|
31
|
|
*/
|
32
|
0
|
public ServletContext getServletContext() {
|
33
|
0
|
return this.context;
|
34
|
|
}
|
35
|
|
|
36
|
|
/**
|
37
|
|
* @param theContext the <code>ServletContext</code> implicit object
|
38
|
|
*/
|
39
|
0
|
public void setServletContext(ServletContext theContext) {
|
40
|
0
|
this.context = theContext;
|
41
|
|
}
|
42
|
|
|
43
|
|
/**
|
44
|
|
* @return the <code>HttpServletResponse</code> implicit object
|
45
|
|
*/
|
46
|
0
|
public HttpServletResponse getHttpServletResponse() {
|
47
|
0
|
return this.response;
|
48
|
|
}
|
49
|
|
|
50
|
|
/**
|
51
|
|
* @param theResponse the <code>HttpServletResponse</code> implicit object
|
52
|
|
*/
|
53
|
0
|
public void setHttpServletResponse(HttpServletResponse theResponse) {
|
54
|
0
|
this.response = theResponse;
|
55
|
|
}
|
56
|
|
|
57
|
|
/**
|
58
|
|
* @return the <code>HttpServletRequest</code> implicit object
|
59
|
|
*/
|
60
|
0
|
public HttpServletRequest getHttpServletRequest() {
|
61
|
0
|
return this.request;
|
62
|
|
}
|
63
|
|
|
64
|
|
/**
|
65
|
|
* @param theRequest the <code>HttpServletRequest</code> implicit object
|
66
|
|
*/
|
67
|
0
|
public void setHttpServletRequest(HttpServletRequest theRequest) {
|
68
|
0
|
this.request = theRequest;
|
69
|
|
}
|
70
|
|
|
71
|
|
/**
|
72
|
|
* Holder class that contains the instances of the implicit objects that exist
|
73
|
|
* for all web requests. Namely they are <code>HttpServletRequest</code>,
|
74
|
|
* <code>HttpServletResponse</code> and <code>ServletContext</code>.
|
75
|
|
*
|
76
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
77
|
|
*
|
78
|
|
* @version $Id: AbstractWebImplicitObjects.java,v 1.1 2002/03/10 13:58:25 vmassol Exp $
|
79
|
|
*/
|
80
|
0
|
public AbstractWebImplicitObjects() {
|
81
|
0
|
super();
|
82
|
|
}
|
83
|
|
}
|