final class jdk.internal.net.http.ImmutableHttpRequest extends java.net.http.HttpRequest
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.ImmutableHttpRequest
super_class: java.net.http.HttpRequest
{
private final java.lang.String method;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.http.HttpHeaders ;
descriptor: Ljava/net/http/HttpHeaders;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Optional<java.net.http.HttpRequest$BodyPublisher> requestPublisher;
descriptor: Ljava/util/Optional;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Optional<Ljava/net/http/HttpRequest$BodyPublisher;>;
private final boolean expectContinue;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Optional<java.time.Duration> timeout;
descriptor: Ljava/util/Optional;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Optional<Ljava/time/Duration;>;
private final java.util.Optional<java.net.http.HttpClient$Version> version;
descriptor: Ljava/util/Optional;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Optional<Ljava/net/http/HttpClient$Version;>;
void <init>(jdk.internal.net.http.HttpRequestBuilderImpl);
descriptor: (Ljdk/internal/net/http/HttpRequestBuilderImpl;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.net.http.HttpRequest.<init>:()V
1: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method:()Ljava/lang/String;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield jdk.internal.net.http.ImmutableHttpRequest.method:Ljava/lang/String;
2: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.uri:()Ljava/net/URI;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URI
putfield jdk.internal.net.http.ImmutableHttpRequest.uri:Ljava/net/URI;
3: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:()Ljdk/internal/net/http/common/HttpHeadersBuilder;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.map:()Ljava/util/Map;
getstatic jdk.internal.net.http.common.Utils.ALLOWED_HEADERS:Ljava/util/function/BiPredicate;
invokestatic java.net.http.HttpHeaders.of:(Ljava/util/Map;Ljava/util/function/BiPredicate;)Ljava/net/http/HttpHeaders;
putfield jdk.internal.net.http.ImmutableHttpRequest.headers:Ljava/net/http/HttpHeaders;
4: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.bodyPublisher:()Ljava/net/http/HttpRequest$BodyPublisher;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
putfield jdk.internal.net.http.ImmutableHttpRequest.requestPublisher:Ljava/util/Optional;
5: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:()Z
putfield jdk.internal.net.http.ImmutableHttpRequest.expectContinue:Z
6: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.timeout:()Ljava/time/Duration;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
putfield jdk.internal.net.http.ImmutableHttpRequest.timeout:Ljava/util/Optional;
7: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.version:()Ljava/util/Optional;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Optional
putfield jdk.internal.net.http.ImmutableHttpRequest.version:Ljava/util/Optional;
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
0 9 1 builder Ljdk/internal/net/http/HttpRequestBuilderImpl;
MethodParameters:
Name Flags
builder
public java.lang.String method();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.method:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
public java.net.URI uri();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
public java.net.http.HttpHeaders ();
descriptor: ()Ljava/net/http/HttpHeaders;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.headers:Ljava/net/http/HttpHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
public java.util.Optional<java.net.http.HttpRequest$BodyPublisher> bodyPublisher();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.requestPublisher:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
Signature: ()Ljava/util/Optional<Ljava/net/http/HttpRequest$BodyPublisher;>;
public boolean expectContinue();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.expectContinue:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
public java.util.Optional<java.time.Duration> timeout();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.timeout:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
Signature: ()Ljava/util/Optional<Ljava/time/Duration;>;
public java.util.Optional<java.net.http.HttpClient$Version> version();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.version:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
Signature: ()Ljava/util/Optional<Ljava/net/http/HttpClient$Version;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.uri:Ljava/net/URI;
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.ImmutableHttpRequest.method:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ImmutableHttpRequest;
}
SourceFile: "ImmutableHttpRequest.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