Package org.apache.camel.cloudevents
Enum Class CloudEvents
- All Implemented Interfaces:
Serializable,Comparable<CloudEvents>,Constable,CloudEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.apache.camel.cloudevents.CloudEvent
CloudEvent.Attribute -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface org.apache.camel.cloudevents.CloudEvent
APPLICATION_OCTET_STREAM_MIME_TYPE, CAMEL_CLOUD_EVENT_CONTENT_TYPE, CAMEL_CLOUD_EVENT_DATA_CONTENT_ENCODING, CAMEL_CLOUD_EVENT_DATA_CONTENT_TYPE, CAMEL_CLOUD_EVENT_EXTENSIONS, CAMEL_CLOUD_EVENT_ID, CAMEL_CLOUD_EVENT_SCHEMA_URL, CAMEL_CLOUD_EVENT_SOURCE, CAMEL_CLOUD_EVENT_SUBJECT, CAMEL_CLOUD_EVENT_TIME, CAMEL_CLOUD_EVENT_TYPE, CAMEL_CLOUD_EVENT_TYPE_VERSION, CAMEL_CLOUD_EVENT_VERSION, DEFAULT_CAMEL_CLOUD_EVENT_SOURCE, DEFAULT_CAMEL_CLOUD_EVENT_TYPE, TEXT_PLAIN_MIME_TYPE -
Method Summary
Modifier and TypeMethodDescriptionList of supported attributes.static CloudEventfromSpecVersion(String version) static CloudEventsReturns the enum constant of this class with the specified name.static CloudEvents[]values()Returns an array containing the constants of this enum class, in the order they are declared.version()The CloudEvent spec version.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.apache.camel.cloudevents.CloudEvent
attribute, getEventTime, httpAttribute, jsonAttribute, mandatoryAttribute
-
Enum Constant Details
-
v1_0
-
v1_0_1
-
v1_0_2
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
version
Description copied from interface:CloudEventThe CloudEvent spec version.- Specified by:
versionin interfaceCloudEvent
-
attributes
Description copied from interface:CloudEventList of supported attributes.- Specified by:
attributesin interfaceCloudEvent
-
fromSpecVersion
-