class jdk.incubator.http.Http1Request$FixedContentSubscriber extends jdk.incubator.http.RequestProcessors$ProcessorBase implements java.util.concurrent.Flow$Subscriber<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Http1Request$FixedContentSubscriber
super_class: jdk.incubator.http.RequestProcessors$ProcessorBase
{
volatile java.util.concurrent.Flow$Subscription subscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0040) ACC_VOLATILE
volatile boolean ;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
volatile long contentWritten;
descriptor: J
flags: (0x0040) ACC_VOLATILE
final jdk.incubator.http.Http1Request this$0;
descriptor: Ljdk/incubator/http/Http1Request;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.incubator.http.Http1Request, boolean);
descriptor: (Ljdk/incubator/http/Http1Request;Z)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
aload 0
invokespecial jdk.incubator.http.RequestProcessors$ProcessorBase.<init>:()V
1: aload 0
lconst_0
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
2: aload 0
iload 2
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.includeHeaders:Z
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 4 2 includeHeaders Z
MethodParameters:
Name Flags
this$0 final
includeHeaders
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
ifnull 2
1: new java.lang.IllegalStateException
dup
ldc "already subscribed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
3: aload 1
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 5 1 subscription Ljava/util/concurrent/Flow$Subscription;
MethodParameters:
Name Flags
subscription
public void onNext(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.includeHeaders:Z
ifeq 5
1: iconst_0
istore 2
start local 2 2: iconst_3
istore 3
start local 3 3: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_0
aaload
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_1
aaload
invokevirtual java.nio.ByteBuffer.remaining:()I
iadd
i2l
lstore 4
start local 4 4: goto 8
end local 4 end local 3 end local 2 5: StackMap locals:
StackMap stack:
iconst_2
istore 2
start local 2 6: iconst_1
istore 3
start local 3 7: lconst_0
lstore 4
start local 4 8: StackMap locals: int int long
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_2
aload 1
aastore
9: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_2
aaload
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
lload 4
ladd
lstore 6
start local 6 10: aload 0
dup
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_2
aaload
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
ladd
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
11: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.chan:Ljdk/incubator/http/HttpConnection;
lload 6
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iload 2
iload 3
invokevirtual jdk.incubator.http.HttpConnection.checkWrite:(J[Ljava/nio/ByteBuffer;II)V
12: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
lcmp
ifle 18
13: new java.lang.StringBuilder
dup
ldc "Too many bytes in request body. Expected: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
14: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " Sent: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 17: new java.io.IOException
dup
aload 8
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 8 18: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
end local 6 19: goto 23
StackMap locals: jdk.incubator.http.Http1Request$FixedContentSubscriber java.nio.ByteBuffer int int long
StackMap stack: java.io.IOException
20: astore 6
start local 6 21: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
22: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
aload 6
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 6 23: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 24 1 item Ljava/nio/ByteBuffer;
2 5 2 startbuf I
6 24 2 startbuf I
3 5 3 nbufs I
7 24 3 nbufs I
4 5 4 headersLength J
8 24 4 headersLength J
10 19 6 writing J
17 18 8 msg Ljava/lang/String;
21 23 6 e Ljava/io/IOException;
Exception table:
from to target type
9 19 20 Class java.io.IOException
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
3: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 5 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "subscription already completed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
lcmp
ifle 7
3: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
4: new java.io.IOException
dup
ldc "Too few bytes returned by the processor"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
astore 1
start local 1 5: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 1 6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
5 6 1 e Ljava/lang/Exception;
public void onNext(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual jdk.incubator.http.Http1Request$FixedContentSubscriber.onNext:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljdk/incubator/http/RequestProcessors$ProcessorBase;Ljava/util/concurrent/Flow$Subscriber<Ljava/nio/ByteBuffer;>;
SourceFile: "Http1Request.java"
NestHost: jdk.incubator.http.Http1Request
InnerClasses:
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
FixedContentSubscriber = jdk.incubator.http.Http1Request$FixedContentSubscriber of jdk.incubator.http.Http1Request
abstract ProcessorBase = jdk.incubator.http.RequestProcessors$ProcessorBase of jdk.incubator.http.RequestProcessors