Leszek Gawron wrote:

Daniel Fagerstrom wrote:

Leszek Gawron wrote:

Daniel Fagerstrom wrote:

<snip/>

IMO we should make the Request interface bean friendly and add the methods:

Map getParameters();
Map getAttributes();

You won't reach those as collection in HttpServletRequest

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html



I know, but we have an own environment abstraction, so we can have stuff that isn't part of the servlet definition. For the implementation we just need to wrap the parameters and attributes as maps in HttpRequest.

You're right. We could take the approach Carsten implemented in DynamicMap. Request parameters parameters could be lazily fetched from underlying implementation and put into a map. Still we could not provide an iterator...


There are getAttributeNames and getParameterNames in the ServletRequest so iterators should be possible.

/Daniel



Reply via email to