abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Calavera" <david.calav...@gmail.com>
Subject Media ranges allowed for a collection
Date Fri, 10 Aug 2007 08:48:07 GMT
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

-- 
David Calavera
http://www.thinkincode.net

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message