final class jdk.internal.net.http.Http1Request$FixedContentSubscriber extends jdk.internal.net.http.Http1Exchange$Http1BodySubscriber
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.Http1Request$FixedContentSubscriber
super_class: jdk.internal.net.http.Http1Exchange$Http1BodySubscriber
{
private volatile long contentWritten;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
final jdk.internal.net.http.Http1Request this$0;
descriptor: Ljdk/internal/net/http/Http1Request;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.internal.net.http.Http1Request);
descriptor: (Ljdk/internal/net/http/Http1Request;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
aload 0
aload 1
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
invokespecial jdk.internal.net.http.Http1Exchange$Http1BodySubscriber.<init>:(Ljdk/internal/net/http/common/Logger;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/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
invokevirtual jdk.internal.net.http.Http1Request$FixedContentSubscriber.isSubscribed:()Z
ifeq 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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
aload 2
invokevirtual jdk.internal.net.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 2 3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.internal.net.http.Http1Request$FixedContentSubscriber.setSubscription:(Ljava/util/concurrent/Flow$Subscription;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
ldc "onNext"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield jdk.internal.net.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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
aload 2
invokevirtual jdk.internal.net.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.internal.net.http.Http1Request$FixedContentSubscriber.contentWritten:J
lload 2
ladd
dup2_x1
putfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.contentWritten:J
lstore 4
start local 4 8: lload 4
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.contentLength:J
lcmp
ifle 17
9: aload 0
invokevirtual jdk.internal.net.http.Http1Request$FixedContentSubscriber.cancelSubscription:()V
10: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.connection:Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
new java.io.IOException
dup
aload 6
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual jdk.internal.net.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 6 16: goto 18
17: StackMap locals: long long
StackMap stack:
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
aload 1
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
invokevirtual jdk.internal.net.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/internal/net/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 java.lang.String currentStateMessage();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "fixed content-length: %d, bytes sent: %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.contentLength:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.contentWritten:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
2: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/Http1Request$FixedContentSubscriber;
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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
ldc "onError"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.complete:Z
ifeq 3
2: return
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.Http1Request$FixedContentSubscriber.cancelSubscription:()V
4: aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
aload 1
invokevirtual jdk.internal.net.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/internal/net/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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.debug:Ljdk/internal/net/http/common/Logger;
ldc "onComplete"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
aload 1
invokevirtual jdk.internal.net.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 1 4: goto 18
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.complete:Z
6: aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.contentWritten:J
lstore 1
start local 1 7: aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.contentLength:J
lload 1
lcmp
ifle 17
8: aload 0
invokevirtual jdk.internal.net.http.Http1Request$FixedContentSubscriber.cancelSubscription:()V
9: new java.io.IOException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.connection:Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.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.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
aload 3
invokevirtual jdk.internal.net.http.Http1Exchange.appendToOutgoing:(Ljava/lang/Throwable;)V
end local 3 16: goto 18
17: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.internal.net.http.Http1Request$FixedContentSubscriber.this$0:Ljdk/internal/net/http/Http1Request;
getfield jdk.internal.net.http.Http1Request.http1Exchange:Ljdk/internal/net/http/Http1Exchange;
getstatic jdk.internal.net.http.Http1Request$FixedContentSubscriber.COMPLETED:Ljava/util/List;
invokevirtual jdk.internal.net.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/internal/net/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.internal.net.http.Http1Request$FixedContentSubscriber.onNext:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Http1Request.java"
NestHost: jdk.internal.net.http.Http1Request
InnerClasses:
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
abstract Http1BodySubscriber = jdk.internal.net.http.Http1Exchange$Http1BodySubscriber of jdk.internal.net.http.Http1Exchange
final FixedContentSubscriber = jdk.internal.net.http.Http1Request$FixedContentSubscriber of jdk.internal.net.http.Http1Request