camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Is there a way to selectively disable data binding in a rest-dsl route?
Date Fri, 19 Feb 2016 16:21:44 GMT
So I could just specify in.setHeader(Exchange.CONTENT_TYPE,
"application/vnd.apple.pkpass") and it won't get marshalled?

On 19 February 2016 at 00:45, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> Set a different content-type as binary is not json then.
>
> On Thu, Feb 18, 2016 at 9:45 PM, Matt Sicker <boards@gmail.com> wrote:
> > Most of my routes return json, but I now have a new route that needs to
> > return binary data. This automatically gets marshalled into json due to
> > using the json binding mode. Is there a way to selectively disable this
> > feature?
> >
> > I was thinking of implementing a processor that handles the marshalling
> of
> > the response, but this won't handle the unmarshal of the request (which
> has
> > the class name specified in the swagger model).
> >
> > --
> > Matt Sicker <boards@gmail.com>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>



-- 
Matt Sicker <boards@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message