[Geoserver-devel] [jira] Created: (GEOS-313) decouple request handling from servlet api

decouple request handling from servlet api
------------------------------------------

         Key: GEOS-313
         URL: http://jira.codehaus.org/browse/GEOS-313
     Project: GeoServer
        Type: Sub-task
  Components: WMS, WFS, Global
    Versions: 1.3-rc1
    Reporter: Gabriel Roldán
Assigned to: Gabriel Roldán

get rid of Request.setHttpServletRequest.
As I see it, the servlet API should be just a facade for the HTTP DCP type, but the rest of the application must have no knowledge of what DCP is being used.
We're passing a Map of KVP tuples to the request handlers, which are already parsed from the HttpServletRequest. We're also giving them the HttpServletRequest itself, from where to take servlet context for session scoped variables.
This context variables could be passed in the same Map, avoiding the whole application having to know that they're running in a servlet engine. This will also allow future migration to another types of containers and simplify unit testing, since until now, nobody had the time to create a mocked up http framework for unit testing, leading to less unit testing indeed.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira