camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4039) camel-cxf - REST - Add support for using the ResponseBuilder / Response as message body for responses
Date Fri, 03 Jun 2011 06:33:47 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043227#comment-13043227
] 

Claus Ibsen commented on CAMEL-4039:
------------------------------------

Thats great.

However I noticed you add the test to an existing test that makes it a bit more confusing.

A good idea going forward would be to use more unit tests, testing a single thing, instead
of one giant that has 4..5 tests in the consumer code. Thats a bit confusing for end users
to look at the code. Also if the test did one thing its more like a good example people can
copy and try. And its also more easier to add START / END snippets in the unit test to have
it shown in the wiki pages.

Just a comment. It would be great to have simpler unit tests :)

> camel-cxf - REST - Add support for using the ResponseBuilder / Response as message body
for responses
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4039
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4039
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Claus Ibsen
>            Assignee: Willem Jiang
>
> When using CXF REST you may as an end user want to use the REST API for building responses
using ResponseBuilder / Response API. We should add support for that in camel-cxf, so it detects
the message body is a Response and use that directly.
> I recently added such support in camel-restlet.
> See nabble as well:
> http://camel.465427.n5.nabble.com/CXFRS-custom-response-tp4431343p4431343.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message