public class jdk.internal.net.http.HttpRequestBuilderImpl implements java.net.http.HttpRequest$Builder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.HttpRequestBuilderImpl
super_class: java.lang.Object
{
private jdk.internal.net.http.common.HttpHeadersBuilder ;
descriptor: Ljdk/internal/net/http/common/HttpHeadersBuilder;
flags: (0x0002) ACC_PRIVATE
private java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0002) ACC_PRIVATE
private java.lang.String method;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean expectContinue;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.net.http.HttpRequest$BodyPublisher bodyPublisher;
descriptor: Ljava/net/http/HttpRequest$BodyPublisher;
flags: (0x0002) ACC_PRIVATE
private volatile java.util.Optional<java.net.http.HttpClient$Version> version;
descriptor: Ljava/util/Optional;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/Optional<Ljava/net/http/HttpClient$Version;>;
private java.time.Duration duration;
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/HttpRequestBuilderImpl;
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.HttpRequestBuilderImpl.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "uri must be non-null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 1
invokestatic jdk.internal.net.http.HttpRequestBuilderImpl.checkURI:(Ljava/net/URI;)V
3: aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
4: aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
5: aload 0
ldc "GET"
putfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
6: aload 0
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 8 1 uri Ljava/net/URI;
MethodParameters:
Name Flags
uri
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
2: aload 0
ldc "GET"
putfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
3: aload 0
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
public jdk.internal.net.http.HttpRequestBuilderImpl uri(java.net.URI);
descriptor: (Ljava/net/URI;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "uri must be non-null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 1
invokestatic jdk.internal.net.http.HttpRequestBuilderImpl.checkURI:(Ljava/net/URI;)V
2: aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 4 1 uri Ljava/net/URI;
MethodParameters:
Name Flags
uri
static void checkURI(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: ldc "URI with undefined scheme"
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
4: aload 1
ldc "https"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
aload 1
ldc "http"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
5: ldc "invalid URI scheme %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
ifnonnull 8
7: ldc "unsupported URI %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 uri Ljava/net/URI;
1 9 1 scheme Ljava/lang/String;
MethodParameters:
Name Flags
uri
public jdk.internal.net.http.HttpRequestBuilderImpl copy();
descriptor: ()Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new jdk.internal.net.http.HttpRequestBuilderImpl
dup
invokespecial jdk.internal.net.http.HttpRequestBuilderImpl.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
2: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.structuralCopy:()Ljdk/internal/net/http/common/HttpHeadersBuilder;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
3: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
4: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:Z
putfield jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:Z
5: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.bodyPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.bodyPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
6: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
7: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
8: aload 1
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
9: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
1 10 1 b Ljdk/internal/net/http/HttpRequestBuilderImpl;
private void checkNameAndValue(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, 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 1
invokestatic jdk.internal.net.http.common.Utils.isValidName:(Ljava/lang/String;)Z
ifne 4
3: ldc "invalid header name: \"%s\""
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
4: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.common.Utils.ALLOWED_HEADERS:Ljava/util/function/BiPredicate;
aload 1
aconst_null
invokeinterface java.util.function.BiPredicate.test:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 6
5: ldc "restricted header name: \"%s\""
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
6: StackMap locals:
StackMap stack:
aload 2
invokestatic jdk.internal.net.http.common.Utils.isValidValue:(Ljava/lang/String;)Z
ifne 8
7: ldc "invalid header value: \"%s\""
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 9 1 name Ljava/lang/String;
0 9 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.internal.net.http.HttpRequestBuilderImpl (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.checkNameAndValue:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
aload 1
aload 2
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.internal.net.http.HttpRequestBuilderImpl (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.checkNameAndValue:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
aload 1
aload 2
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.internal.net.http.HttpRequestBuilderImpl (java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
arraylength
ifeq 2
aload 1
arraylength
iconst_2
irem
ifeq 3
2: StackMap locals:
StackMap stack:
ldc "wrong number, %d, of parameters"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
arraylength
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
3: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 4: goto 9
5: StackMap locals: int
StackMap stack:
aload 1
iload 2
aaload
astore 3
start local 3 6: aload 1
iload 2
iconst_1
iadd
aaload
astore 4
start local 4 7: aload 0
aload 3
aload 4
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.header:(Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
pop
end local 4 end local 3 8: iinc 2 2
StackMap locals:
StackMap stack:
9: iload 2
aload 1
arraylength
if_icmplt 5
end local 2 10: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 11 1 params [Ljava/lang/String;
4 10 2 i I
6 8 3 name Ljava/lang/String;
7 8 4 value Ljava/lang/String;
MethodParameters:
Name Flags
params
public jdk.internal.net.http.HttpRequestBuilderImpl expectContinue(boolean);
descriptor: (Z)Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 2 1 enable Z
MethodParameters:
Name Flags
enable
public jdk.internal.net.http.HttpRequestBuilderImpl version(java.net.http.HttpClient$Version);
descriptor: (Ljava/net/http/HttpClient$Version;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 3 1 version Ljava/net/http/HttpClient$Version;
MethodParameters:
Name Flags
version
jdk.internal.net.http.common.HttpHeadersBuilder ();
descriptor: ()Ljdk/internal/net/http/common/HttpHeadersBuilder;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
java.net.URI uri();
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.HttpRequestBuilderImpl.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
java.lang.String method();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
boolean expectContinue();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
java.net.http.HttpRequest$BodyPublisher bodyPublisher();
descriptor: ()Ljava/net/http/HttpRequest$BodyPublisher;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.bodyPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
java.util.Optional<java.net.http.HttpClient$Version> version();
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.HttpRequestBuilderImpl.version:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
Signature: ()Ljava/util/Optional<Ljava/net/http/HttpClient$Version;>;
public java.net.http.HttpRequest$Builder GET();
descriptor: ()Ljava/net/http/HttpRequest$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "GET"
aconst_null
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
public java.net.http.HttpRequest$Builder POST(java.net.http.HttpRequest$BodyPublisher);
descriptor: (Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "POST"
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.http.HttpRequest$BodyPublisher
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 1 1 body Ljava/net/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
body
public java.net.http.HttpRequest$Builder DELETE();
descriptor: ()Ljava/net/http/HttpRequest$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "DELETE"
aconst_null
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
public java.net.http.HttpRequest$Builder PUT(java.net.http.HttpRequest$BodyPublisher);
descriptor: (Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "PUT"
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.http.HttpRequest$BodyPublisher
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 1 1 body Ljava/net/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
body
public java.net.http.HttpRequest$Builder method(java.lang.String, java.net.http.HttpRequest$BodyPublisher);
descriptor: (Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: ldc "illegal method <empty string>"
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
ldc "CONNECT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: ldc "method CONNECT is not supported"
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.internal.net.http.common.Utils.isValidName:(Ljava/lang/String;)Z
ifne 13
6: new java.lang.StringBuilder
dup
ldc "illegal method \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: aload 1
ldc "\n"
ldc "\\n"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
8: ldc "\r"
ldc "\\r"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
9: ldc "\t"
ldc "\\t"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
10: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Utils.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
13: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.http.HttpRequest$BodyPublisher
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 14 1 method Ljava/lang/String;
0 14 2 body Ljava/net/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
method
body
private java.net.http.HttpRequest$Builder method0(java.lang.String, java.net.http.HttpRequest$BodyPublisher);
descriptor: (Ljava/lang/String;Ljava/net/http/HttpRequest$BodyPublisher;)Ljava/net/http/HttpRequest$Builder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.internal.net.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
3: aload 0
aload 2
putfield jdk.internal.net.http.HttpRequestBuilderImpl.bodyPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
4: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 5 1 method Ljava/lang/String;
0 5 2 body Ljava/net/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
method
body
public java.net.http.HttpRequest build();
descriptor: ()Ljava/net/http/HttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "uri is null"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
new jdk.internal.net.http.ImmutableHttpRequest
dup
aload 0
invokespecial jdk.internal.net.http.ImmutableHttpRequest.<init>:(Ljdk/internal/net/http/HttpRequestBuilderImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
public jdk.internal.net.http.HttpRequestImpl buildForWebSocket();
descriptor: ()Ljdk/internal/net/http/HttpRequestImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "uri is null"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.internal.net.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
new jdk.internal.net.http.HttpRequestImpl
dup
aload 0
invokespecial jdk.internal.net.http.HttpRequestImpl.<init>:(Ljdk/internal/net/http/HttpRequestBuilderImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
public java.net.http.HttpRequest$Builder timeout(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljava/net/http/HttpRequest$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokevirtual java.time.Duration.isNegative:()Z
ifne 2
getstatic java.time.Duration.ZERO:Ljava/time/Duration;
aload 1
invokevirtual java.time.Duration.equals:(Ljava/lang/Object;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid duration: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
0 5 1 duration Ljava/time/Duration;
MethodParameters:
Name Flags
duration
java.time.Duration timeout();
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.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestBuilderImpl;
public java.net.http.HttpRequest$Builder uri(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/net/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.uri:(Ljava/net/URI;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.http.HttpRequest$Builder copy();
descriptor: ()Ljava/net/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.copy:()Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.http.HttpRequest$Builder expectContinue(boolean);
descriptor: (Z)Ljava/net/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:(Z)Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.http.HttpRequest$Builder (java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/net/http/HttpRequest$Builder;
flags: (0x10c1) ACC_PUBLIC, ACC_BRIDGE, ACC_VARARGS, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.headers:([Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.http.HttpRequest$Builder (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/net/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.setHeader:(Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.http.HttpRequest$Builder version(java.net.http.HttpClient$Version);
descriptor: (Ljava/net/http/HttpClient$Version;)Ljava/net/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.version:(Ljava/net/http/HttpClient$Version;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.http.HttpRequest$Builder (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/net/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.header:(Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/net/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HttpRequestBuilderImpl.java"
InnerClasses:
public final Version = java.net.http.HttpClient$Version of java.net.http.HttpClient
public abstract BodyPublisher = java.net.http.HttpRequest$BodyPublisher of java.net.http.HttpRequest
public abstract Builder = java.net.http.HttpRequest$Builder of java.net.http.HttpRequest