camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Camel Guy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8588) REST DSL with camel-restlet: Status 302 (redirect) and the 'location' header
Date Thu, 02 Apr 2015 15:58:53 GMT

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

Camel Guy commented on CAMEL-8588:
----------------------------------

Regarding the MEP, it took me an hour to figure out that I should use exchange.out. 

headers.'Content-Type' =

Had no effect.

> 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
>            Assignee: Claus Ibsen
>            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)

Mime
View raw message