01: package org.apache.struts.wrapper;
02:
03: import java.util.Enumeration;
04: import java.util.Locale;
05: import java.util.ResourceBundle;
06:
07: import javax.portlet.PortletConfig;
08:
09: import javax.servlet.ServletConfig;
10: import javax.servlet.ServletContext;
11:
12: public class StrutsServletConfig implements ServletConfig {
13: PortletConfig _config;
14: ServletContext _context;
15:
16: public StrutsServletConfig(PortletConfig config,
17: ServletContext context) {
18: _config = config;
19: _context = context;
20: }
21:
22: public String getServletName() {
23: return _config.getPortletName();
24: }
25:
26: public ServletContext getServletContext() {
27: return _context;
28: }
29:
30: public java.util.ResourceBundle getResourceBundle(
31: java.util.Locale locale) {
32: return _config.getResourceBundle(locale);
33: }
34:
35: public String getInitParameter(java.lang.String name) {
36: return _config.getInitParameter(name);
37: }
38:
39: public java.util.Enumeration getInitParameterNames() {
40: return _config.getInitParameterNames();
41: }
42: }
|