@ParametersAreNonnullByDefault public interface CloudEventAttributes
For more info: Context attributes
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attributeName)
Get the context attribute named
attributeName |
default Set<String> |
getAttributeNames() |
String |
getDataContentType()
A common way to get the media type of CloudEvents 'data';
|
URI |
getDataSchema() |
String |
getId() |
URI |
getSource() |
SpecVersion |
getSpecVersion() |
String |
getSubject() |
OffsetDateTime |
getTime() |
String |
getType() |
SpecVersion getSpecVersion()
String getId()
String getType()
URI getSource()
@Nullable String getDataContentType()
@Nullable URI getDataSchema()
@Nullable OffsetDateTime getTime()
@Nullable Object getAttribute(String attributeName) throws IllegalArgumentException
attributeNameattributeName - a valid attribute nameIllegalArgumentException - if the provided attribute name it's not a valid attribute for this specdefault Set<String> getAttributeNames()
Copyright © 2023. All rights reserved.