public class org.springframework.http.codec.protobuf.ProtobufDecoder extends org.springframework.http.codec.protobuf.ProtobufCodecSupport implements org.springframework.core.codec.Decoder<com.google.protobuf.Message>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.codec.protobuf.ProtobufDecoder
super_class: org.springframework.http.codec.protobuf.ProtobufCodecSupport
{
protected static final int DEFAULT_MESSAGE_MAX_SIZE;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 65536
private static final java.util.concurrent.ConcurrentMap<java.lang.Class<?>, java.lang.reflect.Method> methodCache;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<*>;Ljava/lang/reflect/Method;>;
private final com.google.protobuf.ExtensionRegistry extensionRegistry;
descriptor: Lcom/google/protobuf/ExtensionRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int maxMessageSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.springframework.util.ConcurrentReferenceHashMap
dup
invokespecial org.springframework.util.ConcurrentReferenceHashMap.<init>:()V
putstatic org.springframework.http.codec.protobuf.ProtobufDecoder.methodCache:Ljava/util/concurrent/ConcurrentMap;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.protobuf.ExtensionRegistry.newInstance:()Lcom/google/protobuf/ExtensionRegistry;
invokespecial org.springframework.http.codec.protobuf.ProtobufDecoder.<init>:(Lcom/google/protobuf/ExtensionRegistry;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
public void <init>(com.google.protobuf.ExtensionRegistry);
descriptor: (Lcom/google/protobuf/ExtensionRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.http.codec.protobuf.ProtobufCodecSupport.<init>:()V
1: aload 0
ldc 65536
putfield org.springframework.http.codec.protobuf.ProtobufDecoder.maxMessageSize:I
2: aload 1
ldc "ExtensionRegistry must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 1
putfield org.springframework.http.codec.protobuf.ProtobufDecoder.extensionRegistry:Lcom/google/protobuf/ExtensionRegistry;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
0 5 1 extensionRegistry Lcom/google/protobuf/ExtensionRegistry;
MethodParameters:
Name Flags
extensionRegistry
public void setMaxMessageSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.http.codec.protobuf.ProtobufDecoder.maxMessageSize:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
0 2 1 maxMessageSize I
MethodParameters:
Name Flags
maxMessageSize
public boolean canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType);
descriptor: (Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc Lcom/google/protobuf/Message;
aload 1
invokevirtual org.springframework.core.ResolvableType.toClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 1
aload 0
aload 2
invokevirtual org.springframework.http.codec.protobuf.ProtobufDecoder.supportsMimeType:(Lorg/springframework/util/MimeType;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
0 2 1 elementType Lorg/springframework/core/ResolvableType;
0 2 2 mimeType Lorg/springframework/util/MimeType;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
elementType
mimeType
public reactor.core.publisher.Flux<com.google.protobuf.Message> decode(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>, org.springframework.core.ResolvableType, org.springframework.util.MimeType, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Lorg/reactivestreams/Publisher;Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;Ljava/util/Map;)Lreactor/core/publisher/Flux;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokestatic reactor.core.publisher.Flux.from:(Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Flux;
1: new org.springframework.http.codec.protobuf.ProtobufDecoder$MessageDecoderFunction
dup
aload 0
aload 2
aload 0
getfield org.springframework.http.codec.protobuf.ProtobufDecoder.maxMessageSize:I
invokespecial org.springframework.http.codec.protobuf.ProtobufDecoder$MessageDecoderFunction.<init>:(Lorg/springframework/http/codec/protobuf/ProtobufDecoder;Lorg/springframework/core/ResolvableType;I)V
invokevirtual reactor.core.publisher.Flux.flatMapIterable:(Ljava/util/function/Function;)Lreactor/core/publisher/Flux;
2: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
0 3 1 inputStream Lorg/reactivestreams/Publisher<Lorg/springframework/core/io/buffer/DataBuffer;>;
0 3 2 elementType Lorg/springframework/core/ResolvableType;
0 3 3 mimeType Lorg/springframework/util/MimeType;
0 3 4 hints Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
Signature: (Lorg/reactivestreams/Publisher<Lorg/springframework/core/io/buffer/DataBuffer;>;Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)Lreactor/core/publisher/Flux<Lcom/google/protobuf/Message;>;
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.springframework.lang.Nullable()
3:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
inputStream
elementType
mimeType
hints
public reactor.core.publisher.Mono<com.google.protobuf.Message> decodeToMono(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>, org.springframework.core.ResolvableType, org.springframework.util.MimeType, java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Lorg/reactivestreams/Publisher;Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;Ljava/util/Map;)Lreactor/core/publisher/Mono;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokestatic org.springframework.core.io.buffer.DataBufferUtils.join:(Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Mono;
aload 0
aload 2
invokedynamic apply(Lorg/springframework/http/codec/protobuf/ProtobufDecoder;Lorg/springframework/core/ResolvableType;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/http/codec/protobuf/ProtobufDecoder.lambda$0(Lorg/springframework/core/ResolvableType;Lorg/springframework/core/io/buffer/DataBuffer;)Lcom/google/protobuf/Message; (7)
(Lorg/springframework/core/io/buffer/DataBuffer;)Lcom/google/protobuf/Message;
invokevirtual reactor.core.publisher.Mono.map:(Ljava/util/function/Function;)Lreactor/core/publisher/Mono;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
0 1 1 inputStream Lorg/reactivestreams/Publisher<Lorg/springframework/core/io/buffer/DataBuffer;>;
0 1 2 elementType Lorg/springframework/core/ResolvableType;
0 1 3 mimeType Lorg/springframework/util/MimeType;
0 1 4 hints Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
Signature: (Lorg/reactivestreams/Publisher<Lorg/springframework/core/io/buffer/DataBuffer;>;Lorg/springframework/core/ResolvableType;Lorg/springframework/util/MimeType;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)Lreactor/core/publisher/Mono<Lcom/google/protobuf/Message;>;
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.springframework.lang.Nullable()
3:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
inputStream
elementType
mimeType
hints
private static com.google.protobuf.Message$Builder getMessageBuilder(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lcom/google/protobuf/Message$Builder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.springframework.http.codec.protobuf.ProtobufDecoder.methodCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.reflect.Method
astore 1
start local 1 1: aload 1
ifnonnull 4
2: aload 0
ldc "newBuilder"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 1
3: getstatic org.springframework.http.codec.protobuf.ProtobufDecoder.methodCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.lang.reflect.Method
StackMap stack:
aload 1
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.protobuf.Message$Builder
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 clazz Ljava/lang/Class<*>;
1 5 1 method Ljava/lang/reflect/Method;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Class<*>;)Lcom/google/protobuf/Message$Builder;
MethodParameters:
Name Flags
clazz
public java.util.List<org.springframework.util.MimeType> getDecodableMimeTypes();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.http.codec.protobuf.ProtobufDecoder.getMimeTypes:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
Signature: ()Ljava/util/List<Lorg/springframework/util/MimeType;>;
private com.google.protobuf.Message lambda$0(org.springframework.core.ResolvableType, org.springframework.core.io.buffer.DataBuffer);
descriptor: (Lorg/springframework/core/ResolvableType;Lorg/springframework/core/io/buffer/DataBuffer;)Lcom/google/protobuf/Message;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 2 0: aload 1
invokevirtual org.springframework.core.ResolvableType.toClass:()Ljava/lang/Class;
invokestatic org.springframework.http.codec.protobuf.ProtobufDecoder.getMessageBuilder:(Ljava/lang/Class;)Lcom/google/protobuf/Message$Builder;
astore 3
start local 3 1: aload 2
invokeinterface org.springframework.core.io.buffer.DataBuffer.asByteBuffer:()Ljava/nio/ByteBuffer;
astore 4
start local 4 2: aload 3
aload 4
invokestatic com.google.protobuf.CodedInputStream.newInstance:(Ljava/nio/ByteBuffer;)Lcom/google/protobuf/CodedInputStream;
aload 0
getfield org.springframework.http.codec.protobuf.ProtobufDecoder.extensionRegistry:Lcom/google/protobuf/ExtensionRegistry;
invokeinterface com.google.protobuf.Message$Builder.mergeFrom:(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/Message$Builder;
pop
3: aload 3
invokeinterface com.google.protobuf.Message$Builder.build:()Lcom/google/protobuf/Message;
astore 6
4: aload 2
invokestatic org.springframework.core.io.buffer.DataBufferUtils.release:(Lorg/springframework/core/io/buffer/DataBuffer;)Z
pop
5: aload 6
areturn
end local 4 end local 3 6: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 7: new org.springframework.core.codec.DecodingException
dup
ldc "I/O error while parsing input stream"
aload 3
invokespecial org.springframework.core.codec.DecodingException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 8: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 9: new org.springframework.core.codec.DecodingException
dup
new java.lang.StringBuilder
dup
ldc "Could not read Protobuf message: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.springframework.core.codec.DecodingException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
11: aload 2
invokestatic org.springframework.core.io.buffer.DataBufferUtils.release:(Lorg/springframework/core/io/buffer/DataBuffer;)Z
pop
12: aload 5
athrow
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/http/codec/protobuf/ProtobufDecoder;
0 13 2 dataBuffer Lorg/springframework/core/io/buffer/DataBuffer;
1 6 3 builder Lcom/google/protobuf/Message$Builder;
2 6 4 buffer Ljava/nio/ByteBuffer;
7 8 3 ex Ljava/io/IOException;
9 10 3 ex Ljava/lang/Exception;
Exception table:
from to target type
0 4 6 Class java.io.IOException
0 4 8 Class java.lang.Exception
0 4 10 any
6 10 10 any
}
Signature: Lorg/springframework/http/codec/protobuf/ProtobufCodecSupport;Lorg/springframework/core/codec/Decoder<Lcom/google/protobuf/Message;>;
SourceFile: "ProtobufDecoder.java"
NestMembers:
org.springframework.http.codec.protobuf.ProtobufDecoder$MessageDecoderFunction
InnerClasses:
public abstract Builder = com.google.protobuf.Message$Builder of com.google.protobuf.Message
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private MessageDecoderFunction = org.springframework.http.codec.protobuf.ProtobufDecoder$MessageDecoderFunction of org.springframework.http.codec.protobuf.ProtobufDecoder