public final class AmqpCodec extends Object
| Constructor and Description |
|---|
AmqpCodec() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.qpid.proton.amqp.messaging.Section |
decode(io.netty.buffer.ByteBuf encoded)
Given an encoded AMQP Section, decode the value previously written there.
|
static AmqpJmsMessageFacade |
decodeMessage(AmqpConsumer consumer,
org.apache.qpid.proton.codec.ReadableBuffer messageBytes)
Create a new JmsMessage and underlying JmsMessageFacade that represents the proper
message type for the incoming AMQP message.
|
static io.netty.buffer.ByteBuf |
encode(org.apache.qpid.proton.amqp.messaging.Section section)
Given an AMQP Section encode it and return the buffer holding the encoded value
|
static io.netty.buffer.ByteBuf |
encodeMessage(AmqpJmsMessageFacade message)
Given a Message instance, encode the Message to the wire level representation
of that Message.
|
static org.apache.qpid.proton.codec.DecoderImpl |
getDecoder() |
static org.apache.qpid.proton.codec.EncoderImpl |
getEncoder() |
public static org.apache.qpid.proton.codec.EncoderImpl getEncoder()
public static org.apache.qpid.proton.codec.DecoderImpl getDecoder()
public static io.netty.buffer.ByteBuf encode(org.apache.qpid.proton.amqp.messaging.Section section)
section - the AMQP Section value to encode.public static org.apache.qpid.proton.amqp.messaging.Section decode(io.netty.buffer.ByteBuf encoded)
encoded - the AMQP Section value to decode.public static io.netty.buffer.ByteBuf encodeMessage(AmqpJmsMessageFacade message)
message - the Message that is to be encoded into the wire level representation.public static AmqpJmsMessageFacade decodeMessage(AmqpConsumer consumer, org.apache.qpid.proton.codec.ReadableBuffer messageBytes) throws IOException
consumer - The AmqpConsumer instance that will be linked to the decoded message.messageBytes - The the raw bytes that compose the incoming message. (Read-Only)IOException - if an error occurs while creating the message objects.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.