|
Lines 55-60
Link Here
|
| 55 |
return null; |
55 |
return null; |
| 56 |
} |
56 |
} |
| 57 |
|
57 |
|
|
|
58 |
public String getInitParameter(String name) { |
| 59 |
try { |
| 60 |
Method getInitParameterMethod = httpContext.getClass().getMethod("getInitParameter", new Class[] {String.class}); //$NON-NLS-1$ |
| 61 |
if (!getInitParameterMethod.isAccessible()) |
| 62 |
getInitParameterMethod.setAccessible(true); |
| 63 |
return (String) getInitParameterMethod.invoke(httpContext, new Object[] {name}); |
| 64 |
} catch (Exception e) { |
| 65 |
// ignore |
| 66 |
} |
| 67 |
// fall-back |
| 68 |
return servletContext.getInitParameter(name); |
| 69 |
} |
| 70 |
|
| 71 |
public Enumeration getInitParameterNames() { |
| 72 |
try { |
| 73 |
Method getInitParameterNamesMethod = httpContext.getClass().getMethod("getInitParameterNames", null); //$NON-NLS-1$ |
| 74 |
if (!getInitParameterNamesMethod.isAccessible()) |
| 75 |
getInitParameterNamesMethod.setAccessible(true); |
| 76 |
return (Enumeration) getInitParameterNamesMethod.invoke(httpContext, null); |
| 77 |
} catch (Exception e) { |
| 78 |
// ignore |
| 79 |
} |
| 80 |
// fall-back |
| 81 |
return servletContext.getInitParameterNames(); |
| 82 |
} |
| 83 |
|
| 84 |
|
| 58 |
public Object getAttribute(String attributeName) { |
85 |
public Object getAttribute(String attributeName) { |
| 59 |
Dictionary attributes = proxyContext.getContextAttributes(httpContext); |
86 |
Dictionary attributes = proxyContext.getContextAttributes(httpContext); |
| 60 |
return attributes.get(attributeName); |
87 |
return attributes.get(attributeName); |
|
Lines 109-122
Link Here
|
| 109 |
return servletContext.getContext(arg0); |
136 |
return servletContext.getContext(arg0); |
| 110 |
} |
137 |
} |
| 111 |
|
138 |
|
| 112 |
public String getInitParameter(String arg0) { |
|
|
| 113 |
return servletContext.getInitParameter(arg0); |
| 114 |
} |
| 115 |
|
| 116 |
public Enumeration getInitParameterNames() { |
| 117 |
return servletContext.getInitParameterNames(); |
| 118 |
} |
| 119 |
|
| 120 |
public int getMajorVersion() { |
139 |
public int getMajorVersion() { |
| 121 |
return servletContext.getMajorVersion(); |
140 |
return servletContext.getMajorVersion(); |
| 122 |
} |
141 |
} |