You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/04/02 09:51:52 UTC

[jira] [Commented] (CAMEL-8588) REST DSL with camel-restlet: Status 302 (redirect) and the 'location' header

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

Claus Ibsen commented on CAMEL-8588:
------------------------------------

See this FAQ
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html

And this test works fine setting a location header
org.apache.camel.component.restlet.RestletRedirectTest

> REST DSL with camel-restlet: Status 302 (redirect) and the 'location' header
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-8588
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8588
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-restlet
>    Affects Versions: 2.15.0
>            Reporter: Camel Guy
>            Priority: Minor
>
> There doesn't seem to be a way to use the REST DSL in a provider-agnostic way in order to produce a redirect. 
> Setting the location header generates a warning sent to the console:
> {noformat}
> Addition of the standard header "location" is not allowed. Please use the equivalent property in the Restlet API.{noformat}
> Very small example: http://pastebin.com/Zaq7p0Us
> Also see linked JIRA.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)