final class implements jdk.incubator.http.HttpHeaders
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.ResponseHeaders
super_class: java.lang.Object
{
private static final char ;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 13
private static final char ;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private final jdk.incubator.http.ImmutableHeaders ;
descriptor: Ljdk/incubator/http/ImmutableHeaders;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void (jdk.incubator.http.HttpConnection, java.nio.ByteBuffer);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: new jdk.incubator.http.ResponseHeaders$InputStreamWrapper
dup
aload 1
aload 2
invokespecial jdk.incubator.http.ResponseHeaders$InputStreamWrapper.<init>:(Ljdk/incubator/http/HttpConnection;Ljava/nio/ByteBuffer;)V
astore 3
start local 3 4: aload 0
aload 0
aload 3
invokevirtual jdk.incubator.http.ResponseHeaders.parse:(Ljdk/incubator/http/ResponseHeaders$InputStreamWrapper;)Ljava/util/Map;
invokestatic jdk.incubator.http.ImmutableHeaders.of:(Ljava/util/Map;)Ljdk/incubator/http/ImmutableHeaders;
putfield jdk.incubator.http.ResponseHeaders.delegate:Ljdk/incubator/http/ImmutableHeaders;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/ResponseHeaders;
0 6 1 connection Ljdk/incubator/http/HttpConnection;
0 6 2 buffer Ljava/nio/ByteBuffer;
4 6 3 input Ljdk/incubator/http/ResponseHeaders$InputStreamWrapper;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
connection
buffer
private static void display(java.util.Map<java.lang.String, java.util.List<java.lang.String>>);
descriptor: (Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic accept()Ljava/util/function/BiConsumer;
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;)V
jdk/incubator/http/ResponseHeaders.lambda$0(Ljava/lang/String;Ljava/util/List;)V (6)
(Ljava/lang/String;Ljava/util/List;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 map Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;)V
MethodParameters:
Name Flags
map
private java.util.Map<java.lang.String, java.util.List<java.lang.String>> parse(jdk.incubator.http.ResponseHeaders$InputStreamWrapper);
descriptor: (Ljdk/incubator/http/ResponseHeaders$InputStreamWrapper;)Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=11, args_size=2
start local 0 start local 1 0: new sun.net.www.MessageHeader
dup
invokespecial sun.net.www.MessageHeader.<init>:()V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual sun.net.www.MessageHeader.parseHeader:(Ljava/io/InputStream;)V
2: aload 1
getfield jdk.incubator.http.ResponseHeaders$InputStreamWrapper.consumed:I
iconst_1
if_icmpne 8
bipush 13
aload 1
getfield jdk.incubator.http.ResponseHeaders$InputStreamWrapper.lastRead:I
i2c
if_icmpne 8
3: aload 1
invokevirtual jdk.incubator.http.ResponseHeaders$InputStreamWrapper.read:()I
bipush 10
if_icmpeq 8
4: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected byte sequence when no headers: 13 "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: aload 1
getfield jdk.incubator.http.ResponseHeaders$InputStreamWrapper.lastRead:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
6: ldc "("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 13
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " expected)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: sun.net.www.MessageHeader
StackMap stack:
aload 2
invokevirtual sun.net.www.MessageHeader.getHeaders:()Ljava/util/Map;
astore 3
start local 3 9: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 10: aload 3
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 31
StackMap locals: jdk.incubator.http.ResponseHeaders jdk.incubator.http.ResponseHeaders$InputStreamWrapper sun.net.www.MessageHeader java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
11: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 12: aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 13: aload 7
ifnonnull 15
14: new java.net.ProtocolException
dup
ldc "Bad header-field"
invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: jdk.incubator.http.ResponseHeaders jdk.incubator.http.ResponseHeaders$InputStreamWrapper sun.net.www.MessageHeader java.util.Map java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String
StackMap stack:
aload 7
invokestatic jdk.incubator.http.internal.common.Utils.isValidName:(Ljava/lang/String;)Z
ifne 19
16: new java.net.ProtocolException
dup
17: ldc "Bad header-name: '%s'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
aastore
18: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
astore 8
start local 8 20: aload 8
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 26
StackMap locals: jdk.incubator.http.ResponseHeaders jdk.incubator.http.ResponseHeaders$InputStreamWrapper sun.net.www.MessageHeader java.util.Map java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.util.List top java.util.Iterator
StackMap stack:
21: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 22: aload 9
invokestatic jdk.incubator.http.internal.common.Utils.isValidValue:(Ljava/lang/String;)Z
ifne 26
23: new java.net.ProtocolException
dup
24: ldc "Bad header-value for header-name: '%s'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
aastore
25: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
end local 9 26: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 21
27: aload 7
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 9
start local 9 28: aload 4
aload 9
aload 8
29: invokedynamic apply()Ljava/util/function/BiFunction;
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;)Ljava/lang/Object;
jdk/incubator/http/ResponseHeaders.lambda$1(Ljava/util/List;Ljava/util/List;)Ljava/util/List; (6)
(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
30: invokeinterface java.util.Map.merge:(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;
pop
end local 9 end local 8 end local 7 end local 5 31: StackMap locals: jdk.incubator.http.ResponseHeaders jdk.incubator.http.ResponseHeaders$InputStreamWrapper sun.net.www.MessageHeader java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
32: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljdk/incubator/http/ResponseHeaders;
0 33 1 input Ljdk/incubator/http/ResponseHeaders$InputStreamWrapper;
1 33 2 h Lsun/net/www/MessageHeader;
9 33 3 rawHeaders Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
10 33 4 cookedHeaders Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
12 31 5 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
13 31 7 key Ljava/lang/String;
20 31 8 newValues Ljava/util/List<Ljava/lang/String;>;
22 26 9 v Ljava/lang/String;
28 31 9 k Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljdk/incubator/http/ResponseHeaders$InputStreamWrapper;)Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
MethodParameters:
Name Flags
input
int ();
descriptor: ()I
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "Content-Length"
invokevirtual jdk.incubator.http.ResponseHeaders.firstValueAsLong:(Ljava/lang/String;)Ljava/util/OptionalLong;
ldc -1
invokevirtual java.util.OptionalLong.orElse:(J)J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseHeaders;
Exceptions:
throws java.io.IOException
public java.util.Optional<java.lang.String> firstValue(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseHeaders.delegate:Ljdk/incubator/http/ImmutableHeaders;
aload 1
invokevirtual jdk.incubator.http.ImmutableHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseHeaders;
0 1 1 name Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/lang/String;>;
MethodParameters:
Name Flags
name
public java.util.OptionalLong (java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/OptionalLong;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseHeaders.delegate:Ljdk/incubator/http/ImmutableHeaders;
aload 1
invokevirtual jdk.incubator.http.ImmutableHeaders.firstValueAsLong:(Ljava/lang/String;)Ljava/util/OptionalLong;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseHeaders;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.util.List<java.lang.String> allValues(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseHeaders.delegate:Ljdk/incubator/http/ImmutableHeaders;
aload 1
invokevirtual jdk.incubator.http.ImmutableHeaders.allValues:(Ljava/lang/String;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseHeaders;
0 1 1 name Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
name
public java.util.Map<java.lang.String, java.util.List<java.lang.String>> map();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ResponseHeaders.delegate:Ljdk/incubator/http/ImmutableHeaders;
invokevirtual jdk.incubator.http.ImmutableHeaders.map:()Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseHeaders;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
private static void (java.lang.String, java.util.List);
descriptor: (Ljava/lang/String;Ljava/util/List;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.lang.String java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 k Ljava/lang/String;
0 7 1 v Ljava/util/List<Ljava/lang/String;>;
3 4 2 val Ljava/lang/String;
private static java.util.List (java.util.List, java.util.List);
descriptor: (Ljava/util/List;Ljava/util/List;)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 4
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 2
aload 1
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
5: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 v1 Ljava/util/List<Ljava/lang/String;>;
0 6 1 v2 Ljava/util/List<Ljava/lang/String;>;
2 4 2 newV Ljava/util/ArrayList<Ljava/lang/String;>;
}
SourceFile: "ResponseHeaders.java"
NestMembers:
jdk.incubator.http.ResponseHeaders$InputStreamWrapper
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
final InputStreamWrapper = jdk.incubator.http.ResponseHeaders$InputStreamWrapper of jdk.incubator.http.ResponseHeaders