sdk-java/amqp
Francesco Guardiani f5d9b47c1c
Javadocs api and core (#313)
* Javadocs!!!

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing module name?

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Excluding javadocs

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* clean install only release artifacts, but verify them all!

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Reverted the crazy idea to use the release profile

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Suggestions

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Suggestion

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Nit

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Nit

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Nit

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-12-09 18:31:56 +01:00
..
src Simplify the Reader/Writer implementations, reducing the knowledge of spec details (#309) 2020-12-01 17:27:50 +01:00
README.md Fix 404 Not Found in AMQP module Readme (#316) 2020-12-02 21:28:14 +01:00
pom.xml Javadocs api and core (#313) 2020-12-09 18:31:56 +01:00

README.md

AMQP Protocol Binding

Javadocs

This module implements MessageReader and MessageWriter using the Qpid Proton library. It can be used with Qpid Proton or any integrations based on Qpid Proton (e.g vertx-proton).

For Maven based projects, use the following to configure the proton AMQP binding for CloudEvents:

<dependency>
    <groupId>io.cloudevents</groupId>
    <artifactId>cloudevents-amqp-proton</artifactId>
    <version>2.0.0.RC1</version>
</dependency>

Sending and Receiving CloudEvents

To send and receive CloudEvents we use MessageWriter and MessageReader, respectively. This module offers factory methods for creation of those in ProtonAmqpMessageFactory.

public class ProtonAmqpMessageFactory {
    public static MessageReader createReader(final Message message);
    public static MessageReader createReader(final String contentType, final byte[] payload);
    public static MessageReader createReader(final String contentType, final ApplicationProperties props, final byte[] payload);
    public static MessageWriter createWriter();
}

Examples:

The example uses the vertx-proton integration to send/receive CloudEvent messages over AMQP.