java.lang.Object
io.cloudevents.core.impl.BaseCloudEvent
- All Implemented Interfaces:
io.cloudevents.CloudEvent,io.cloudevents.CloudEventAttributes,io.cloudevents.CloudEventContext,io.cloudevents.CloudEventExtensions,io.cloudevents.rw.CloudEventContextReader,io.cloudevents.rw.CloudEventReader
- Direct Known Subclasses:
CloudEventV03,CloudEventV1
public abstract class BaseCloudEvent
extends Object
implements io.cloudevents.CloudEvent, io.cloudevents.rw.CloudEventReader, io.cloudevents.rw.CloudEventContextReader
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseCloudEvent(io.cloudevents.CloudEventData data, Map<String, Object> extensions) -
Method Summary
Modifier and TypeMethodDescriptionio.cloudevents.CloudEventDatagetData()getExtension(String extensionName) <T extends io.cloudevents.rw.CloudEventWriter<V>,V>
Vread(io.cloudevents.rw.CloudEventWriterFactory<T, V> writerFactory, io.cloudevents.rw.CloudEventDataMapper<? extends io.cloudevents.CloudEventData> mapper) protected voidreadExtensions(io.cloudevents.rw.CloudEventContextWriter writer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cloudevents.CloudEventAttributes
getAttribute, getAttributeNames, getDataContentType, getDataSchema, getId, getSource, getSpecVersion, getSubject, getTime, getTypeMethods inherited from interface io.cloudevents.rw.CloudEventContextReader
readContextMethods inherited from interface io.cloudevents.rw.CloudEventReader
read
-
Field Details
-
extensions
-
-
Constructor Details
-
BaseCloudEvent
-
-
Method Details
-
getData
public io.cloudevents.CloudEventData getData()- Specified by:
getDatain interfaceio.cloudevents.CloudEvent
-
getExtension
- Specified by:
getExtensionin interfaceio.cloudevents.CloudEventExtensions
-
getExtensionNames
- Specified by:
getExtensionNamesin interfaceio.cloudevents.CloudEventExtensions
-
read
public <T extends io.cloudevents.rw.CloudEventWriter<V>,V> V read(io.cloudevents.rw.CloudEventWriterFactory<T, V> writerFactory, io.cloudevents.rw.CloudEventDataMapper<? extends io.cloudevents.CloudEventData> mapper) throws io.cloudevents.rw.CloudEventRWException, IllegalStateException- Specified by:
readin interfaceio.cloudevents.rw.CloudEventReader- Throws:
io.cloudevents.rw.CloudEventRWExceptionIllegalStateException
-
readExtensions
protected void readExtensions(io.cloudevents.rw.CloudEventContextWriter writer) throws io.cloudevents.rw.CloudEventRWException - Throws:
io.cloudevents.rw.CloudEventRWException
-