class jdk.incubator.http.ResponseContent
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.ResponseContent
super_class: java.lang.Object
{
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
final jdk.incubator.http.HttpResponse$BodySubscriber<?> pusher;
descriptor: Ljdk/incubator/http/HttpResponse$BodySubscriber;
flags: (0x0010) ACC_FINAL
Signature: Ljdk/incubator/http/HttpResponse$BodySubscriber<*>;
final int contentLength;
descriptor: I
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.HttpHeaders ;
descriptor: Ljdk/incubator/http/HttpHeaders;
flags: (0x0010) ACC_FINAL
private final java.lang.Runnable onFinished;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final int LF;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 10
static final int CR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 13
private boolean chunkedContent;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean chunkedContentInitialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.incubator.http.internal.common.Utils.DEBUG:Z
putstatic jdk.incubator.http.ResponseContent.DEBUG:Z
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.HttpConnection, int, jdk.incubator.http.HttpHeaders, jdk.incubator.http.HttpResponse$BodySubscriber<?>, java.lang.Runnable);
descriptor: (Ljdk/incubator/http/HttpConnection;ILjdk/incubator/http/HttpHeaders;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 4
putfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
2: aload 0
iload 2
putfield jdk.incubator.http.ResponseContent.contentLength:I
3: aload 0
aload 3
putfield jdk.incubator.http.ResponseContent.headers:Ljdk/incubator/http/HttpHeaders;
4: aload 0
aload 5
putfield jdk.incubator.http.ResponseContent.onFinished:Ljava/lang/Runnable;
5: aload 0
new java.lang.StringBuilder
dup
aload 1
invokevirtual jdk.incubator.http.HttpConnection.dbgString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/ResponseContent"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.incubator.http.ResponseContent.dbgTag:Ljava/lang/String;
6: return
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 7 0 this Ljdk/incubator/http/ResponseContent;
0 7 1 connection Ljdk/incubator/http/HttpConnection;
0 7 2 contentLength I
0 7 3 h Ljdk/incubator/http/HttpHeaders;
0 7 4 userSubscriber Ljdk/incubator/http/HttpResponse$BodySubscriber<*>;
0 7 5 onFinished Ljava/lang/Runnable;
Signature: (Ljdk/incubator/http/HttpConnection;ILjdk/incubator/http/HttpHeaders;Ljdk/incubator/http/HttpResponse$BodySubscriber<*>;Ljava/lang/Runnable;)V
MethodParameters:
Name Flags
connection
contentLength
h
userSubscriber
onFinished
boolean contentChunked();
descriptor: ()Z
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ResponseContent.chunkedContentInitialized:Z
ifeq 2
1: aload 0
getfield jdk.incubator.http.ResponseContent.chunkedContent:Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.ResponseContent.contentLength:I
iconst_m1
if_icmpne 12
3: aload 0
getfield jdk.incubator.http.ResponseContent.headers:Ljdk/incubator/http/HttpHeaders;
ldc "Transfer-Encoding"
invokevirtual jdk.incubator.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
4: ldc ""
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
5: astore 1
start local 1 6: aload 1
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
7: aload 1
ldc "chunked"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 10
8: aload 0
iconst_1
putfield jdk.incubator.http.ResponseContent.chunkedContent:Z
9: goto 12
10: StackMap locals: java.lang.String
StackMap stack:
new java.io.IOException
dup
ldc "invalid content"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.incubator.http.ResponseContent.chunkedContent:Z
end local 1 12: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.incubator.http.ResponseContent.chunkedContentInitialized:Z
13: aload 0
getfield jdk.incubator.http.ResponseContent.chunkedContent:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/incubator/http/ResponseContent;
6 12 1 tc Ljava/lang/String;
Exceptions:
throws java.io.IOException
jdk.incubator.http.ResponseContent$BodyParser getBodyParser(java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljava/util/function/Consumer;)Ljdk/incubator/http/ResponseContent$BodyParser;
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.incubator.http.ResponseContent.contentChunked:()Z
ifeq 2
1: new jdk.incubator.http.ResponseContent$ChunkedBodyParser
dup
aload 0
aload 1
invokespecial jdk.incubator.http.ResponseContent$ChunkedBodyParser.<init>:(Ljdk/incubator/http/ResponseContent;Ljava/util/function/Consumer;)V
areturn
2: StackMap locals:
StackMap stack:
new jdk.incubator.http.ResponseContent$FixedLengthBodyParser
dup
aload 0
aload 0
getfield jdk.incubator.http.ResponseContent.contentLength:I
aload 1
invokespecial jdk.incubator.http.ResponseContent$FixedLengthBodyParser.<init>:(Ljdk/incubator/http/ResponseContent;ILjava/util/function/Consumer;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/ResponseContent;
0 3 1 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)Ljdk/incubator/http/ResponseContent$BodyParser;
MethodParameters:
Name Flags
onComplete
}
SourceFile: "ResponseContent.java"
NestMembers:
jdk.incubator.http.ResponseContent$BodyParser jdk.incubator.http.ResponseContent$ChunkState jdk.incubator.http.ResponseContent$ChunkedBodyParser jdk.incubator.http.ResponseContent$FixedLengthBodyParser
InnerClasses:
public abstract BodySubscriber = jdk.incubator.http.HttpResponse$BodySubscriber of jdk.incubator.http.HttpResponse
abstract BodyParser = jdk.incubator.http.ResponseContent$BodyParser of jdk.incubator.http.ResponseContent
final ChunkState = jdk.incubator.http.ResponseContent$ChunkState of jdk.incubator.http.ResponseContent
ChunkedBodyParser = jdk.incubator.http.ResponseContent$ChunkedBodyParser of jdk.incubator.http.ResponseContent
FixedLengthBodyParser = jdk.incubator.http.ResponseContent$FixedLengthBodyParser of jdk.incubator.http.ResponseContent