Hi

Am 20.02.2014 um 08:31 schrieb Alexander Klimetschek <[email protected]>:

> On 17.02.2014, at 07:19, Felix Meschberger <[email protected]> wrote:
> 
>> method and enance the API:
>> 
>> RequestParameter:
>>   add  String getName();
>> 
>> SlingHttpServletRequest:
>>   add  List<RequestParameter> getRequestParameterList();
> 
> +1 Looks great to me!
> 
> Just to be sure - this allows to iterate key-value pairs as in the order they 
> appear in the query string and does not collate same-name parameters 
> together, right?
> 
> ?alpha=1&beta=2&alpha=1
> 
> giving this as RequestParameter list
> 
> alpha=1
> beta=2
> alpha=1

Absolutely. There is a (presumably low level and simple) test case 
test_decode_query for this in [1]

Regards
Felix

[1]http://svn.apache.org/repos/asf/sling/whiteboard/fmeschbe/parameters/engine/src/test/java/org/apache/sling/engine/impl/parameters/UtilTest.java


> 
> Thanks,
> Alex

Reply via email to