01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.core.chain.web;
20:
21: import java.util.HashMap;
22:
23: import javax.servlet.ServletContext;
24: import javax.servlet.ServletResponse;
25: import javax.servlet.ServletRequest;
26:
27: import org.apache.beehive.netui.core.chain.Context;
28:
29: /**
30: *
31: */
32: public class WebChainContext extends HashMap implements Context {
33:
34: private ServletContext _servletContext;
35: private ServletRequest _servletRequest;
36: private ServletResponse _servletResponse;
37:
38: public WebChainContext() {
39: }
40:
41: public WebChainContext(ServletContext servletContext,
42: ServletRequest servletRequest,
43: ServletResponse servletResponse) {
44: _servletContext = servletContext;
45: _servletRequest = servletRequest;
46: _servletResponse = servletResponse;
47: }
48:
49: public ServletContext getServletContext() {
50: return _servletContext;
51: }
52:
53: public void setServletContext(ServletContext servletContext) {
54: _servletContext = servletContext;
55: }
56:
57: public ServletRequest getServletRequest() {
58: return _servletRequest;
59: }
60:
61: public void setServletRequest(ServletRequest servletRequest) {
62: _servletRequest = servletRequest;
63: }
64:
65: public ServletResponse getServletResponse() {
66: return _servletResponse;
67: }
68:
69: public void setServletResponse(ServletResponse servletResponse) {
70: _servletResponse = servletResponse;
71: }
72: }
|