abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Media ranges allowed for a collection
Date Fri, 10 Aug 2007 15:42:02 GMT
That's a bug.  FWIW, the "entry" keyword is no longer used in the final
version of the Atompub draft.  All of the values need to be valid media
ranges.  The error was being ignored and the "entry" was being silently
dropped.  I've fixed the code in trunk so that the mime type parse
exception is not hidden and that the "entry" token is automatically
converted into the proper application/atom+xml;type="entry" media type.

- James

David Calavera wrote:
> Hi,
> I'd like to know if this is the correct behavior for the "setAccept" method
> into "Collection" class:
> The MimeTypeHelper drops the "entry" content type when I add several
> parameters and one of this is the keyword "entry".
> Ie:
> the source code:
>     Collection users = workspace.addCollection("Users", USERS_URL);
>     users.setAccept(new String[]{"multipart/form-data", "entry"});
> the output:
>     <collection href="/api/v1/users">
>       <atom:title type="text">Users</atom:title>
>       <accept>multipart/form-data</accept>
>     </collection>
> Regards

View raw message