java.lang.Object
io.cloudevents.core.impl.BaseCloudEvent
io.cloudevents.core.v03.CloudEventV03
- All Implemented Interfaces:
io.cloudevents.CloudEvent,io.cloudevents.CloudEventAttributes,io.cloudevents.CloudEventContext,io.cloudevents.CloudEventExtensions,io.cloudevents.rw.CloudEventContextReader,io.cloudevents.rw.CloudEventReader
CloudEvent implementation for v0.3
- Author:
- fabiojose, slinkydeveloper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the datacontentencoding attributestatic final StringThe name of the datacontenttype attributestatic final StringThe name of the id attributestatic final StringThe name of the schemaurl attributestatic final StringThe name of the source attributestatic final StringThe name of the specversion attributestatic final StringThe name of the subject attributestatic final StringThe name of the time attributestatic final StringThe name of the type attributeFields inherited from class io.cloudevents.core.impl.BaseCloudEvent
extensions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String attributeName) getId()io.cloudevents.SpecVersiongetTime()getType()inthashCode()voidreadContext(io.cloudevents.rw.CloudEventContextWriter writer) toString()Methods inherited from class io.cloudevents.core.impl.BaseCloudEvent
getData, getExtension, getExtensionNames, read, readExtensionsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.cloudevents.CloudEventAttributes
getAttributeNamesMethods inherited from interface io.cloudevents.rw.CloudEventReader
read
-
Field Details
-
ID
The name of the id attribute- See Also:
-
SOURCE
The name of the source attribute- See Also:
-
SPECVERSION
The name of the specversion attribute- See Also:
-
TYPE
The name of the type attribute- See Also:
-
TIME
The name of the time attribute- See Also:
-
SCHEMAURL
The name of the schemaurl attribute- See Also:
-
DATACONTENTTYPE
The name of the datacontenttype attribute- See Also:
-
DATACONTENTENCODING
The name of the datacontentencoding attribute- See Also:
-
SUBJECT
The name of the subject attribute- See Also:
-
-
Constructor Details
-
CloudEventV03
-
-
Method Details
-
getSpecVersion
public io.cloudevents.SpecVersion getSpecVersion() -
getId
-
getSource
-
getType
-
getDataContentType
-
getDataSchema
-
getSchemaUrl
-
getSubject
-
getTime
-
getAttribute
-
readContext
public void readContext(io.cloudevents.rw.CloudEventContextWriter writer) throws io.cloudevents.rw.CloudEventRWException - Throws:
io.cloudevents.rw.CloudEventRWException
-
equals
-
hashCode
public int hashCode() -
toString
-