public final class jdk.internal.net.http.websocket.BuilderImpl implements java.net.http.WebSocket$Builder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.websocket.BuilderImpl
super_class: java.lang.Object
{
private final java.net.http.HttpClient client;
descriptor: Ljava/net/http/HttpClient;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0002) ACC_PRIVATE
private java.net.http.WebSocket$Listener listener;
descriptor: Ljava/net/http/WebSocket$Listener;
flags: (0x0002) ACC_PRIVATE
private final java.util.Optional<java.net.ProxySelector> proxySelector;
descriptor: Ljava/util/Optional;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Optional<Ljava/net/ProxySelector;>;
private final java.util.Collection<jdk.internal.net.http.common.Pair<java.lang.String, java.lang.String>> ;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljdk/internal/net/http/common/Pair<Ljava/lang/String;Ljava/lang/String;>;>;
private final java.util.Collection<java.lang.String> subprotocols;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljava/lang/String;>;
private java.time.Duration timeout;
descriptor: Ljava/time/Duration;
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/websocket/BuilderImpl;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.net.http.websocket.BuilderImpl.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.http.HttpClient, java.net.ProxySelector);
descriptor: (Ljava/net/http/HttpClient;Ljava/net/ProxySelector;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aconst_null
aload 2
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
1: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
aconst_null
invokespecial jdk.internal.net.http.websocket.BuilderImpl.<init>:(Ljava/net/http/HttpClient;Ljava/net/URI;Ljava/net/http/WebSocket$Listener;Ljava/util/Optional;Ljava/util/Collection;Ljava/util/Collection;Ljava/time/Duration;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
0 3 1 client Ljava/net/http/HttpClient;
0 3 2 proxySelector Ljava/net/ProxySelector;
MethodParameters:
Name Flags
client
proxySelector
private void <init>(java.net.http.HttpClient, java.net.URI, java.net.http.WebSocket$Listener, java.util.Optional<java.net.ProxySelector>, java.util.Collection<jdk.internal.net.http.common.Pair<java.lang.String, java.lang.String>>, java.util.Collection<java.lang.String>, java.time.Duration);
descriptor: (Ljava/net/http/HttpClient;Ljava/net/URI;Ljava/net/http/WebSocket$Listener;Ljava/util/Optional;Ljava/util/Collection;Ljava/util/Collection;Ljava/time/Duration;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.net.http.websocket.BuilderImpl.client:Ljava/net/http/HttpClient;
2: aload 0
aload 2
putfield jdk.internal.net.http.websocket.BuilderImpl.uri:Ljava/net/URI;
3: aload 0
aload 3
putfield jdk.internal.net.http.websocket.BuilderImpl.listener:Ljava/net/http/WebSocket$Listener;
4: aload 0
aload 4
putfield jdk.internal.net.http.websocket.BuilderImpl.proxySelector:Ljava/util/Optional;
5: getstatic jdk.internal.net.http.websocket.BuilderImpl.$assertionsDisabled:Z
ifne 7
aload 1
invokevirtual java.net.http.HttpClient.proxy:()Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifeq 7
6: aload 1
invokevirtual java.net.http.HttpClient.proxy:()Ljava/util/Optional;
aload 4
invokevirtual java.util.Optional.equals:(Ljava/lang/Object;)Z
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: jdk.internal.net.http.websocket.BuilderImpl java.net.http.HttpClient java.net.URI java.net.http.WebSocket$Listener java.util.Optional java.util.Collection java.util.Collection java.time.Duration
StackMap stack:
aload 0
aload 5
putfield jdk.internal.net.http.websocket.BuilderImpl.headers:Ljava/util/Collection;
8: aload 0
aload 6
putfield jdk.internal.net.http.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
9: aload 0
aload 7
putfield jdk.internal.net.http.websocket.BuilderImpl.timeout:Ljava/time/Duration;
10: return
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 11 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
0 11 1 client Ljava/net/http/HttpClient;
0 11 2 uri Ljava/net/URI;
0 11 3 listener Ljava/net/http/WebSocket$Listener;
0 11 4 proxySelector Ljava/util/Optional<Ljava/net/ProxySelector;>;
0 11 5 headers Ljava/util/Collection<Ljdk/internal/net/http/common/Pair<Ljava/lang/String;Ljava/lang/String;>;>;
0 11 6 subprotocols Ljava/util/Collection<Ljava/lang/String;>;
0 11 7 timeout Ljava/time/Duration;
Signature: (Ljava/net/http/HttpClient;Ljava/net/URI;Ljava/net/http/WebSocket$Listener;Ljava/util/Optional<Ljava/net/ProxySelector;>;Ljava/util/Collection<Ljdk/internal/net/http/common/Pair<Ljava/lang/String;Ljava/lang/String;>;>;Ljava/util/Collection<Ljava/lang/String;>;Ljava/time/Duration;)V
MethodParameters:
Name Flags
client
uri
listener
proxySelector
headers
subprotocols
timeout
public java.net.http.WebSocket$Builder (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/net/http/WebSocket$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "name"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 2
ldc "value"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.headers:Ljava/util/Collection;
aload 1
aload 2
invokestatic jdk.internal.net.http.common.Pair.pair:(Ljava/lang/Object;Ljava/lang/Object;)Ljdk/internal/net/http/common/Pair;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
3: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
0 4 1 name Ljava/lang/String;
0 4 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public java.net.http.WebSocket$Builder subprotocols(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/net/http/WebSocket$Builder;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "mostPreferred"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 2
ldc "lesserPreferred"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 3
start local 3 3: aload 3
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: iconst_0
istore 4
start local 4 5: goto 10
6: StackMap locals: java.util.List int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 7: aload 5
new java.lang.StringBuilder
dup
ldc "lesserPreferred["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
8: aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
aload 2
arraylength
if_icmplt 6
end local 4 11: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
invokeinterface java.util.Collection.clear:()V
12: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
aload 3
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
13: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
0 14 1 mostPreferred Ljava/lang/String;
0 14 2 lesserPreferred [Ljava/lang/String;
3 14 3 subprotocols Ljava/util/List<Ljava/lang/String;>;
5 11 4 i I
7 9 5 p Ljava/lang/String;
MethodParameters:
Name Flags
mostPreferred
lesserPreferred
public java.net.http.WebSocket$Builder connectTimeout(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljava/net/http/WebSocket$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "timeout"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.time.Duration
putfield jdk.internal.net.http.websocket.BuilderImpl.timeout:Ljava/time/Duration;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
0 2 1 timeout Ljava/time/Duration;
MethodParameters:
Name Flags
timeout
public java.util.concurrent.CompletableFuture<java.net.http.WebSocket> buildAsync(java.net.URI, java.net.http.WebSocket$Listener);
descriptor: (Ljava/net/URI;Ljava/net/http/WebSocket$Listener;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ldc "uri"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.net.URI
putfield jdk.internal.net.http.websocket.BuilderImpl.uri:Ljava/net/URI;
1: aload 0
aload 2
ldc "listener"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.net.http.WebSocket$Listener
putfield jdk.internal.net.http.websocket.BuilderImpl.listener:Ljava/net/http/WebSocket$Listener;
2: aload 0
invokevirtual jdk.internal.net.http.websocket.BuilderImpl.immutableCopy:()Ljdk/internal/net/http/websocket/BuilderImpl;
astore 3
start local 3 3: aload 3
invokestatic jdk.internal.net.http.websocket.WebSocketImpl.newInstanceAsync:(Ljdk/internal/net/http/websocket/BuilderImpl;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
0 4 1 uri Ljava/net/URI;
0 4 2 listener Ljava/net/http/WebSocket$Listener;
3 4 3 copy Ljdk/internal/net/http/websocket/BuilderImpl;
Signature: (Ljava/net/URI;Ljava/net/http/WebSocket$Listener;)Ljava/util/concurrent/CompletableFuture<Ljava/net/http/WebSocket;>;
MethodParameters:
Name Flags
uri
listener
java.net.http.HttpClient getClient();
descriptor: ()Ljava/net/http/HttpClient;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.client:Ljava/net/http/HttpClient;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
java.net.URI getUri();
descriptor: ()Ljava/net/URI;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
java.net.http.WebSocket$Listener getListener();
descriptor: ()Ljava/net/http/WebSocket$Listener;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.listener:Ljava/net/http/WebSocket$Listener;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
java.util.Collection<jdk.internal.net.http.common.Pair<java.lang.String, java.lang.String>> getHeaders();
descriptor: ()Ljava/util/Collection;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.headers:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
Signature: ()Ljava/util/Collection<Ljdk/internal/net/http/common/Pair<Ljava/lang/String;Ljava/lang/String;>;>;
java.util.Collection<java.lang.String> getSubprotocols();
descriptor: ()Ljava/util/Collection;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
java.time.Duration getConnectTimeout();
descriptor: ()Ljava/time/Duration;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.timeout:Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
java.util.Optional<java.net.ProxySelector> getProxySelector();
descriptor: ()Ljava/util/Optional;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.proxySelector:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
Signature: ()Ljava/util/Optional<Ljava/net/ProxySelector;>;
private jdk.internal.net.http.websocket.BuilderImpl immutableCopy();
descriptor: ()Ljdk/internal/net/http/websocket/BuilderImpl;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=2, args_size=1
start local 0 0: new jdk.internal.net.http.websocket.BuilderImpl
dup
1: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.client:Ljava/net/http/HttpClient;
2: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.uri:Ljava/net/URI;
3: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.listener:Ljava/net/http/WebSocket$Listener;
4: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.proxySelector:Ljava/util/Optional;
5: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.headers:Ljava/util/Collection;
iconst_0
anewarray jdk.internal.net.http.common.Pair
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast jdk.internal.net.http.common.Pair[]
invokestatic java.util.List.of:([Ljava/lang/Object;)Ljava/util/List;
6: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
iconst_0
anewarray java.lang.String
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
invokestatic java.util.List.of:([Ljava/lang/Object;)Ljava/util/List;
7: aload 0
getfield jdk.internal.net.http.websocket.BuilderImpl.timeout:Ljava/time/Duration;
8: invokespecial jdk.internal.net.http.websocket.BuilderImpl.<init>:(Ljava/net/http/HttpClient;Ljava/net/URI;Ljava/net/http/WebSocket$Listener;Ljava/util/Optional;Ljava/util/Collection;Ljava/util/Collection;Ljava/time/Duration;)V
astore 1
start local 1 9: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/net/http/websocket/BuilderImpl;
9 10 1 copy Ljdk/internal/net/http/websocket/BuilderImpl;
}
SourceFile: "BuilderImpl.java"
InnerClasses:
public abstract Builder = java.net.http.WebSocket$Builder of java.net.http.WebSocket
public abstract Listener = java.net.http.WebSocket$Listener of java.net.http.WebSocket