AbstractAzureMessageConverter<I,O> Class

Definition

Abstract class handles common conversion logic between and Message

public abstract class AbstractAzureMessageConverter<I,O> implements AzureMessageConverter<I,O>

Type Parameters

I
O
Inheritance
java.lang.Object
AbstractAzureMessageConverter<I,O>
Implements

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

AbstractAzureMessageConverter()

Fields

OBJECT_MAPPER

Methods

<M>readValue(String value, Class<M> targetType)

Convert the json string to class targetType instance.

<U>toMessage(I azureMessage, Map<String,Object> headers, Class<U> targetPayloadClass)

Create a Message whose payload is the result of converting the given payload Object to serialized form. The optional MessageHeaders parameter may contain additional headers to be added to the message.

buildCustomHeaders(I azureMessage)
fromByte(byte[] payload)
fromMessage(Message<?> message, Class<O> targetClass)

Convert the payload of a Message from a serialized form to a typed Object of the specified target class.

fromString(String payload)
getObjectMapper()
getPayload(I azureMessage)
isValidJson(Object value)

Check value is valid json string.

setCustomHeaders(MessageHeaders headers, O azureMessage)
toJson(Object value)

Convert the object to json string

toPayload(Object object)

Convert payload object to byte array.

Applies to