Package org.apache.camel.cloudevents
Interface CloudEvent
- All Known Implementing Classes:
CloudEvents
public interface CloudEvent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional
<CloudEvent.Attribute> Find attribute by id.List of supported attributes.default String
getEventTime
(Exchange exchange) Construct event time from given Camel exchange.default String
httpAttribute
(String id) Mandatory find http attribute by id.default String
jsonAttribute
(String id) Mandatory find json attribute by id.default CloudEvent.Attribute
Mandatory find attribute by id.version()
The CloudEvent spec version.
-
Field Details
-
CAMEL_CLOUD_EVENT_ID
- See Also:
-
CAMEL_CLOUD_EVENT_SOURCE
- See Also:
-
CAMEL_CLOUD_EVENT_VERSION
- See Also:
-
CAMEL_CLOUD_EVENT_TYPE
- See Also:
-
CAMEL_CLOUD_EVENT_TYPE_VERSION
- See Also:
-
CAMEL_CLOUD_EVENT_DATA_CONTENT_TYPE
- See Also:
-
CAMEL_CLOUD_EVENT_DATA_CONTENT_ENCODING
- See Also:
-
CAMEL_CLOUD_EVENT_SCHEMA_URL
- See Also:
-
CAMEL_CLOUD_EVENT_SUBJECT
- See Also:
-
CAMEL_CLOUD_EVENT_TIME
- See Also:
-
CAMEL_CLOUD_EVENT_EXTENSIONS
- See Also:
-
CAMEL_CLOUD_EVENT_CONTENT_TYPE
- See Also:
-
DEFAULT_CAMEL_CLOUD_EVENT_TYPE
- See Also:
-
DEFAULT_CAMEL_CLOUD_EVENT_SOURCE
- See Also:
-
APPLICATION_OCTET_STREAM_MIME_TYPE
- See Also:
-
TEXT_PLAIN_MIME_TYPE
- See Also:
-
-
Method Details
-
version
String version()The CloudEvent spec version. -
attributes
Collection<CloudEvent.Attribute> attributes()List of supported attributes. -
attribute
Find attribute by id. -
mandatoryAttribute
Mandatory find attribute by id. -
getEventTime
Construct event time from given Camel exchange. -
httpAttribute
Mandatory find http attribute by id. -
jsonAttribute
Mandatory find json attribute by id.
-