cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: [RT] POJOfied Environment
Date Thu, 12 May 2005 16:46:56 GMT
Daniel Fagerstrom wrote:
> Vadim Gritsenko wrote:
> 
>> Daniel Fagerstrom wrote:
>>
>>> As Vadim pointed out in an earlier discussion this is done in Java 
>>> faces: 
>>> http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/javax/faces/context/ExternalContext.html

>>>
>>>
>>> So what I propose is that we extend o.a.c.environment.Request with:
>>>
>>>  Map getAttributes();
>>>  Map getParameters();
>>>  Map getHeaders();
>>>
>>> o.a.c.environment.Session and o.a.c.environment.Context with:
>>>
>>>  Map getAttributes();
>>>
>>> possibly there are more. Java Faces use getRequestMap etc instead, 
>>> but the plural "s" is closer to our current conventions.
>>
>>
>> Answering some questions on previous thread; here is complete 
>> implementation, including entrySet, iterators, etc:
>>
>>   org.apache.cocoon.faces.context.ExternalContextImpl
> 
> 
> Great!
> 
> What about moving BaseMap, RequestHeaderMap, RequestMap, 
> RequestParameterMap and SessionMap to o.a.c.environment or 
> o.a.c.environment.impl in core?

Knock yourself out :-)


> BTW why the 
> Request[Header|Parameter]ValuesMap?

It correlates to the names of the methods in javax.faces.context.ExternalContext:

   getRequestParameterValuesMap

Vadim

Mime
View raw message