class jdk.internal.net.http.CookieFilter implements jdk.internal.net.http.HeaderFilter
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.CookieFilter
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // jdk.internal.net.http.CookieFilter this
0: .line 40
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 41
return
end local 0 // jdk.internal.net.http.CookieFilter this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/CookieFilter;
public void request(jdk.internal.net.http.HttpRequestImpl, jdk.internal.net.http.MultiExchange<?>);
descriptor: (Ljdk/internal/net/http/HttpRequestImpl;Ljdk/internal/net/http/MultiExchange;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=15, args_size=3
start local 0 // jdk.internal.net.http.CookieFilter this
start local 1 // jdk.internal.net.http.HttpRequestImpl r
start local 2 // jdk.internal.net.http.MultiExchange e
0: .line 45
aload 2 /* e */
invokevirtual jdk.internal.net.http.MultiExchange.client:()Ljdk/internal/net/http/HttpClientImpl;
astore 3 /* client */
start local 3 // jdk.internal.net.http.HttpClientImpl client
1: .line 46
aload 3 /* client */
invokevirtual jdk.internal.net.http.HttpClientImpl.cookieHandler:()Ljava/util/Optional;
astore 4 /* cookieHandlerOpt */
start local 4 // java.util.Optional cookieHandlerOpt
2: .line 47
aload 4 /* cookieHandlerOpt */
invokevirtual java.util.Optional.isPresent:()Z
ifeq 26
3: .line 48
aload 4 /* cookieHandlerOpt */
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast java.net.CookieHandler
astore 5 /* cookieHandler */
start local 5 // java.net.CookieHandler cookieHandler
4: .line 49
aload 1 /* r */
invokevirtual jdk.internal.net.http.HttpRequestImpl.getUserHeaders:()Ljava/net/http/HttpHeaders;
invokevirtual java.net.http.HttpHeaders.map:()Ljava/util/Map;
astore 6 /* userheaders */
start local 6 // java.util.Map userheaders
5: .line 50
aload 5 /* cookieHandler */
aload 1 /* r */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aload 6 /* userheaders */
invokevirtual java.net.CookieHandler.get:(Ljava/net/URI;Ljava/util/Map;)Ljava/util/Map;
astore 7 /* cookies */
start local 7 // java.util.Map cookies
6: .line 53
aload 1 /* r */
invokevirtual jdk.internal.net.http.HttpRequestImpl.getSystemHeadersBuilder:()Ljdk/internal/net/http/common/HttpHeadersBuilder;
astore 8 /* systemHeadersBuilder */
start local 8 // jdk.internal.net.http.common.HttpHeadersBuilder systemHeadersBuilder
7: .line 54
aload 7 /* cookies */
invokeinterface java.util.Map.isEmpty:()Z
ifeq 10
8: .line 55
ldc "Request: no cookie to add for {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1 /* r */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aastore
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
9: .line 56
goto 11
10: .line 57
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.MultiExchange jdk.internal.net.http.HttpClientImpl java.util.Optional java.net.CookieHandler java.util.Map java.util.Map jdk.internal.net.http.common.HttpHeadersBuilder
StackMap stack:
ldc "Request: adding cookies for {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1 /* r */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aastore
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
11: .line 59
StackMap locals:
StackMap stack:
aload 7 /* cookies */
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 10
goto 24
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.MultiExchange jdk.internal.net.http.HttpClientImpl java.util.Optional java.net.CookieHandler java.util.Map java.util.Map jdk.internal.net.http.common.HttpHeadersBuilder top java.util.Iterator
StackMap stack:
12: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 9 /* entry */
start local 9 // java.util.Map$Entry entry
13: .line 60
aload 9 /* entry */
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 11 /* hdrname */
start local 11 // java.lang.String hdrname
14: .line 61
aload 11 /* hdrname */
ldc "Cookie"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 17
15: .line 62
aload 11 /* hdrname */
ldc "Cookie2"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 17
16: .line 63
goto 24
17: .line 64
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.MultiExchange jdk.internal.net.http.HttpClientImpl java.util.Optional java.net.CookieHandler java.util.Map java.util.Map jdk.internal.net.http.common.HttpHeadersBuilder java.util.Map$Entry java.util.Iterator java.lang.String
StackMap stack:
aload 9 /* entry */
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
astore 12 /* values */
start local 12 // java.util.List values
18: .line 65
aload 12 /* values */
ifnull 24
aload 12 /* values */
invokeinterface java.util.List.isEmpty:()Z
ifeq 19
goto 24
19: .line 66
StackMap locals: java.util.List
StackMap stack:
aload 12 /* values */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 14
goto 23
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.MultiExchange jdk.internal.net.http.HttpClientImpl java.util.Optional java.net.CookieHandler java.util.Map java.util.Map jdk.internal.net.http.common.HttpHeadersBuilder java.util.Map$Entry java.util.Iterator java.lang.String java.util.List top java.util.Iterator
StackMap stack:
20: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 13 /* val */
start local 13 // java.lang.String val
21: .line 67
aload 13 /* val */
invokestatic jdk.internal.net.http.common.Utils.isValidValue:(Ljava/lang/String;)Z
ifeq 23
22: .line 68
aload 8 /* systemHeadersBuilder */
aload 11 /* hdrname */
aload 13 /* val */
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
end local 13 // java.lang.String val
23: .line 66
StackMap locals:
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
end local 12 // java.util.List values
end local 11 // java.lang.String hdrname
end local 9 // java.util.Map$Entry entry
24: .line 59
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.MultiExchange jdk.internal.net.http.HttpClientImpl java.util.Optional java.net.CookieHandler java.util.Map java.util.Map jdk.internal.net.http.common.HttpHeadersBuilder top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
end local 8 // jdk.internal.net.http.common.HttpHeadersBuilder systemHeadersBuilder
end local 7 // java.util.Map cookies
end local 6 // java.util.Map userheaders
end local 5 // java.net.CookieHandler cookieHandler
25: .line 72
goto 27
26: .line 73
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.MultiExchange jdk.internal.net.http.HttpClientImpl java.util.Optional
StackMap stack:
ldc "Request: No cookie manager found for {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1 /* r */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aastore
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
27: .line 75
StackMap locals:
StackMap stack:
return
end local 4 // java.util.Optional cookieHandlerOpt
end local 3 // jdk.internal.net.http.HttpClientImpl client
end local 2 // jdk.internal.net.http.MultiExchange e
end local 1 // jdk.internal.net.http.HttpRequestImpl r
end local 0 // jdk.internal.net.http.CookieFilter this
LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljdk/internal/net/http/CookieFilter;
0 28 1 r Ljdk/internal/net/http/HttpRequestImpl;
0 28 2 e Ljdk/internal/net/http/MultiExchange<*>;
1 28 3 client Ljdk/internal/net/http/HttpClientImpl;
2 28 4 cookieHandlerOpt Ljava/util/Optional<Ljava/net/CookieHandler;>;
4 25 5 cookieHandler Ljava/net/CookieHandler;
5 25 6 userheaders Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
6 25 7 cookies Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
7 25 8 systemHeadersBuilder Ljdk/internal/net/http/common/HttpHeadersBuilder;
13 24 9 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
14 24 11 hdrname Ljava/lang/String;
18 24 12 values Ljava/util/List<Ljava/lang/String;>;
21 23 13 val Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljdk/internal/net/http/HttpRequestImpl;Ljdk/internal/net/http/MultiExchange<*>;)V
MethodParameters:
Name Flags
r
e
public jdk.internal.net.http.HttpRequestImpl response(jdk.internal.net.http.Response);
descriptor: (Ljdk/internal/net/http/Response;)Ljdk/internal/net/http/HttpRequestImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 // jdk.internal.net.http.CookieFilter this
start local 1 // jdk.internal.net.http.Response r
0: .line 79
aload 1 /* r */
invokevirtual jdk.internal.net.http.Response.headers:()Ljava/net/http/HttpHeaders;
astore 2 /* hdrs */
start local 2 // java.net.http.HttpHeaders hdrs
1: .line 80
aload 1 /* r */
invokevirtual jdk.internal.net.http.Response.request:()Ljdk/internal/net/http/HttpRequestImpl;
astore 3 /* request */
start local 3 // jdk.internal.net.http.HttpRequestImpl request
2: .line 81
aload 1 /* r */
getfield jdk.internal.net.http.Response.exchange:Ljdk/internal/net/http/Exchange;
astore 4 /* e */
start local 4 // jdk.internal.net.http.Exchange e
3: .line 82
ldc "Response: processing cookies for {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3 /* request */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aastore
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
4: .line 83
aload 4 /* e */
invokevirtual jdk.internal.net.http.Exchange.client:()Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.cookieHandler:()Ljava/util/Optional;
astore 5 /* cookieHandlerOpt */
start local 5 // java.util.Optional cookieHandlerOpt
5: .line 84
aload 5 /* cookieHandlerOpt */
invokevirtual java.util.Optional.isPresent:()Z
ifeq 10
6: .line 85
aload 5 /* cookieHandlerOpt */
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast java.net.CookieHandler
astore 6 /* cookieHandler */
start local 6 // java.net.CookieHandler cookieHandler
7: .line 86
ldc "Response: parsing cookies from {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2 /* hdrs */
invokevirtual java.net.http.HttpHeaders.map:()Ljava/util/Map;
aastore
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
8: .line 87
aload 6 /* cookieHandler */
aload 3 /* request */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aload 2 /* hdrs */
invokevirtual java.net.http.HttpHeaders.map:()Ljava/util/Map;
invokevirtual java.net.CookieHandler.put:(Ljava/net/URI;Ljava/util/Map;)V
end local 6 // java.net.CookieHandler cookieHandler
9: .line 88
goto 13
10: .line 89
StackMap locals: jdk.internal.net.http.CookieFilter jdk.internal.net.http.Response java.net.http.HttpHeaders jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.Exchange java.util.Optional
StackMap stack:
ldc "Response: No cookie manager found for {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
11: .line 90
aload 3 /* request */
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aastore
12: .line 89
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
13: .line 92
StackMap locals:
StackMap stack:
aconst_null
areturn
end local 5 // java.util.Optional cookieHandlerOpt
end local 4 // jdk.internal.net.http.Exchange e
end local 3 // jdk.internal.net.http.HttpRequestImpl request
end local 2 // java.net.http.HttpHeaders hdrs
end local 1 // jdk.internal.net.http.Response r
end local 0 // jdk.internal.net.http.CookieFilter this
LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/net/http/CookieFilter;
0 14 1 r Ljdk/internal/net/http/Response;
1 14 2 hdrs Ljava/net/http/HttpHeaders;
2 14 3 request Ljdk/internal/net/http/HttpRequestImpl;
3 14 4 e Ljdk/internal/net/http/Exchange<*>;
5 14 5 cookieHandlerOpt Ljava/util/Optional<Ljava/net/CookieHandler;>;
7 9 6 cookieHandler Ljava/net/CookieHandler;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
r
}
SourceFile: "CookieFilter.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map