| Package | Description |
|---|---|
| io.cloudevents.core.message | |
| io.cloudevents.core.message.impl | |
| io.cloudevents.core.provider |
| Modifier and Type | Method and Description |
|---|---|
static StructuredMessageReader |
StructuredMessageReader.from(CloudEvent event,
EventFormat format)
Create a generic structured message from a
CloudEvent. |
R |
StructuredMessageWriter.setEvent(EventFormat format,
byte[] value)
Write an event using the provided
EventFormat. |
default R |
MessageWriter.writeStructured(CloudEvent event,
EventFormat format)
Write the provided event as structured.
|
| Modifier and Type | Method and Description |
|---|---|
static GenericStructuredMessageReader |
GenericStructuredMessageReader.from(CloudEvent event,
EventFormat format)
Create a generic structured message from a
CloudEvent |
| Modifier and Type | Method and Description |
|---|---|
static MessageReader |
MessageUtils.parseStructuredOrBinaryMessage(Supplier<String> contentTypeHeaderReader,
Function<EventFormat,MessageReader> structuredMessageFactory,
Supplier<String> specVersionHeaderReader,
Function<SpecVersion,MessageReader> binaryMessageFactory)
Common flow to parse an incoming message that could be structured or binary.
|
| Constructor and Description |
|---|
GenericStructuredMessageReader(EventFormat format,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
EventFormat |
EventFormatProvider.resolveFormat(String contentType)
Resolve an event format starting from the content type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventFormatProvider.registerFormat(EventFormat format)
Register a new
EventFormat programmatically. |
Copyright © 2023. All rights reserved.