-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kafka): demonstrate cloud event headers in example (#426)
* feat(kafka): demonstrate cloud event headers in example * feat(kafka): rename schema to SpringDefaultHeaderAndCloudEvent
- Loading branch information
Showing
5 changed files
with
151 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...wolf/asyncapi/types/channel/operation/message/header/AsyncHeadersCloudEventConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package io.github.stavshamir.springwolf.asyncapi.types.channel.operation.message.header; | ||
|
||
public class AsyncHeadersCloudEventConstants { | ||
public static final String CONTENT_TYPE = "content-type"; | ||
public static final String CONTENT_TYPE_DESC = "CloudEvent Content-Type Header"; | ||
public static final String ID = "ce_id"; | ||
public static final String ID_DESC = "CloudEvent Id Header"; | ||
public static final String SPECVERSION = "ce_specversion"; | ||
public static final String SPECVERSION_DESC = "CloudEvent Spec Version Header"; | ||
public static final String SOURCE = "ce_source"; | ||
public static final String SOURCE_DESC = "CloudEvent Source Header"; | ||
public static final String SUBJECT = "ce_subject"; | ||
public static final String SUBJECT_DESC = "CloudEvent Subject Header"; | ||
public static final String TIME = "ce_time"; | ||
public static final String TIME_DESC = "CloudEvent Time Header"; | ||
public static final String TYPE = "ce_type"; | ||
public static final String TYPE_DESC = "CloudEvent Payload Type Header"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters