public class io.vertx.amqpbridge.impl.MessageTranslatorImpl
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.amqpbridge.impl.MessageTranslatorImpl
super_class: java.lang.Object
{
private static final org.apache.qpid.proton.amqp.messaging.AmqpValue EMPTY_BODY_SECTION;
descriptor: Lorg/apache/qpid/proton/amqp/messaging/AmqpValue;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.apache.qpid.proton.amqp.messaging.AmqpValue
dup
aconst_null
invokespecial org.apache.qpid.proton.amqp.messaging.AmqpValue.<init>:(Ljava/lang/Object;)V
putstatic io.vertx.amqpbridge.impl.MessageTranslatorImpl.EMPTY_BODY_SECTION:Lorg/apache/qpid/proton/amqp/messaging/AmqpValue;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
public io.vertx.core.json.JsonObject convertToJsonObject(org.apache.qpid.proton.message.Message);
descriptor: (Lorg/apache/qpid/proton/message/Message;)Lio/vertx/core/json/JsonObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface org.apache.qpid.proton.message.Message.getBody:()Lorg/apache/qpid/proton/amqp/messaging/Section;
astore 3
start local 3 2: aload 3
instanceof org.apache.qpid.proton.amqp.messaging.AmqpValue
ifeq 7
3: aload 0
aload 3
checkcast org.apache.qpid.proton.amqp.messaging.AmqpValue
invokevirtual org.apache.qpid.proton.amqp.messaging.AmqpValue.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToJsonCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 4: aload 2
ldc "body"
aload 4
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
5: aload 2
ldc "body_type"
ldc "value"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
end local 4 6: goto 18
StackMap locals: io.vertx.core.json.JsonObject org.apache.qpid.proton.amqp.messaging.Section
StackMap stack:
7: aload 3
instanceof org.apache.qpid.proton.amqp.messaging.Data
ifeq 14
8: aload 3
checkcast org.apache.qpid.proton.amqp.messaging.Data
invokevirtual org.apache.qpid.proton.amqp.messaging.Data.getValue:()Lorg/apache/qpid/proton/amqp/Binary;
astore 4
start local 4 9: aload 4
invokevirtual org.apache.qpid.proton.amqp.Binary.getLength:()I
newarray 8
astore 5
start local 5 10: aload 4
invokevirtual org.apache.qpid.proton.amqp.Binary.getArray:()[B
aload 4
invokevirtual org.apache.qpid.proton.amqp.Binary.getArrayOffset:()I
aload 5
iconst_0
aload 4
invokevirtual org.apache.qpid.proton.amqp.Binary.getLength:()I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 2
ldc "body"
aload 5
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;[B)Lio/vertx/core/json/JsonObject;
pop
12: aload 2
ldc "body_type"
ldc "data"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
end local 5 end local 4 13: goto 18
StackMap locals:
StackMap stack:
14: aload 3
instanceof org.apache.qpid.proton.amqp.messaging.AmqpSequence
ifeq 18
15: aload 0
aload 3
checkcast org.apache.qpid.proton.amqp.messaging.AmqpSequence
invokevirtual org.apache.qpid.proton.amqp.messaging.AmqpSequence.getValue:()Ljava/util/List;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToJsonCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.json.JsonArray
astore 4
start local 4 16: aload 2
ldc "body"
aload 4
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonArray;)Lio/vertx/core/json/JsonObject;
pop
17: aload 2
ldc "body_type"
ldc "sequence"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
end local 4 18: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.apache.qpid.proton.message.Message.getProperties:()Lorg/apache/qpid/proton/amqp/messaging/Properties;
astore 4
start local 4 19: aload 4
ifnull 22
20: aload 0
aload 4
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createJsonProperties:(Lorg/apache/qpid/proton/amqp/messaging/Properties;)Lio/vertx/core/json/JsonObject;
astore 5
start local 5 21: aload 2
ldc "properties"
aload 5
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
end local 5 22: StackMap locals: org.apache.qpid.proton.amqp.messaging.Properties
StackMap stack:
aload 1
invokeinterface org.apache.qpid.proton.message.Message.getHeader:()Lorg/apache/qpid/proton/amqp/messaging/Header;
astore 5
start local 5 23: aload 5
ifnull 26
24: aload 0
aload 5
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createJsonHeader:(Lorg/apache/qpid/proton/amqp/messaging/Header;)Lio/vertx/core/json/JsonObject;
astore 6
start local 6 25: aload 2
ldc "header"
aload 6
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
end local 6 26: StackMap locals: org.apache.qpid.proton.amqp.messaging.Header
StackMap stack:
aload 1
invokeinterface org.apache.qpid.proton.message.Message.getApplicationProperties:()Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;
astore 6
start local 6 27: aload 6
ifnull 30
aload 6
invokevirtual org.apache.qpid.proton.amqp.messaging.ApplicationProperties.getValue:()Ljava/util/Map;
ifnull 30
28: aload 0
aload 6
invokevirtual org.apache.qpid.proton.amqp.messaging.ApplicationProperties.getValue:()Ljava/util/Map;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createJsonApplicationProperties:(Ljava/util/Map;)Lio/vertx/core/json/JsonObject;
astore 7
start local 7 29: aload 2
ldc "application_properties"
aload 7
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
end local 7 30: StackMap locals: org.apache.qpid.proton.amqp.messaging.ApplicationProperties
StackMap stack:
aload 1
invokeinterface org.apache.qpid.proton.message.Message.getMessageAnnotations:()Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;
astore 7
start local 7 31: aload 7
ifnull 34
aload 7
invokevirtual org.apache.qpid.proton.amqp.messaging.MessageAnnotations.getValue:()Ljava/util/Map;
ifnull 34
32: aload 0
aload 7
invokevirtual org.apache.qpid.proton.amqp.messaging.MessageAnnotations.getValue:()Ljava/util/Map;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createJsonMessageAnnotations:(Ljava/util/Map;)Lio/vertx/core/json/JsonObject;
astore 8
start local 8 33: aload 2
ldc "message_annotations"
aload 8
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
end local 8 34: StackMap locals: org.apache.qpid.proton.amqp.messaging.MessageAnnotations
StackMap stack:
aload 2
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 35 1 protonMessage Lorg/apache/qpid/proton/message/Message;
1 35 2 jsonObject Lio/vertx/core/json/JsonObject;
2 35 3 body Lorg/apache/qpid/proton/amqp/messaging/Section;
4 6 4 value Ljava/lang/Object;
9 13 4 bin Lorg/apache/qpid/proton/amqp/Binary;
10 13 5 bytes [B
16 18 4 jsonSequence Lio/vertx/core/json/JsonArray;
19 35 4 props Lorg/apache/qpid/proton/amqp/messaging/Properties;
21 22 5 jsonProps Lio/vertx/core/json/JsonObject;
23 35 5 header Lorg/apache/qpid/proton/amqp/messaging/Header;
25 26 6 jsonHeader Lio/vertx/core/json/JsonObject;
27 35 6 appProps Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;
29 30 7 jsonAppProps Lio/vertx/core/json/JsonObject;
31 35 7 msgAnn Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;
33 34 8 jsonMsgAnn Lio/vertx/core/json/JsonObject;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
protonMessage
private io.vertx.core.json.JsonObject (org.apache.qpid.proton.amqp.messaging.Header);
descriptor: (Lorg/apache/qpid/proton/amqp/messaging/Header;)Lio/vertx/core/json/JsonObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getDurable:()Ljava/lang/Boolean;
ifnull 3
2: aload 2
ldc "durable"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getDurable:()Ljava/lang/Boolean;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Boolean;)Lio/vertx/core/json/JsonObject;
pop
3: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getPriority:()Lorg/apache/qpid/proton/amqp/UnsignedByte;
ifnull 5
4: aload 2
ldc "priority"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getPriority:()Lorg/apache/qpid/proton/amqp/UnsignedByte;
invokevirtual org.apache.qpid.proton.amqp.UnsignedByte.shortValue:()S
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getTtl:()Lorg/apache/qpid/proton/amqp/UnsignedInteger;
ifnull 7
6: aload 2
ldc "ttl"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getTtl:()Lorg/apache/qpid/proton/amqp/UnsignedInteger;
invokevirtual org.apache.qpid.proton.amqp.UnsignedInteger.longValue:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Long;)Lio/vertx/core/json/JsonObject;
pop
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getFirstAcquirer:()Ljava/lang/Boolean;
ifnull 9
8: aload 2
ldc "first_acquirer"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getFirstAcquirer:()Ljava/lang/Boolean;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Boolean;)Lio/vertx/core/json/JsonObject;
pop
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getDeliveryCount:()Lorg/apache/qpid/proton/amqp/UnsignedInteger;
ifnull 11
10: aload 2
ldc "delivery_count"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.getDeliveryCount:()Lorg/apache/qpid/proton/amqp/UnsignedInteger;
invokevirtual org.apache.qpid.proton.amqp.UnsignedInteger.longValue:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Long;)Lio/vertx/core/json/JsonObject;
pop
11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 12 1 protonHeader Lorg/apache/qpid/proton/amqp/messaging/Header;
1 12 2 jsonHeader Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
protonHeader
private io.vertx.core.json.JsonObject createJsonMessageAnnotations(java.util.Map<org.apache.qpid.proton.amqp.Symbol, java.lang.Object>);
descriptor: (Ljava/util/Map;)Lio/vertx/core/json/JsonObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.util.Map io.vertx.core.json.JsonObject top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 3: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.qpid.proton.amqp.Symbol
astore 5
start local 5 4: aload 0
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToJsonCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 5: aload 2
aload 5
invokevirtual org.apache.qpid.proton.amqp.Symbol.toString:()Ljava/lang/String;
aload 6
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
end local 6 end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 8 1 msgAnn Ljava/util/Map<Lorg/apache/qpid/proton/amqp/Symbol;Ljava/lang/Object;>;
1 8 2 jsonMsgAnn Lio/vertx/core/json/JsonObject;
3 6 3 entry Ljava/util/Map$Entry<Lorg/apache/qpid/proton/amqp/Symbol;Ljava/lang/Object;>;
4 6 5 key Lorg/apache/qpid/proton/amqp/Symbol;
5 6 6 value Ljava/lang/Object;
Signature: (Ljava/util/Map<Lorg/apache/qpid/proton/amqp/Symbol;Ljava/lang/Object;>;)Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
msgAnn
private io.vertx.core.json.JsonObject createJsonProperties(org.apache.qpid.proton.amqp.messaging.Properties);
descriptor: (Lorg/apache/qpid/proton/amqp/messaging/Properties;)Lio/vertx/core/json/JsonObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getTo:()Ljava/lang/String;
ifnull 3
2: aload 2
ldc "to"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getTo:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
3: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getReplyTo:()Ljava/lang/String;
ifnull 5
4: aload 2
ldc "reply_to"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getReplyTo:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getMessageId:()Ljava/lang/Object;
ifnull 7
6: aload 2
ldc "message_id"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getMessageId:()Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getCorrelationId:()Ljava/lang/Object;
ifnull 9
8: aload 2
ldc "correlation_id"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getCorrelationId:()Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getSubject:()Ljava/lang/String;
ifnull 11
10: aload 2
ldc "subject"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getSubject:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getGroupId:()Ljava/lang/String;
ifnull 13
12: aload 2
ldc "group_id"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getGroupId:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
13: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getGroupSequence:()Lorg/apache/qpid/proton/amqp/UnsignedInteger;
ifnull 15
14: aload 2
ldc "group_sequence"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getGroupSequence:()Lorg/apache/qpid/proton/amqp/UnsignedInteger;
invokevirtual org.apache.qpid.proton.amqp.UnsignedInteger.longValue:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Long;)Lio/vertx/core/json/JsonObject;
pop
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getReplyToGroupId:()Ljava/lang/String;
ifnull 17
16: aload 2
ldc "reply_to_group_id"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getReplyToGroupId:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getContentType:()Lorg/apache/qpid/proton/amqp/Symbol;
ifnull 19
18: aload 2
ldc "content_type"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getContentType:()Lorg/apache/qpid/proton/amqp/Symbol;
invokevirtual org.apache.qpid.proton.amqp.Symbol.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
19: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getContentEncoding:()Lorg/apache/qpid/proton/amqp/Symbol;
ifnull 21
20: aload 2
ldc "content_encoding"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getContentEncoding:()Lorg/apache/qpid/proton/amqp/Symbol;
invokevirtual org.apache.qpid.proton.amqp.Symbol.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
21: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getCreationTime:()Ljava/util/Date;
ifnull 23
22: aload 2
ldc "creation_time"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getCreationTime:()Ljava/util/Date;
invokevirtual java.util.Date.getTime:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Long;)Lio/vertx/core/json/JsonObject;
pop
23: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getAbsoluteExpiryTime:()Ljava/util/Date;
ifnull 25
24: aload 2
ldc "absolute_expiry_time"
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getAbsoluteExpiryTime:()Ljava/util/Date;
invokevirtual java.util.Date.getTime:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Long;)Lio/vertx/core/json/JsonObject;
pop
25: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getUserId:()Lorg/apache/qpid/proton/amqp/Binary;
ifnull 29
26: aload 1
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.getUserId:()Lorg/apache/qpid/proton/amqp/Binary;
astore 3
start local 3 27: new java.lang.String
dup
aload 3
invokevirtual org.apache.qpid.proton.amqp.Binary.getArray:()[B
aload 3
invokevirtual org.apache.qpid.proton.amqp.Binary.getArrayOffset:()I
aload 3
invokevirtual org.apache.qpid.proton.amqp.Binary.getLength:()I
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BIILjava/nio/charset/Charset;)V
astore 4
start local 4 28: aload 2
ldc "user_id"
aload 4
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
end local 4 end local 3 29: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 30 1 protonProps Lorg/apache/qpid/proton/amqp/messaging/Properties;
1 30 2 jsonProps Lio/vertx/core/json/JsonObject;
27 29 3 bin Lorg/apache/qpid/proton/amqp/Binary;
28 29 4 userId Ljava/lang/String;
MethodParameters:
Name Flags
protonProps
private io.vertx.core.json.JsonObject createJsonApplicationProperties(java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Ljava/util/Map;)Lio/vertx/core/json/JsonObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.util.Map io.vertx.core.json.JsonObject top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 3: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 0
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToJsonCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 5: aload 2
aload 5
aload 6
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
end local 6 end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 8 1 appProps Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
1 8 2 jsonAppProps Lio/vertx/core/json/JsonObject;
3 6 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
4 6 5 key Ljava/lang/String;
5 6 6 value Ljava/lang/Object;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
appProps
private java.lang.Object translateToJsonCompatible(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.util.Map
ifeq 10
1: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 2: aload 1
checkcast java.util.Map
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object io.vertx.core.json.JsonObject top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 5: aload 0
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToJsonCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 6: aload 2
aload 5
aload 6
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
end local 6 end local 5 end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 2
astore 1
end local 2 9: goto 27
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object
StackMap stack:
10: aload 1
instanceof java.util.List
ifeq 19
11: new io.vertx.core.json.JsonArray
dup
invokespecial io.vertx.core.json.JsonArray.<init>:()V
astore 2
start local 2 12: aload 1
checkcast java.util.List
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 16
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object io.vertx.core.json.JsonArray top java.util.Iterator
StackMap stack:
13: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 14: aload 0
aload 3
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToJsonCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 15: aload 2
aload 5
invokevirtual io.vertx.core.json.JsonArray.add:(Ljava/lang/Object;)Lio/vertx/core/json/JsonArray;
pop
end local 5 end local 3 16: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
17: aload 2
astore 1
end local 2 18: goto 27
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object
StackMap stack:
19: aload 1
instanceof org.apache.qpid.proton.amqp.Binary
ifeq 25
20: aload 1
checkcast org.apache.qpid.proton.amqp.Binary
astore 2
start local 2 21: aload 2
invokevirtual org.apache.qpid.proton.amqp.Binary.getLength:()I
newarray 8
astore 3
start local 3 22: aload 2
invokevirtual org.apache.qpid.proton.amqp.Binary.getArray:()[B
aload 2
invokevirtual org.apache.qpid.proton.amqp.Binary.getArrayOffset:()I
aload 3
iconst_0
aload 2
invokevirtual org.apache.qpid.proton.amqp.Binary.getLength:()I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
23: aload 3
astore 1
end local 3 end local 2 24: goto 27
StackMap locals:
StackMap stack:
25: aload 1
instanceof java.util.Date
ifeq 27
26: aload 1
checkcast java.util.Date
invokevirtual java.util.Date.getTime:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 1
27: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 28 1 value Ljava/lang/Object;
2 9 2 jsonObject Lio/vertx/core/json/JsonObject;
4 7 3 entry Ljava/util/Map$Entry<**>;
5 7 5 key Ljava/lang/String;
6 7 6 val Ljava/lang/Object;
12 18 2 jsonArray Lio/vertx/core/json/JsonArray;
14 16 3 entry Ljava/lang/Object;
15 16 5 val Ljava/lang/Object;
21 24 2 bin Lorg/apache/qpid/proton/amqp/Binary;
22 24 3 bytes [B
MethodParameters:
Name Flags
value
public org.apache.qpid.proton.message.Message convertToAmqpMessage(io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/message/Message;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: invokestatic org.apache.qpid.proton.message.Message$Factory.create:()Lorg/apache/qpid/proton/message/Message;
astore 2
start local 2 1: aload 1
ldc "body"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 16
2: aload 1
ldc "body_type"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 3: aload 3
ifnull 4
ldc "value"
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
4: StackMap locals: org.apache.qpid.proton.message.Message java.lang.String
StackMap stack:
aload 0
aload 1
ldc "body"
invokevirtual io.vertx.core.json.JsonObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToAmqpCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 5: aload 2
new org.apache.qpid.proton.amqp.messaging.AmqpValue
dup
aload 4
invokespecial org.apache.qpid.proton.amqp.messaging.AmqpValue.<init>:(Ljava/lang/Object;)V
invokeinterface org.apache.qpid.proton.message.Message.setBody:(Lorg/apache/qpid/proton/amqp/messaging/Section;)V
end local 4 6: goto 17
StackMap locals:
StackMap stack:
7: ldc "data"
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
8: aload 1
ldc "body"
invokevirtual io.vertx.core.json.JsonObject.getBinary:(Ljava/lang/String;)[B
astore 4
start local 4 9: aload 2
new org.apache.qpid.proton.amqp.messaging.Data
dup
new org.apache.qpid.proton.amqp.Binary
dup
aload 4
invokespecial org.apache.qpid.proton.amqp.Binary.<init>:([B)V
invokespecial org.apache.qpid.proton.amqp.messaging.Data.<init>:(Lorg/apache/qpid/proton/amqp/Binary;)V
invokeinterface org.apache.qpid.proton.message.Message.setBody:(Lorg/apache/qpid/proton/amqp/messaging/Section;)V
end local 4 10: goto 17
StackMap locals:
StackMap stack:
11: ldc "sequence"
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
12: aload 1
ldc "body"
invokevirtual io.vertx.core.json.JsonObject.getJsonArray:(Ljava/lang/String;)Lio/vertx/core/json/JsonArray;
astore 4
start local 4 13: aload 0
aload 4
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToAmqpCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 5
start local 5 14: aload 2
new org.apache.qpid.proton.amqp.messaging.AmqpSequence
dup
aload 5
invokespecial org.apache.qpid.proton.amqp.messaging.AmqpSequence.<init>:(Ljava/util/List;)V
invokeinterface org.apache.qpid.proton.message.Message.setBody:(Lorg/apache/qpid/proton/amqp/messaging/Section;)V
end local 5 end local 4 end local 3 15: goto 17
16: StackMap locals:
StackMap stack:
aload 2
getstatic io.vertx.amqpbridge.impl.MessageTranslatorImpl.EMPTY_BODY_SECTION:Lorg/apache/qpid/proton/amqp/messaging/AmqpValue;
invokeinterface org.apache.qpid.proton.message.Message.setBody:(Lorg/apache/qpid/proton/amqp/messaging/Section;)V
17: StackMap locals:
StackMap stack:
aload 1
ldc "properties"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 20
18: aload 0
aload 1
ldc "properties"
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createAmqpProperties:(Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/Properties;
astore 3
start local 3 19: aload 2
aload 3
invokeinterface org.apache.qpid.proton.message.Message.setProperties:(Lorg/apache/qpid/proton/amqp/messaging/Properties;)V
end local 3 20: StackMap locals:
StackMap stack:
aload 1
ldc "header"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 23
21: aload 0
aload 1
ldc "header"
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createAmqpHeader:(Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/Header;
astore 3
start local 3 22: aload 2
aload 3
invokeinterface org.apache.qpid.proton.message.Message.setHeader:(Lorg/apache/qpid/proton/amqp/messaging/Header;)V
end local 3 23: StackMap locals:
StackMap stack:
aload 1
ldc "application_properties"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 28
24: aload 0
25: aload 1
ldc "application_properties"
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
26: invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createAmqpApplicationProperties:(Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;
astore 3
start local 3 27: aload 2
aload 3
invokeinterface org.apache.qpid.proton.message.Message.setApplicationProperties:(Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;)V
end local 3 28: StackMap locals:
StackMap stack:
aload 1
ldc "message_annotations"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 33
29: aload 0
30: aload 1
ldc "message_annotations"
invokevirtual io.vertx.core.json.JsonObject.getJsonObject:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
31: invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.createAmqpMessageAnnotations:(Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;
astore 3
start local 3 32: aload 2
aload 3
invokeinterface org.apache.qpid.proton.message.Message.setMessageAnnotations:(Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;)V
end local 3 33: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 34 1 jsonObject Lio/vertx/core/json/JsonObject;
1 34 2 protonMessage Lorg/apache/qpid/proton/message/Message;
3 15 3 bodyType Ljava/lang/String;
5 6 4 value Ljava/lang/Object;
9 10 4 bytes [B
13 15 4 jsonSequence Lio/vertx/core/json/JsonArray;
14 15 5 list Ljava/util/List<Ljava/lang/Object;>;
19 20 3 props Lorg/apache/qpid/proton/amqp/messaging/Properties;
22 23 3 header Lorg/apache/qpid/proton/amqp/messaging/Header;
27 28 3 appProps Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;
32 33 3 msgAnn Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
jsonObject
private org.apache.qpid.proton.amqp.messaging.Header (io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/Header;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new org.apache.qpid.proton.amqp.messaging.Header
dup
invokespecial org.apache.qpid.proton.amqp.messaging.Header.<init>:()V
astore 2
start local 2 1: aload 1
ldc "durable"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 3
2: aload 2
aload 1
ldc "durable"
invokevirtual io.vertx.core.json.JsonObject.getBoolean:(Ljava/lang/String;)Ljava/lang/Boolean;
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.setDurable:(Ljava/lang/Boolean;)V
3: StackMap locals: org.apache.qpid.proton.amqp.messaging.Header
StackMap stack:
aload 1
ldc "priority"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 6
4: aload 1
ldc "priority"
invokevirtual io.vertx.core.json.JsonObject.getInteger:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 3
start local 3 5: aload 2
iload 3
i2b
invokestatic org.apache.qpid.proton.amqp.UnsignedByte.valueOf:(B)Lorg/apache/qpid/proton/amqp/UnsignedByte;
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.setPriority:(Lorg/apache/qpid/proton/amqp/UnsignedByte;)V
end local 3 6: StackMap locals:
StackMap stack:
aload 1
ldc "ttl"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 9
7: aload 1
ldc "ttl"
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;)Ljava/lang/Long;
astore 3
start local 3 8: aload 2
aload 3
invokevirtual java.lang.Long.longValue:()J
invokestatic org.apache.qpid.proton.amqp.UnsignedInteger.valueOf:(J)Lorg/apache/qpid/proton/amqp/UnsignedInteger;
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.setTtl:(Lorg/apache/qpid/proton/amqp/UnsignedInteger;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 1
ldc "first_acquirer"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 11
10: aload 2
aload 1
ldc "first_acquirer"
invokevirtual io.vertx.core.json.JsonObject.getBoolean:(Ljava/lang/String;)Ljava/lang/Boolean;
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.setFirstAcquirer:(Ljava/lang/Boolean;)V
11: StackMap locals:
StackMap stack:
aload 1
ldc "delivery_count"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 14
12: aload 1
ldc "delivery_count"
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;)Ljava/lang/Long;
astore 3
start local 3 13: aload 2
aload 3
invokevirtual java.lang.Long.longValue:()J
invokestatic org.apache.qpid.proton.amqp.UnsignedInteger.valueOf:(J)Lorg/apache/qpid/proton/amqp/UnsignedInteger;
invokevirtual org.apache.qpid.proton.amqp.messaging.Header.setDeliveryCount:(Lorg/apache/qpid/proton/amqp/UnsignedInteger;)V
end local 3 14: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 15 1 jsonHeader Lio/vertx/core/json/JsonObject;
1 15 2 protonHeader Lorg/apache/qpid/proton/amqp/messaging/Header;
5 6 3 priority I
8 9 3 ttl Ljava/lang/Long;
13 14 3 dc Ljava/lang/Long;
MethodParameters:
Name Flags
jsonHeader
private org.apache.qpid.proton.amqp.messaging.MessageAnnotations createAmqpMessageAnnotations(io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: new org.apache.qpid.proton.amqp.messaging.MessageAnnotations
dup
aload 2
invokespecial org.apache.qpid.proton.amqp.messaging.MessageAnnotations.<init>:(Ljava/util/Map;)V
astore 3
start local 3 2: aload 1
invokevirtual io.vertx.core.json.JsonObject.getMap:()Ljava/util/Map;
astore 4
start local 4 3: aload 4
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl io.vertx.core.json.JsonObject java.util.Map org.apache.qpid.proton.amqp.messaging.MessageAnnotations java.util.Map top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 5: aload 0
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToAmqpCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 7
start local 7 6: aload 2
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokestatic org.apache.qpid.proton.amqp.Symbol.valueOf:(Ljava/lang/String;)Lorg/apache/qpid/proton/amqp/Symbol;
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 9 1 jsonMsgAnn Lio/vertx/core/json/JsonObject;
1 9 2 ann Ljava/util/Map<Lorg/apache/qpid/proton/amqp/Symbol;Ljava/lang/Object;>;
2 9 3 protonMsgAnn Lorg/apache/qpid/proton/amqp/messaging/MessageAnnotations;
3 9 4 underlying Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
5 7 5 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
6 7 7 value Ljava/lang/Object;
MethodParameters:
Name Flags
jsonMsgAnn
private org.apache.qpid.proton.amqp.messaging.ApplicationProperties createAmqpApplicationProperties(io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: new org.apache.qpid.proton.amqp.messaging.ApplicationProperties
dup
aload 2
invokespecial org.apache.qpid.proton.amqp.messaging.ApplicationProperties.<init>:(Ljava/util/Map;)V
astore 3
start local 3 2: aload 1
invokevirtual io.vertx.core.json.JsonObject.getMap:()Ljava/util/Map;
astore 4
start local 4 3: aload 4
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl io.vertx.core.json.JsonObject java.util.Map org.apache.qpid.proton.amqp.messaging.ApplicationProperties java.util.Map top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 5: aload 0
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToAmqpCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 7
start local 7 6: aload 2
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 9 1 jsonAppProps Lio/vertx/core/json/JsonObject;
1 9 2 props Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
2 9 3 protonAppProps Lorg/apache/qpid/proton/amqp/messaging/ApplicationProperties;
3 9 4 underlying Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
5 7 5 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
6 7 7 value Ljava/lang/Object;
MethodParameters:
Name Flags
jsonAppProps
private java.lang.Object translateToAmqpCompatible(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
instanceof io.vertx.core.json.JsonObject
ifeq 9
1: new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 2
start local 2 2: aload 1
checkcast io.vertx.core.json.JsonObject
invokevirtual io.vertx.core.json.JsonObject.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object java.util.Map top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: aload 0
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToAmqpCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 5: aload 2
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 2
astore 1
end local 2 8: goto 17
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object
StackMap stack:
9: aload 1
instanceof io.vertx.core.json.JsonArray
ifeq 17
10: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 11: aload 1
checkcast io.vertx.core.json.JsonArray
invokevirtual io.vertx.core.json.JsonArray.iterator:()Ljava/util/Iterator;
astore 4
goto 15
StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object java.util.List top java.util.Iterator
StackMap stack:
12: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 13: aload 0
aload 3
invokevirtual io.vertx.amqpbridge.impl.MessageTranslatorImpl.translateToAmqpCompatible:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 14: aload 2
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 3 15: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
16: aload 2
astore 1
end local 2 17: StackMap locals: io.vertx.amqpbridge.impl.MessageTranslatorImpl java.lang.Object
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 18 1 value Ljava/lang/Object;
2 8 2 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
4 6 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
5 6 5 val Ljava/lang/Object;
11 17 2 list Ljava/util/List<Ljava/lang/Object;>;
13 15 3 entry Ljava/lang/Object;
14 15 5 val Ljava/lang/Object;
MethodParameters:
Name Flags
value
private org.apache.qpid.proton.amqp.messaging.Properties createAmqpProperties(io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/json/JsonObject;)Lorg/apache/qpid/proton/amqp/messaging/Properties;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new org.apache.qpid.proton.amqp.messaging.Properties
dup
invokespecial org.apache.qpid.proton.amqp.messaging.Properties.<init>:()V
astore 2
start local 2 1: aload 1
ldc "to"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 3
2: aload 2
aload 1
ldc "to"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setTo:(Ljava/lang/String;)V
3: StackMap locals: org.apache.qpid.proton.amqp.messaging.Properties
StackMap stack:
aload 1
ldc "reply_to"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 5
4: aload 2
aload 1
ldc "reply_to"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setReplyTo:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 1
ldc "message_id"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 7
6: aload 2
aload 1
ldc "message_id"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setMessageId:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aload 1
ldc "correlation_id"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 9
8: aload 2
aload 1
ldc "correlation_id"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setCorrelationId:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
aload 1
ldc "subject"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 11
10: aload 2
aload 1
ldc "subject"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setSubject:(Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
aload 1
ldc "group_id"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 13
12: aload 2
aload 1
ldc "group_id"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setGroupId:(Ljava/lang/String;)V
13: StackMap locals:
StackMap stack:
aload 1
ldc "group_sequence"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 16
14: aload 1
ldc "group_sequence"
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;)Ljava/lang/Long;
astore 3
start local 3 15: aload 2
aload 3
invokevirtual java.lang.Long.longValue:()J
invokestatic org.apache.qpid.proton.amqp.UnsignedInteger.valueOf:(J)Lorg/apache/qpid/proton/amqp/UnsignedInteger;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setGroupSequence:(Lorg/apache/qpid/proton/amqp/UnsignedInteger;)V
end local 3 16: StackMap locals:
StackMap stack:
aload 1
ldc "reply_to_group_id"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 18
17: aload 2
aload 1
ldc "reply_to_group_id"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setReplyToGroupId:(Ljava/lang/String;)V
18: StackMap locals:
StackMap stack:
aload 1
ldc "content_type"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 21
19: aload 1
ldc "content_type"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 20: aload 2
aload 3
invokestatic org.apache.qpid.proton.amqp.Symbol.valueOf:(Ljava/lang/String;)Lorg/apache/qpid/proton/amqp/Symbol;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setContentType:(Lorg/apache/qpid/proton/amqp/Symbol;)V
end local 3 21: StackMap locals:
StackMap stack:
aload 1
ldc "content_encoding"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 24
22: aload 1
ldc "content_encoding"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 23: aload 2
aload 3
invokestatic org.apache.qpid.proton.amqp.Symbol.valueOf:(Ljava/lang/String;)Lorg/apache/qpid/proton/amqp/Symbol;
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setContentEncoding:(Lorg/apache/qpid/proton/amqp/Symbol;)V
end local 3 24: StackMap locals:
StackMap stack:
aload 1
ldc "creation_time"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 27
25: aload 1
ldc "creation_time"
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;)Ljava/lang/Long;
astore 3
start local 3 26: aload 2
new java.util.Date
dup
aload 3
invokevirtual java.lang.Long.longValue:()J
invokespecial java.util.Date.<init>:(J)V
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setCreationTime:(Ljava/util/Date;)V
end local 3 27: StackMap locals:
StackMap stack:
aload 1
ldc "absolute_expiry_time"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 30
28: aload 1
ldc "absolute_expiry_time"
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;)Ljava/lang/Long;
astore 3
start local 3 29: aload 2
new java.util.Date
dup
aload 3
invokevirtual java.lang.Long.longValue:()J
invokespecial java.util.Date.<init>:(J)V
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setAbsoluteExpiryTime:(Ljava/util/Date;)V
end local 3 30: StackMap locals:
StackMap stack:
aload 1
ldc "user_id"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 33
31: aload 1
ldc "user_id"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 32: aload 2
new org.apache.qpid.proton.amqp.Binary
dup
aload 3
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokespecial org.apache.qpid.proton.amqp.Binary.<init>:([B)V
invokevirtual org.apache.qpid.proton.amqp.messaging.Properties.setUserId:(Lorg/apache/qpid/proton/amqp/Binary;)V
end local 3 33: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lio/vertx/amqpbridge/impl/MessageTranslatorImpl;
0 34 1 jsonProps Lio/vertx/core/json/JsonObject;
1 34 2 proptonProps Lorg/apache/qpid/proton/amqp/messaging/Properties;
15 16 3 seq Ljava/lang/Long;
20 21 3 contentType Ljava/lang/String;
23 24 3 contentEncoding Ljava/lang/String;
26 27 3 creationTime Ljava/lang/Long;
29 30 3 expiryTime Ljava/lang/Long;
32 33 3 userId Ljava/lang/String;
MethodParameters:
Name Flags
jsonProps
}
SourceFile: "MessageTranslatorImpl.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public final Factory = org.apache.qpid.proton.message.Message$Factory of org.apache.qpid.proton.message.Message