Changeset 3912439034c6039ef40d4b1fa918d54e9fbbd1be
- Timestamp:
- 09/23/07 09:14:15
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1190531655 +0200
- git-parent:
[301ca36518ee18257ce6f06804ba5c54df270aab]
- git-author:
- Christopher Jung <bktheg@web.de> 1190531655 +0200
- Message:
NullPointerException? gefixt
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r829fa4d |
r3912439 |
|
| 28 | 28 | import java.util.Locale; |
|---|
| 29 | 29 | import java.util.Map; |
|---|
| | 30 | import java.util.Vector; |
|---|
| 30 | 31 | import java.util.regex.Matcher; |
|---|
| 31 | 32 | import java.util.regex.Pattern; |
|---|
| … | … | |
| 33 | 34 | import javax.servlet.RequestDispatcher; |
|---|
| 34 | 35 | import javax.servlet.ServletConfig; |
|---|
| | 36 | import javax.servlet.ServletContext; |
|---|
| 35 | 37 | import javax.servlet.ServletInputStream; |
|---|
| 36 | 38 | import javax.servlet.http.Cookie; |
|---|
| … | … | |
| 291 | 293 | } |
|---|
| 292 | 294 | |
|---|
| | 295 | private static class DummyServletConfig implements ServletConfig { |
|---|
| | 296 | private ServletContext context = null; |
|---|
| | 297 | |
|---|
| | 298 | DummyServletConfig(ServletContext context) { |
|---|
| | 299 | this.context = context; |
|---|
| | 300 | } |
|---|
| | 301 | |
|---|
| | 302 | public String getInitParameter(String arg0) { |
|---|
| | 303 | return null; |
|---|
| | 304 | } |
|---|
| | 305 | |
|---|
| | 306 | public Enumeration getInitParameterNames() { |
|---|
| | 307 | return new Vector().elements(); |
|---|
| | 308 | } |
|---|
| | 309 | |
|---|
| | 310 | public ServletContext getServletContext() { |
|---|
| | 311 | return this.context; |
|---|
| | 312 | } |
|---|
| | 313 | |
|---|
| | 314 | public String getServletName() { |
|---|
| | 315 | return "WSDDReader"; |
|---|
| | 316 | } |
|---|
| | 317 | |
|---|
| | 318 | } |
|---|
| | 319 | |
|---|
| 293 | 320 | private static Map<String, AxisBridge> server = new HashMap<String, AxisBridge>(); |
|---|
| 294 | 321 | |
|---|
| … | … | |
| 329 | 356 | HttpServletResponse res = (HttpServletResponse)context.getVariable(HttpServlet.class, |
|---|
| 330 | 357 | "response"); |
|---|
| 331 | | ServletConfig conf = (ServletConfig)context.getVariable(HttpServlet.class, "config"); |
|---|
| | 358 | ServletConfig conf = new DummyServletConfig((ServletContext)context.getVariable(HttpServlet.class, |
|---|
| | 359 | "context")); |
|---|
| 332 | 360 | |
|---|
| 333 | 361 | AxisBridge axis = null; |
|---|