public final class CloudEventV1 extends BaseCloudEvent
| Modifier and Type | Field and Description |
|---|---|
static String |
DATACONTENTTYPE
The name of the datacontenttype attribute
|
static String |
DATASCHEMA
The name of the dataschema attribute
|
static String |
ID
The name of the id attribute
|
static String |
SOURCE
The name of the source attribute
|
static String |
SPECVERSION
The name of the specversion attribute
|
static String |
SUBJECT
The name of the subject attribute
|
static String |
TIME
The name of the time attribute
|
static String |
TYPE
The name of the type attribute
|
extensions| Constructor and Description |
|---|
CloudEventV1(String id,
URI source,
String type,
String datacontenttype,
URI dataschema,
String subject,
OffsetDateTime time,
CloudEventData data,
Map<String,Object> extensions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getAttribute(String attributeName) |
String |
getDataContentType() |
URI |
getDataSchema() |
String |
getId() |
URI |
getSource() |
SpecVersion |
getSpecVersion() |
String |
getSubject() |
OffsetDateTime |
getTime() |
String |
getType() |
int |
hashCode() |
void |
readContext(CloudEventContextWriter writer) |
String |
toString() |
getData, getExtension, getExtensionNames, read, readExtensionsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeNamesreadpublic static final String ID
public static final String SOURCE
public static final String SPECVERSION
public static final String TYPE
public static final String TIME
public static final String DATASCHEMA
public static final String DATACONTENTTYPE
public static final String SUBJECT
public SpecVersion getSpecVersion()
public String getId()
public URI getSource()
public String getType()
public String getDataContentType()
public URI getDataSchema()
public String getSubject()
public OffsetDateTime getTime()
public void readContext(CloudEventContextWriter writer) throws CloudEventRWException
CloudEventRWExceptionCopyright © 2023. All rights reserved.