W3C home > Mailing lists > Public > public-ddwg@w3.org > November 2007

Re: ISSUE-23 (ContextKeyList): identify method provides only one key or a list of keys? [DDR API Recommendation]

From: José Manuel Cantera Fonseca <jmcf@tid.es>
Date: Mon, 19 Nov 2007 17:11:49 +0100
To: public-ddwg@w3.org
Message-id: <4741B5C5.5070700@tid.es>

I think that option a) is cleaner and safer

Mobile Web Initiative Device Description Working Group Issue Tracker 
escribió:
> ISSUE-23 (ContextKeyList): identify method provides only one key or a list of keys?  [DDR API Recommendation]
>
> http://www.w3.org/2005/MWI/DDWG/Group/track/issues/
>
> Raised by: Jose Manuel Cantera Fonseca
> On product: DDR API Recommendation
>
> There could be some cases where the same set of HTTP Headers can be identified as different contexts i.e. more than one device / browser can correspond to that set of headers. So in that case what will be the mechanism used by the API for managing that uncertainty:
>
> a) Return multiple keys to the caller:
>
> ContextKeyList list = identifyByHttpHeadersExt(HttpHeaders headers);
>
> The key list could be ordered from the most likely to the less. 
>
> b) Return a single key to the caller and that key will manage the uncertainty:
>
> ContextKey key = identifyByHttpHeaders(HttpHeaders headers);
>
> The implications from the rest of the DDR-API are the following
>
> In option a) it is impossible that 
>
> DDR.getPropertyValue(Property,Component) return multiple values because each key is representing only "one context"
>
> If we go for option b) one key will be representing potentially multiple contexts and the former method could also return a set 
>
>
>
>
>
>   
Received on Monday, 19 November 2007 16:17:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 12:13:51 GMT