You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/08/06 03:37:00 UTC

[jira] Created: (CAMEL-3021) Restlet producer should support substituting { } placeholders in the uri with header values before sending

Restlet producer should support substituting { } placeholders in the uri with header values before sending
----------------------------------------------------------------------------------------------------------

                 Key: CAMEL-3021
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3021
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-restlet
    Affects Versions: 2.4.0
            Reporter: Claus Ibsen
             Fix For: 2.5.0


{code}
from("direct:start").to("restlet:http://localhost:9080/users/{id}/basic?restletMethod=get");
{code}

The id should be subbed at runtime with the value of the id header of the Camel Message. If header is absent an exception should be thrown.
So if the id is 123 then the uri to be getted would be: {{http://localhost:9080/users/123/basic}}

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


[jira] Assigned: (CAMEL-3021) Restlet producer should support substituting { } placeholders in the uri with header values before sending

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-3021:
----------------------------------

    Assignee: Claus Ibsen

> Restlet producer should support substituting { } placeholders in the uri with header values before sending
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3021
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3021
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-restlet
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> {code}
> from("direct:start").to("restlet:http://localhost:9080/users/{id}/basic?restletMethod=get");
> {code}
> The id should be subbed at runtime with the value of the id header of the Camel Message. If header is absent an exception should be thrown.
> So if the id is 123 then the uri to be getted would be: {{http://localhost:9080/users/123/basic}}

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


[jira] Resolved: (CAMEL-3021) Restlet producer should support substituting { } placeholders in the uri with header values before sending

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3021.
--------------------------------

    Resolution: Fixed

trunk: 989557.

> Restlet producer should support substituting { } placeholders in the uri with header values before sending
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3021
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3021
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-restlet
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> {code}
> from("direct:start").to("restlet:http://localhost:9080/users/{id}/basic?restletMethod=get");
> {code}
> The id should be subbed at runtime with the value of the id header of the Camel Message. If header is absent an exception should be thrown.
> So if the id is 123 then the uri to be getted would be: {{http://localhost:9080/users/123/basic}}

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


[jira] Commented: (CAMEL-3021) Restlet producer should support substituting { } placeholders in the uri with header values before sending

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61040#action_61040 ] 

Claus Ibsen commented on CAMEL-3021:
------------------------------------

I have committed an unit test which shows the issue: RestletProducerTest

> Restlet producer should support substituting { } placeholders in the uri with header values before sending
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3021
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3021
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-restlet
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>             Fix For: 2.5.0
>
>
> {code}
> from("direct:start").to("restlet:http://localhost:9080/users/{id}/basic?restletMethod=get");
> {code}
> The id should be subbed at runtime with the value of the id header of the Camel Message. If header is absent an exception should be thrown.
> So if the id is 123 then the uri to be getted would be: {{http://localhost:9080/users/123/basic}}

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


[jira] Commented: (CAMEL-3021) Restlet producer should support substituting { } placeholders in the uri with header values before sending

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61038#action_61038 ] 

Claus Ibsen commented on CAMEL-3021:
------------------------------------

See nabble
http://camel.465427.n5.nabble.com/Setting-url-params-in-REST-call-with-Camel-tp2257861p2257861.html

> Restlet producer should support substituting { } placeholders in the uri with header values before sending
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3021
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3021
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-restlet
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>             Fix For: 2.5.0
>
>
> {code}
> from("direct:start").to("restlet:http://localhost:9080/users/{id}/basic?restletMethod=get");
> {code}
> The id should be subbed at runtime with the value of the id header of the Camel Message. If header is absent an exception should be thrown.
> So if the id is 123 then the uri to be getted would be: {{http://localhost:9080/users/123/basic}}

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