camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From panzerhans <>
Subject REST marshal gson with custom Exclustion Strategy
Date Thu, 23 Oct 2014 13:18:50 GMT
I am struggling to wrap my head around how to create a Gson ExclusionStrategy
that depends on a value in the Message object from the Exchange (this is
stored in a Header).

I am registering restConfiguration().setJsonDataFormat("json-gson") in my
route definition (so Google Gson is being used for marshalling).

How do I now go about for registering the Exclusion strategies in the route
for the GsonDataFormat type used by Camel?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message