You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Dan Becker (JIRA)" <de...@tuscany.apache.org> on 2008/08/06 17:38:44 UTC

[jira] Commented: (TUSCANY-2504) Atom binding support for negotiated content types

    [ https://issues.apache.org/jira/browse/TUSCANY-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620288#action_12620288 ] 

Dan Becker commented on TUSCANY-2504:
-------------------------------------

Conversation on content for this issue is located at http://www.mail-archive.com/dev@tuscany.apache.org/msg01268.html.

This appears to be the required function of the JIRA:
Let's say for example, this is the response header and body provided when someone POSTs or GETs an Atom entry:

HTTP/1.1 201 Created
Date: Fri, 23 Feb 2007 21:17:11 GMT
Content-Type: application/atom+xml;type=entry
ETag: "e180ee84f0671b1"
Last-Modified: Fri, 25 Jul 2008 14:36:44 -0500

<?xml version="1.0" ?>
<entry xmlns="http://www.w3.org/2005/Atom";>
  <title>Atom-Powered Robots Run Amok</title>
  <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
  <updated>2007-02-123T17:09:02Z</updated>
  <author><name>Captain Lansing</name></author>
  <content>It's something moving... solid metal</content>
</entry>          


When someone requests data content in JSON binding, are you expecting this as the equivalent response?

HTTP/1.1 201 Created
Date: Fri, 23 Feb 2007 21:17:11 GMT
Content-Type: application/atom+json;type=entry
ETag: "e180ee84f0671b1"
Last-Modified: Fri, 25 Jul 2008 14:36:44 -0500

{
     "entry": {
         "title": "Atom-Powered Robots Run Amok",
         "id": "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
         "updated": "2007-02-123T17:09:02Z"
         "author": {
            "name": "Captain Lansing"
         }
         "content": It's something moving... solid metal"
}





> Atom binding support for negotiated content types
> -------------------------------------------------
>
>                 Key: TUSCANY-2504
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2504
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA ATOM Binding Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: Dan Becker
>             Fix For: Java-SCA-Next
>
>
> This is a breakout of one of the features of parent JIRA 2393 for Atom binding
> - the ability to negotiate content types (XML, JSON etc) and use the corresponding Tuscany databindings to provide data with the requested content type 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.