class jdk.incubator.http.HttpRequestBuilderImpl extends jdk.incubator.http.HttpRequest$Builder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.HttpRequestBuilderImpl
super_class: jdk.incubator.http.HttpRequest$Builder
{
private jdk.incubator.http.internal.common.HttpHeadersImpl ;
descriptor: Ljdk/incubator/http/internal/common/HttpHeadersImpl;
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 jdk.incubator.http.HttpRequest$BodyPublisher bodyPublisher;
descriptor: Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0002) ACC_PRIVATE
private volatile java.util.Optional<jdk.incubator.http.HttpClient$Version> version;
descriptor: Ljava/util/Optional;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/Optional<Ljdk/incubator/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/incubator/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.incubator.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 jdk.incubator.http.HttpRequest$Builder.<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.incubator.http.HttpRequestBuilderImpl.checkURI:(Ljava/net/URI;)V
3: aload 0
aload 1
putfield jdk.incubator.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
4: aload 0
new jdk.incubator.http.internal.common.HttpHeadersImpl
dup
invokespecial jdk.incubator.http.internal.common.HttpHeadersImpl.<init>:()V
putfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
5: aload 0
ldc "GET"
putfield jdk.incubator.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
6: aload 0
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
putfield jdk.incubator.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/incubator/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 jdk.incubator.http.HttpRequest$Builder.<init>:()V
1: aload 0
new jdk.incubator.http.internal.common.HttpHeadersImpl
dup
invokespecial jdk.incubator.http.internal.common.HttpHeadersImpl.<init>:()V
putfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
2: aload 0
ldc "GET"
putfield jdk.incubator.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
3: aload 0
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
putfield jdk.incubator.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
public jdk.incubator.http.HttpRequestBuilderImpl uri(java.net.URI);
descriptor: (Ljava/net/URI;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.checkURI:(Ljava/net/URI;)V
2: aload 0
aload 1
putfield jdk.incubator.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/incubator/http/HttpRequestBuilderImpl;
0 4 1 uri Ljava/net/URI;
MethodParameters:
Name Flags
uri
private static java.lang.IllegalArgumentException newIAE(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalArgumentException
dup
aload 0
aload 1
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 message Ljava/lang/String;
0 1 1 args [Ljava/lang/Object;
MethodParameters:
Name Flags
message
args
private static void checkURI(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x000a) ACC_PRIVATE, 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.incubator.http.HttpRequestBuilderImpl.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokevirtual java.lang.String.toLowerCase:()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.incubator.http.HttpRequestBuilderImpl.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.incubator.http.HttpRequestBuilderImpl.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.incubator.http.HttpRequestBuilderImpl copy();
descriptor: ()Ljdk/incubator/http/HttpRequestBuilderImpl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.incubator.http.HttpRequestBuilderImpl
dup
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
invokespecial jdk.incubator.http.HttpRequestBuilderImpl.<init>:(Ljava/net/URI;)V
astore 1
start local 1 1: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.deepCopy:()Ljdk/incubator/http/internal/common/HttpHeadersImpl;
putfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
2: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
putfield jdk.incubator.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
3: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.expectContinue:Z
putfield jdk.incubator.http.HttpRequestBuilderImpl.expectContinue:Z
4: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.bodyPublisher:Ljdk/incubator/http/HttpRequest$BodyPublisher;
putfield jdk.incubator.http.HttpRequestBuilderImpl.bodyPublisher:Ljdk/incubator/http/HttpRequest$BodyPublisher;
5: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
putfield jdk.incubator.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
6: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
putfield jdk.incubator.http.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
7: aload 1
aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
putfield jdk.incubator.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
1 9 1 b Ljdk/incubator/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.incubator.http.internal.common.Utils.isValidName:(Ljava/lang/String;)Z
ifne 4
3: ldc "invalid header name:"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic jdk.incubator.http.HttpRequestBuilderImpl.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokestatic jdk.incubator.http.internal.common.Utils.isValidValue:(Ljava/lang/String;)Z
ifne 6
5: ldc "invalid header value:%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic jdk.incubator.http.HttpRequestBuilderImpl.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
0 7 1 name Ljava/lang/String;
0 7 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.incubator.http.HttpRequestBuilderImpl (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.checkNameAndValue:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
aload 1
aload 2
invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.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/incubator/http/HttpRequestBuilderImpl;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.incubator.http.HttpRequestBuilderImpl (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.checkNameAndValue:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
aload 1
aload 2
invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.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/incubator/http/HttpRequestBuilderImpl;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public jdk.incubator.http.HttpRequestBuilderImpl (java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.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.incubator.http.HttpRequestBuilderImpl.header:(Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/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/incubator/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.incubator.http.HttpRequestBuilderImpl expectContinue(boolean);
descriptor: (Z)Ljdk/incubator/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.incubator.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/incubator/http/HttpRequestBuilderImpl;
0 2 1 enable Z
MethodParameters:
Name Flags
enable
public jdk.incubator.http.HttpRequestBuilderImpl version(jdk.incubator.http.HttpClient$Version);
descriptor: (Ljdk/incubator/http/HttpClient$Version;)Ljdk/incubator/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.incubator.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/incubator/http/HttpRequestBuilderImpl;
0 3 1 version Ljdk/incubator/http/HttpClient$Version;
MethodParameters:
Name Flags
version
jdk.incubator.http.internal.common.HttpHeadersImpl ();
descriptor: ()Ljdk/incubator/http/internal/common/HttpHeadersImpl;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.userHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
boolean expectContinue();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.expectContinue:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
jdk.incubator.http.HttpRequest$BodyPublisher bodyPublisher();
descriptor: ()Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.HttpRequestBuilderImpl.bodyPublisher:Ljdk/incubator/http/HttpRequest$BodyPublisher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
java.util.Optional<jdk.incubator.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.incubator.http.HttpRequestBuilderImpl.version:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
Signature: ()Ljava/util/Optional<Ljdk/incubator/http/HttpClient$Version;>;
public jdk.incubator.http.HttpRequest$Builder GET();
descriptor: ()Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/http/HttpRequest$Builder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
public jdk.incubator.http.HttpRequest$Builder POST(jdk.incubator.http.HttpRequest$BodyPublisher);
descriptor: (Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/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 jdk.incubator.http.HttpRequest$BodyPublisher
invokevirtual jdk.incubator.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/http/HttpRequest$Builder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
0 1 1 body Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
body
public jdk.incubator.http.HttpRequest$Builder DELETE(jdk.incubator.http.HttpRequest$BodyPublisher);
descriptor: (Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/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 "DELETE"
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.incubator.http.HttpRequest$BodyPublisher
invokevirtual jdk.incubator.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/http/HttpRequest$Builder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
0 1 1 body Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
body
public jdk.incubator.http.HttpRequest$Builder PUT(jdk.incubator.http.HttpRequest$BodyPublisher);
descriptor: (Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/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 jdk.incubator.http.HttpRequest$BodyPublisher
invokevirtual jdk.incubator.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/http/HttpRequest$Builder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
0 1 1 body Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
body
public jdk.incubator.http.HttpRequest$Builder method(java.lang.String, jdk.incubator.http.HttpRequest$BodyPublisher);
descriptor: (Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/http/HttpRequest$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
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: ldc "illegal method <empty string>"
iconst_0
anewarray java.lang.Object
invokestatic jdk.incubator.http.HttpRequestBuilderImpl.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.incubator.http.HttpRequestBuilderImpl.newIAE:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.incubator.http.HttpRequest$BodyPublisher
invokevirtual jdk.incubator.http.HttpRequestBuilderImpl.method0:(Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/http/HttpRequest$Builder;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
0 6 1 method Ljava/lang/String;
0 6 2 body Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
method
body
private jdk.incubator.http.HttpRequest$Builder method0(java.lang.String, jdk.incubator.http.HttpRequest$BodyPublisher);
descriptor: (Ljava/lang/String;Ljdk/incubator/http/HttpRequest$BodyPublisher;)Ljdk/incubator/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.incubator.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.incubator.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 2
aload 1
ldc "GET"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 3
aload 1
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.HttpRequestBuilderImpl.method:Ljava/lang/String;
4: aload 0
aload 2
putfield jdk.incubator.http.HttpRequestBuilderImpl.bodyPublisher:Ljdk/incubator/http/HttpRequest$BodyPublisher;
5: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
0 6 1 method Ljava/lang/String;
0 6 2 body Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
method
body
public jdk.incubator.http.HttpRequest build();
descriptor: ()Ljdk/incubator/http/HttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.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.incubator.http.HttpRequestBuilderImpl.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.incubator.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.incubator.http.HttpRequestImpl
dup
aload 0
invokespecial jdk.incubator.http.HttpRequestImpl.<init>:(Ljdk/incubator/http/HttpRequestBuilderImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
public jdk.incubator.http.HttpRequest$Builder timeout(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljdk/incubator/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.incubator.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/incubator/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.incubator.http.HttpRequestBuilderImpl.duration:Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/HttpRequestBuilderImpl;
public jdk.incubator.http.HttpRequest$Builder uri(java.net.URI);
descriptor: (Ljava/net/URI;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.uri:(Ljava/net/URI;)Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.incubator.http.HttpRequest$Builder copy();
descriptor: ()Ljdk/incubator/http/HttpRequest$Builder;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.incubator.http.HttpRequestBuilderImpl.copy:()Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.incubator.http.HttpRequest$Builder expectContinue(boolean);
descriptor: (Z)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.expectContinue:(Z)Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.incubator.http.HttpRequest$Builder (java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.headers:([Ljava/lang/String;)Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.incubator.http.HttpRequest$Builder (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.setHeader:(Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.incubator.http.HttpRequest$Builder version(jdk.incubator.http.HttpClient$Version);
descriptor: (Ljdk/incubator/http/HttpClient$Version;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.version:(Ljdk/incubator/http/HttpClient$Version;)Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.incubator.http.HttpRequest$Builder (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/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.incubator.http.HttpRequestBuilderImpl.header:(Ljava/lang/String;Ljava/lang/String;)Ljdk/incubator/http/HttpRequestBuilderImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HttpRequestBuilderImpl.java"
InnerClasses:
public final Version = jdk.incubator.http.HttpClient$Version of jdk.incubator.http.HttpClient
public abstract BodyPublisher = jdk.incubator.http.HttpRequest$BodyPublisher of jdk.incubator.http.HttpRequest
public abstract Builder = jdk.incubator.http.HttpRequest$Builder of jdk.incubator.http.HttpRequest