Interface CloudEvent
-
- All Known Implementing Classes:
CloudEvents
public interface CloudEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CloudEvent.Attribute
-
Field Summary
Fields Modifier and Type Field Description static String
CAMEL_CLOUD_EVENT_CONTENT_TYPE
static String
CAMEL_CLOUD_EVENT_DATA_CONTENT_ENCODING
static String
CAMEL_CLOUD_EVENT_DATA_CONTENT_TYPE
static String
CAMEL_CLOUD_EVENT_EXTENSIONS
static String
CAMEL_CLOUD_EVENT_ID
static String
CAMEL_CLOUD_EVENT_SCHEMA_URL
static String
CAMEL_CLOUD_EVENT_SOURCE
static String
CAMEL_CLOUD_EVENT_SUBJECT
static String
CAMEL_CLOUD_EVENT_TIME
static String
CAMEL_CLOUD_EVENT_TYPE
static String
CAMEL_CLOUD_EVENT_TYPE_VERSION
static String
CAMEL_CLOUD_EVENT_VERSION
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<CloudEvent.Attribute>
attribute(String id)
Find attribute by id.Collection<CloudEvent.Attribute>
attributes()
List of supported attributes.default CloudEvent.Attribute
mandatoryAttribute(String id)
Mandatory find attribute by id.String
version()
The CloudEvent spec version.
-
-
-
Field Detail
-
CAMEL_CLOUD_EVENT_ID
static final String CAMEL_CLOUD_EVENT_ID
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_SOURCE
static final String CAMEL_CLOUD_EVENT_SOURCE
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_VERSION
static final String CAMEL_CLOUD_EVENT_VERSION
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_TYPE
static final String CAMEL_CLOUD_EVENT_TYPE
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_TYPE_VERSION
static final String CAMEL_CLOUD_EVENT_TYPE_VERSION
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_DATA_CONTENT_TYPE
static final String CAMEL_CLOUD_EVENT_DATA_CONTENT_TYPE
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_DATA_CONTENT_ENCODING
static final String CAMEL_CLOUD_EVENT_DATA_CONTENT_ENCODING
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_SCHEMA_URL
static final String CAMEL_CLOUD_EVENT_SCHEMA_URL
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_SUBJECT
static final String CAMEL_CLOUD_EVENT_SUBJECT
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_TIME
static final String CAMEL_CLOUD_EVENT_TIME
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_EXTENSIONS
static final String CAMEL_CLOUD_EVENT_EXTENSIONS
- See Also:
- Constant Field Values
-
CAMEL_CLOUD_EVENT_CONTENT_TYPE
static final String CAMEL_CLOUD_EVENT_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
version
String version()
The CloudEvent spec version.
-
attributes
Collection<CloudEvent.Attribute> attributes()
List of supported attributes.
-
attribute
default Optional<CloudEvent.Attribute> attribute(String id)
Find attribute by id.
-
mandatoryAttribute
default CloudEvent.Attribute mandatoryAttribute(String id)
Mandatory find attribute by id.
-
-