public final class jdk.incubator.http.internal.websocket.BuilderImpl implements jdk.incubator.http.WebSocket$Builder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.internal.websocket.BuilderImpl
super_class: java.lang.Object
{
private final jdk.incubator.http.HttpClient client;
descriptor: Ljdk/incubator/http/HttpClient;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.WebSocket$Listener listener;
descriptor: Ljdk/incubator/http/WebSocket$Listener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Collection<jdk.incubator.http.internal.common.Pair<java.lang.String, java.lang.String>> ;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljdk/incubator/http/internal/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
public void <init>(jdk.incubator.http.HttpClient, java.net.URI, jdk.incubator.http.WebSocket$Listener);
descriptor: (Ljdk/incubator/http/HttpClient;Ljava/net/URI;Ljdk/incubator/http/WebSocket$Listener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield jdk.incubator.http.internal.websocket.BuilderImpl.headers:Ljava/util/Collection;
2: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield jdk.incubator.http.internal.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
3: aload 0
aload 1
ldc "client"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.incubator.http.HttpClient
putfield jdk.incubator.http.internal.websocket.BuilderImpl.client:Ljdk/incubator/http/HttpClient;
4: aload 0
aload 2
ldc "uri"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.net.URI
putfield jdk.incubator.http.internal.websocket.BuilderImpl.uri:Ljava/net/URI;
5: aload 0
aload 3
ldc "listener"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast jdk.incubator.http.WebSocket$Listener
putfield jdk.incubator.http.internal.websocket.BuilderImpl.listener:Ljdk/incubator/http/WebSocket$Listener;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/internal/websocket/BuilderImpl;
0 7 1 client Ljdk/incubator/http/HttpClient;
0 7 2 uri Ljava/net/URI;
0 7 3 listener Ljdk/incubator/http/WebSocket$Listener;
MethodParameters:
Name Flags
client
uri
listener
public jdk.incubator.http.WebSocket$Builder (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/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.incubator.http.internal.websocket.BuilderImpl.headers:Ljava/util/Collection;
aload 1
aload 2
invokestatic jdk.incubator.http.internal.common.Pair.pair:(Ljava/lang/Object;Ljava/lang/Object;)Ljdk/incubator/http/internal/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/incubator/http/internal/websocket/BuilderImpl;
0 4 1 name Ljava/lang/String;
0 4 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.incubator.http.WebSocket$Builder subprotocols(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljdk/incubator/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.incubator.http.internal.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
invokeinterface java.util.Collection.clear:()V
12: aload 0
getfield jdk.incubator.http.internal.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/incubator/http/internal/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 jdk.incubator.http.WebSocket$Builder connectTimeout(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljdk/incubator/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.incubator.http.internal.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/incubator/http/internal/websocket/BuilderImpl;
0 2 1 timeout Ljava/time/Duration;
MethodParameters:
Name Flags
timeout
public java.util.concurrent.CompletableFuture<jdk.incubator.http.WebSocket> buildAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.incubator.http.internal.websocket.WebSocketImpl.newInstanceAsync:(Ljdk/incubator/http/internal/websocket/BuilderImpl;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/BuilderImpl;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/WebSocket;>;
jdk.incubator.http.HttpClient getClient();
descriptor: ()Ljdk/incubator/http/HttpClient;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.websocket.BuilderImpl.client:Ljdk/incubator/http/HttpClient;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/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.incubator.http.internal.websocket.BuilderImpl.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/BuilderImpl;
jdk.incubator.http.WebSocket$Listener getListener();
descriptor: ()Ljdk/incubator/http/WebSocket$Listener;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.internal.websocket.BuilderImpl.listener:Ljdk/incubator/http/WebSocket$Listener;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/BuilderImpl;
java.util.Collection<jdk.incubator.http.internal.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.incubator.http.internal.websocket.BuilderImpl.headers:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/BuilderImpl;
Signature: ()Ljava/util/Collection<Ljdk/incubator/http/internal/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.incubator.http.internal.websocket.BuilderImpl.subprotocols:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/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.incubator.http.internal.websocket.BuilderImpl.timeout:Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/websocket/BuilderImpl;
}
SourceFile: "BuilderImpl.java"
InnerClasses:
public abstract Builder = jdk.incubator.http.WebSocket$Builder of jdk.incubator.http.WebSocket
public abstract Listener = jdk.incubator.http.WebSocket$Listener of jdk.incubator.http.WebSocket