01: /*
02: * ========================================================================
03: *
04: * Copyright 2001-2004 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: *
18: * ========================================================================
19: */
20: package org.apache.cactus.internal.server;
21:
22: import javax.servlet.ServletContext;
23: import javax.servlet.http.HttpServletRequest;
24: import javax.servlet.http.HttpServletResponse;
25:
26: import org.apache.cactus.spi.server.ImplicitObjects;
27:
28: /**
29: * Interface for implicit objects that exist
30: * for all web requests (<code>HttpServletRequest</code>,
31: * <code>HttpServletResponse</code> and <code>ServletContext</code>).
32: *
33: * @version $Id: WebImplicitObjects.java 238991 2004-05-22 11:34:50Z vmassol $
34: */
35: public interface WebImplicitObjects extends ImplicitObjects {
36: /**
37: * @return the <code>ServletContext</code> implicit object
38: */
39: ServletContext getServletContext();
40:
41: /**
42: * @param theContext the <code>ServletContext</code> implicit object
43: */
44: void setServletContext(ServletContext theContext);
45:
46: /**
47: * @return the <code>HttpServletResponse</code> implicit object
48: */
49: HttpServletResponse getHttpServletResponse();
50:
51: /**
52: * @param theResponse the <code>HttpServletResponse</code> implicit object
53: */
54: void setHttpServletResponse(HttpServletResponse theResponse);
55:
56: /**
57: * @return the <code>HttpServletRequest</code> implicit object
58: */
59: HttpServletRequest getHttpServletRequest();
60:
61: /**
62: * @param theRequest the <code>HttpServletRequest</code> implicit object
63: */
64: void setHttpServletRequest(HttpServletRequest theRequest);
65: }
|