| Package | Description |
|---|---|
| io.cloudevents.rw |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CloudEventWriter<R>
Interface to write the content (CloudEvents attributes, extensions and payload) from a
CloudEventReader to a new representation. |
| Modifier and Type | Method and Description |
|---|---|
default CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
Boolean value)
Set attribute with type
Boolean attribute. |
default CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
byte[] value)
Set attribute with a binary type.
|
default CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
Integer value)
Set attribute with type
Integer. |
default CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
Number value)
Deprecated.
CloudEvent specification only permits
Integer type as a
numeric value. |
default CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
OffsetDateTime value)
Set attribute with type
OffsetDateTime attribute. |
CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
String value)
Set attribute with type
String. |
default CloudEventContextWriter |
CloudEventContextWriter.withContextAttribute(String name,
URI value)
Set attribute with type
URI. |
| Modifier and Type | Method and Description |
|---|---|
void |
CloudEventContextReader.readContext(CloudEventContextWriter writer)
Read the context attributes and extensions using the provided writer
|
Copyright © 2021. All rights reserved.