Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 198162

Summary: [server] Support ServletContext init params
Product: [Eclipse Project] Equinox Reporter: Simon Kaegi <simon_kaegi>
Component: Server-SideAssignee: equinox.compendium-inbox <equinox.compendium-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: gunnar, tjwatson
Version: 3.3   
Target Milestone: Mars M6   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed patch none

Description Simon Kaegi CLA 2007-07-27 16:49:35 EDT
In a typical servlet application the ServletContext object provides methods to get at a shared set of initial parameters used by all servlets in the webapplication.

For the Http Service the HttpContext is used to provides the underlying implemtation of the Servletcontext however it does not provide initparam support. This bug is to look at providing this support.
Comment 1 Simon Kaegi CLA 2007-07-27 16:53:13 EDT
Created attachment 74835 [details]
proposed patch

This patch of our ServletContext implementation in http.servlet uses reflection to "attempt" to call the equivalent initparam methods on the HttpContext.
Comment 2 Thomas Watson CLA 2015-03-18 08:14:16 EDT
The http whiteboard specification provides the ability to set the init params on the ServletContext via the ServletContextHelper service properties.