class jdk.incubator.http.Http1Request$FixedContentSubscriber extends jdk.incubator.http.Http1Exchange$Http1BodySubscriber
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Http1Request$FixedContentSubscriber
super_class: jdk.incubator.http.Http1Exchange$Http1BodySubscriber
{
private volatile long contentWritten;
descriptor: J
flags: (0x0042) ACC_PRIVATE, 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);
descriptor: (Ljdk/incubator/http/Http1Request;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
aload 0
invokespecial jdk.incubator.http.Http1Exchange$Http1BodySubscriber.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
MethodParameters:
Name Flags
this$0 final
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, 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 4
1: new java.lang.IllegalStateException
dup
ldc "already subscribed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
astore 2
start local 2 2: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
aload 2
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 2 3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 6 1 subscription Ljava/util/concurrent/Flow$Subscription;
2 3 2 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
subscription
public void onNext(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, 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.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "onNext"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.complete:Z
ifeq 6
3: new java.lang.IllegalStateException
dup
ldc "subscription already completed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
astore 2
start local 2 4: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
aload 2
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 2 5: goto 18
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
lstore 2
start local 2 7: aload 0
dup
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
lload 2
ladd
dup2_x1
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
lstore 4
start local 4 8: lload 4
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
lcmp
ifle 17
9: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
10: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
11: ldc " ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc "Too many bytes in request body. Expected: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ", got: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 4
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
14: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 15: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
new java.io.IOException
dup
aload 6
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 6 16: goto 18
17: StackMap locals: long long
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
aload 1
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/util/List;)V
end local 4 end local 2 18: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 19 1 item Ljava/nio/ByteBuffer;
4 5 2 t Ljava/lang/Throwable;
7 18 2 writing J
8 18 4 written J
15 16 6 msg Ljava/lang/String;
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)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.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "onError"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.complete:Z
ifeq 3
2: return
3: 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
4: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
aload 1
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
0 6 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, 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.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "onComplete"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.complete:Z
ifeq 5
2: new java.lang.IllegalStateException
dup
ldc "subscription already completed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
astore 1
start local 1 3: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
aload 1
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 1 4: goto 18
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.incubator.http.Http1Request$FixedContentSubscriber.complete:Z
6: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.contentWritten:J
lstore 1
start local 1 7: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
lload 1
lcmp
ifle 17
8: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
9: new java.io.IOException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: ldc " ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "Too few bytes returned by the publisher ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.contentLength:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
astore 3
start local 3 15: aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
aload 3
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 3 16: goto 18
17: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/incubator/http/Http1Request;
getfield jdk.incubator.http.Http1Request.http1Exchange:Ljdk/incubator/http/Http1Exchange;
getstatic jdk.incubator.http.Http1Request$FixedContentSubscriber.COMPLETED:Ljava/util/List;
invokevirtual jdk.incubator.http.Http1Exchange.appendToOutgoing:(Ljava/util/List;)V
end local 1 18: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
3 4 1 t Ljava/lang/Throwable;
7 18 1 written J
15 16 3 t Ljava/lang/Throwable;
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
}
SourceFile: "Http1Request.java"
NestHost: jdk.incubator.http.Http1Request
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
abstract Http1BodySubscriber = jdk.incubator.http.Http1Exchange$Http1BodySubscriber of jdk.incubator.http.Http1Exchange
FixedContentSubscriber = jdk.incubator.http.Http1Request$FixedContentSubscriber of jdk.incubator.http.Http1Request