Class AmqpCloudEventHelper
- java.lang.Object
-
- io.smallrye.reactive.messaging.amqp.ce.AmqpCloudEventHelper
-
public class AmqpCloudEventHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AmqpCloudEventHelper.CloudEventMode
-
Field Summary
Fields Modifier and Type Field Description static String
AMQP_HEADER_FOR_CONTENT_TYPE
static String
AMQP_HEADER_FOR_ID
static String
AMQP_HEADER_FOR_SCHEMA
static String
AMQP_HEADER_FOR_SOURCE
static String
AMQP_HEADER_FOR_SPEC_VERSION
static String
AMQP_HEADER_FOR_SUBJECT
static String
AMQP_HEADER_FOR_TIME
static String
AMQP_HEADER_FOR_TYPE
static String
CE_CONTENT_TYPE_PREFIX
static String
CE_HEADER_PREFIX
static DateTimeFormatter
RFC3339_DATE_FORMAT
static String
STRUCTURED_CONTENT_TYPE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.vertx.mutiny.amqp.AmqpMessage
createBinaryCloudEventMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingCloudEventMetadata<?> ceMetadata, AmqpConnectorOutgoingConfiguration configuration)
static <T> IncomingCloudEventMetadata<T>
createFromBinaryCloudEvent(io.vertx.amqp.AmqpMessage message, AmqpMessage<T> parent)
static <T> IncomingCloudEventMetadata<T>
createFromStructuredCloudEvent(io.vertx.amqp.AmqpMessage message)
static io.vertx.mutiny.amqp.AmqpMessage
createStructuredEventMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingCloudEventMetadata<?> ceMetadata, AmqpConnectorOutgoingConfiguration configuration)
static AmqpCloudEventHelper.CloudEventMode
getCloudEventMode(io.vertx.amqp.AmqpMessage incoming)
-
-
-
Field Detail
-
CE_CONTENT_TYPE_PREFIX
public static final String CE_CONTENT_TYPE_PREFIX
- See Also:
- Constant Field Values
-
CE_HEADER_PREFIX
public static final String CE_HEADER_PREFIX
- See Also:
- Constant Field Values
-
STRUCTURED_CONTENT_TYPE
public static final String STRUCTURED_CONTENT_TYPE
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_SPEC_VERSION
public static final String AMQP_HEADER_FOR_SPEC_VERSION
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_TYPE
public static final String AMQP_HEADER_FOR_TYPE
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_SOURCE
public static final String AMQP_HEADER_FOR_SOURCE
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_ID
public static final String AMQP_HEADER_FOR_ID
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_SCHEMA
public static final String AMQP_HEADER_FOR_SCHEMA
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_CONTENT_TYPE
public static final String AMQP_HEADER_FOR_CONTENT_TYPE
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_SUBJECT
public static final String AMQP_HEADER_FOR_SUBJECT
- See Also:
- Constant Field Values
-
AMQP_HEADER_FOR_TIME
public static final String AMQP_HEADER_FOR_TIME
- See Also:
- Constant Field Values
-
RFC3339_DATE_FORMAT
public static final DateTimeFormatter RFC3339_DATE_FORMAT
-
-
Method Detail
-
createFromStructuredCloudEvent
public static <T> IncomingCloudEventMetadata<T> createFromStructuredCloudEvent(io.vertx.amqp.AmqpMessage message)
-
createFromBinaryCloudEvent
public static <T> IncomingCloudEventMetadata<T> createFromBinaryCloudEvent(io.vertx.amqp.AmqpMessage message, AmqpMessage<T> parent)
-
createBinaryCloudEventMessage
public static io.vertx.mutiny.amqp.AmqpMessage createBinaryCloudEventMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingCloudEventMetadata<?> ceMetadata, AmqpConnectorOutgoingConfiguration configuration)
-
createStructuredEventMessage
public static io.vertx.mutiny.amqp.AmqpMessage createStructuredEventMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingCloudEventMetadata<?> ceMetadata, AmqpConnectorOutgoingConfiguration configuration)
-
getCloudEventMode
public static AmqpCloudEventHelper.CloudEventMode getCloudEventMode(io.vertx.amqp.AmqpMessage incoming)
-
-