You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2019/10/27 17:17:10 UTC

[GitHub] [camel-k-runtime] lburgazzoli edited a comment on issue #177: CamelCloudEventXXX not converted to CE header

lburgazzoli edited a comment on issue #177: CamelCloudEventXXX not converted to CE header
URL: https://github.com/apache/camel-k-runtime/issues/177#issuecomment-546715152
 
 
   The `CamelCloudEvent*` are helpers for user to avoid caring about the cloud event spec version but of course they are limited to the known attributes.  CloudEvent headers have the precedence over `CamelCloudEvent*` so assuming a route using CloudEvent spec v0.3 like:
   
   ```java
   from("direct:start")
       .setHeader("ce-type")).constant("fromCEHeader")
       .setHeader("CamelCloudEventType").constant("fromCamelHeader")
       .to("knative:endpoint/ep");
   ```
   
   The cloud event type will be set to `fromCEHeader` 
   
   Note that:
   - camel-knative producer does not generate structured content but always binary content whereas the consumer can handle both.
   - `CamelCloudEvent*` on consumer side are added **in addition** to the CloudEvent header recevived by the consumer
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services