You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Introduce CloudEventHeaders with well-known constant for Cloud Event headers in the message
* Introduce a `ContentTypeDelegatingDataMarshaller` based on the
`org.springframework.core.codec.Encoder` abstraction to delegate
* Use `ContentTypeDelegatingDataMarshaller` from the `ToCloudEventTransformer`
* Modify `ToCloudEventTransformerTests` to use constants from the `CloudEventHeaders`
and verify that `text/plain` marshalling works well for cloud events
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/support/cloudevents/HeaderMapper.java
+2-7
Original file line number
Diff line number
Diff line change
@@ -34,12 +34,7 @@
34
34
*
35
35
* @since 5.3
36
36
*/
37
-
publicclassHeaderMapper {
38
-
39
-
/**
40
-
* Cloud event headers prefix as a {@value HEADER_PREFIX}.
41
-
*/
42
-
publicstaticfinalStringHEADER_PREFIX = "ce_";
37
+
publicfinalclassHeaderMapper {
43
38
44
39
/**
45
40
* Following the signature of {@link io.cloudevents.fun.FormatHeaderMapper}
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/support/cloudevents/Marshallers.java
+17-1
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
importio.cloudevents.format.StructuredMarshaller;
27
27
importio.cloudevents.format.Wire;
28
28
importio.cloudevents.format.builder.EventStep;
29
+
importio.cloudevents.fun.DataMarshaller;
29
30
importio.cloudevents.json.Json;
30
31
importio.cloudevents.v1.Accessor;
31
32
importio.cloudevents.v1.AttributesImpl;
@@ -49,12 +50,27 @@ public final class Marshallers {
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/transformer/ToCloudEventTransformer.java
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/transformer/ToCloudEventTransformerTests.java
0 commit comments