Java SDK for CloudEvents
Go to file
Jem Day 5e3bfc890f
Specification Compliant handling of numeric context attributes (#358)
* - Added tests case to verify expected handling of numeric context attributes
- Updated serializer.

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* - Added @deprecated marker for CloudEventContextWriter.set(name, Number)
- Added use of new method for JSON serializer.

Cleanup of deprecated implementations can occur independantly.

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Addressed Review Comments

- Now throws exception when non specification compliant numeric
  attribute values are received during deserialization.

- Added test cases to verify deserialization exceptions.

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Address Review Comments

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Address Review Comment

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
2021-03-24 16:58:33 +01:00
.github/workflows Release process docs (#248) 2020-09-29 13:35:57 +02:00
.mvn/wrapper Add Maven wrapper (#144) 2020-04-29 18:21:22 +02:00
amqp Bump to 2.1.0-SNAPSHOT (#346) 2021-02-15 09:19:58 +01:00
api Specification Compliant handling of numeric context attributes (#358) 2021-03-24 16:58:33 +01:00
benchmarks Bump to 2.1.0-SNAPSHOT (#346) 2021-02-15 09:19:58 +01:00
core Specification Compliant handling of numeric context attributes (#358) 2021-03-24 16:58:33 +01:00
docs Add Spring Cloud Function sample (#356) 2021-03-08 15:08:16 +01:00
examples Add Spring Cloud Function sample (#356) 2021-03-08 15:08:16 +01:00
formats/json-jackson Specification Compliant handling of numeric context attributes (#358) 2021-03-24 16:58:33 +01:00
http Bump to 2.1.0-SNAPSHOT (#346) 2021-02-15 09:19:58 +01:00
kafka Bump to 2.1.0-SNAPSHOT (#346) 2021-02-15 09:19:58 +01:00
spring Regularize copyright headers (#354) 2021-03-05 10:19:47 +01:00
.editorconfig Added editorconfig check during the verify phase (#239) 2020-09-28 10:00:21 +02:00
.gitignore Fix 404 Not Found in AMQP module Readme (#316) 2020-12-02 21:28:14 +01:00
LICENSE Formatted code and added copyright headers (#140) 2020-04-28 13:56:06 +02:00
README.md Fix #344 - add http4k references to docs (#345) 2021-02-15 09:42:13 +01:00
maintainer_guidelines.md Release process docs (#248) 2020-09-29 13:35:57 +02:00
mvnw Add Maven wrapper (#144) 2020-04-29 18:21:22 +02:00
mvnw.cmd Add Maven wrapper (#144) 2020-04-29 18:21:22 +02:00
pom.xml Bump to 2.1.0-SNAPSHOT (#346) 2021-02-15 09:19:58 +01:00
pr_guidelines.md copy guidance from javascript repo (#159) 2020-06-04 15:02:20 +02:00

README.md

Java SDK for CloudEvents API

License Maven Central Javadocs

The Java SDK for CloudEvents is a collection of Java packages to adopt CloudEvents in your Java application.

Using the Java SDK you can:

  • Access, create and manipulate CloudEvent inside your application.
  • Serialize and deserialize CloudEvent back and forth using the CloudEvents Event Format, like Json.
  • Read and write CloudEvent back and forth to HTTP, Kafka, AMQP using the CloudEvents Protocol Binding implementations we provide for a wide range of well known Java frameworks/libraries.

To check out the complete documentation and how to get started, look at the dedicated website https://cloudevents.github.io/sdk-java/.

Status

This SDK is considered work in progress. The community is working hard to bring you a new major version of the SDK with major enhancements both to APIs and to implementation.

If you want to know more about v1 of this SDK, check out the v1 readme

Stay tuned!

Supported features of the specification:

v0.3 v1.0
CloudEvents Core ✔️ ✔️
AMQP Protocol Binding
- Proton ✔️ ✔️
AVRO Event Format
HTTP Protocol Binding ✔️ ✔️
- Vert.x ✔️ ✔️
- Jakarta Restful WS ✔️ ✔️
- Basic ✔️ ✔️
- Spring ✔️ ✔️
- http4k ✔️ ✔️
JSON Event Format ✔️ ✔️
- Jackson ✔️ ✔️
Kafka Protocol Binding ✔️ ✔️
MQTT Protocol Binding
NATS Protocol Binding
Web hook

† Source/artifacts hosted externally

Documentation

Documentation is available at https://cloudevents.github.io/sdk-java/.

Javadocs are available on javadoc.io:

You can check out the examples in the examples directory.

Used By

Occurrent Knative Eventing http4k
Occurrent http4k

Community

Each SDK may have its own unique processes, tooling and guidelines, common governance related material can be found in the CloudEvents community directory. In particular, in there you will find information concerning how SDK projects are managed, guidelines for how PR reviews and approval, and our Code of Conduct information.