public abstract class BaseCloudEvent extends Object implements CloudEvent, CloudEventReader, CloudEventContextReader
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
extensions |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseCloudEvent(CloudEventData data,
Map<String,Object> extensions) |
| Modifier and Type | Method and Description |
|---|---|
CloudEventData |
getData() |
Object |
getExtension(String extensionName) |
Set<String> |
getExtensionNames() |
<T extends CloudEventWriter<V>,V> |
read(CloudEventWriterFactory<T,V> writerFactory,
CloudEventDataMapper<? extends CloudEventData> mapper) |
protected void |
readExtensions(CloudEventContextWriter writer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributeNames, getDataContentType, getDataSchema, getId, getSource, getSpecVersion, getSubject, getTime, getTypereadreadContextprotected BaseCloudEvent(CloudEventData data, Map<String,Object> extensions)
public CloudEventData getData()
getData in interface CloudEventpublic Object getExtension(String extensionName)
getExtension in interface CloudEventExtensionspublic Set<String> getExtensionNames()
getExtensionNames in interface CloudEventExtensionspublic <T extends CloudEventWriter<V>,V> V read(CloudEventWriterFactory<T,V> writerFactory, CloudEventDataMapper<? extends CloudEventData> mapper) throws CloudEventRWException, IllegalStateException
read in interface CloudEventReaderCloudEventRWExceptionIllegalStateExceptionprotected void readExtensions(CloudEventContextWriter writer) throws CloudEventRWException
CloudEventRWExceptionCopyright © 2024. All rights reserved.