| Package | Description |
|---|---|
| io.cloudevents.rw | |
| io.cloudevents.types |
| Modifier and Type | Method and Description |
|---|---|
static CloudEventRWException |
CloudEventRWException.newDataConversion(Throwable cause,
String from,
String to) |
static CloudEventRWException |
CloudEventRWException.newInvalidAttributeName(String attributeName) |
static CloudEventRWException |
CloudEventRWException.newInvalidAttributeType(String attributeName,
Class<?> clazz) |
static CloudEventRWException |
CloudEventRWException.newInvalidAttributeType(String attributeName,
Object value) |
static CloudEventRWException |
CloudEventRWException.newInvalidAttributeValue(String attributeName,
Object value,
Throwable cause) |
static CloudEventRWException |
CloudEventRWException.newInvalidDataType(String actual,
String... allowed) |
static CloudEventRWException |
CloudEventRWException.newInvalidExtensionName(String extensionName) |
static CloudEventRWException |
CloudEventRWException.newInvalidSpecVersion(String specVersion) |
static CloudEventRWException |
CloudEventRWException.newOther(Throwable cause)
This wraps a
Throwable in a new generic instance of this exception. |
static CloudEventRWException |
CloudEventRWException.newUnknownEncodingException() |
| Modifier and Type | Method and Description |
|---|---|
W |
CloudEventWriterFactory.create(SpecVersion version)
Create a
CloudEventWriter starting from the provided SpecVersion |
R |
CloudEventWriter.end()
End the write.
|
R |
CloudEventWriter.end(CloudEventData data)
End the write with a data payload.
|
R |
CloudEventDataMapper.map(CloudEventData data)
Map
data to another CloudEventData instance. |
default <W extends CloudEventWriter<R>,R> |
CloudEventReader.read(CloudEventWriterFactory<W,R> writerFactory)
Like
CloudEventReader.read(CloudEventWriterFactory, CloudEventDataMapper), but with the identity CloudEventDataMapper. |
<W extends CloudEventWriter<R>,R> |
CloudEventReader.read(CloudEventWriterFactory<W,R> writerFactory,
CloudEventDataMapper<? extends CloudEventData> mapper)
Read self using the provided writer factory.
|
void |
CloudEventContextReader.readContext(CloudEventContextWriter writer)
Read the context attributes and extensions using the provided writer
|
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 |
|---|---|
static OffsetDateTime |
Time.parseTime(String attributeName,
String time)
Parse an attribute/extension with RFC3339 compliant
String value as OffsetDateTime. |
Copyright © 2021. All rights reserved.