public abstract class io.undertow.protocols.http2.Http2StreamSinkChannel extends io.undertow.protocols.http2.AbstractHttp2StreamSinkChannel
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.undertow.protocols.http2.Http2StreamSinkChannel
super_class: io.undertow.protocols.http2.AbstractHttp2StreamSinkChannel
{
private final int streamId;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean reset;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private int flowControlWindow;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int initialWindowSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private io.undertow.server.protocol.framed.SendFrameHeader ;
descriptor: Lio/undertow/server/protocol/framed/SendFrameHeader;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.Object flowControlLock;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlLock:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.undertow.protocols.http2.Http2Channel, int);
descriptor: (Lio/undertow/protocols/http2/Http2Channel;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial io.undertow.protocols.http2.AbstractHttp2StreamSinkChannel.<init>:(Lio/undertow/protocols/http2/Http2Channel;)V
1: aload 0
iconst_0
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.reset:Z
2: aload 0
iload 2
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.streamId:I
3: aload 0
aload 1
invokevirtual io.undertow.protocols.http2.Http2Channel.getInitialSendWindowSize:()I
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
4: aload 0
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.initialWindowSize:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
0 6 1 channel Lio/undertow/protocols/http2/Http2Channel;
0 6 2 streamId I
MethodParameters:
Name Flags
channel
streamId
public int getStreamId();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.streamId:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
io.undertow.server.protocol.framed.SendFrameHeader ();
descriptor: ()Lio/undertow/server/protocol/framed/SendFrameHeader;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.createFrameHeaderImpl:()Lio/undertow/server/protocol/framed/SendFrameHeader;
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.header:Lio/undertow/server/protocol/framed/SendFrameHeader;
1: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.header:Lio/undertow/server/protocol/framed/SendFrameHeader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
protected abstract io.undertow.server.protocol.framed.SendFrameHeader ();
descriptor: ()Lio/undertow/server/protocol/framed/SendFrameHeader;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
void ();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.header:Lio/undertow/server/protocol/framed/SendFrameHeader;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
protected void channelForciblyClosed();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getStreamId:()I
invokevirtual io.undertow.protocols.http2.Http2Channel.removeStreamSink:(I)V
1: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.reset:Z
ifeq 3
2: return
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.reset:Z
4: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.streamId:I
iconst_2
irem
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.isClient:()Z
ifeq 5
iconst_1
goto 6
StackMap locals:
StackMap stack: int
5: iconst_0
StackMap locals: io.undertow.protocols.http2.Http2StreamSinkChannel
StackMap stack: int int
6: if_icmpne 10
7: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.isFirstDataWritten:()Z
ifeq 12
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.isThisGoneAway:()Z
ifne 12
8: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.streamId:I
bipush 8
invokevirtual io.undertow.protocols.http2.Http2Channel.sendRstStream:(II)V
9: goto 12
StackMap locals:
StackMap stack:
10: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.isThisGoneAway:()Z
ifne 12
11: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.streamId:I
iconst_5
invokevirtual io.undertow.protocols.http2.Http2Channel.sendRstStream:(II)V
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.markBroken:()V
13: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
Exceptions:
throws java.io.IOException
protected final io.undertow.server.protocol.framed.SendFrameHeader ();
descriptor: ()Lio/undertow/server/protocol/framed/SendFrameHeader;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.header:Lio/undertow/server/protocol/framed/SendFrameHeader;
astore 1
start local 1 1: aload 0
aconst_null
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.header:Lio/undertow/server/protocol/framed/SendFrameHeader;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
1 3 1 header Lio/undertow/server/protocol/framed/SendFrameHeader;
protected void handleFlushComplete(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getStreamId:()I
invokevirtual io.undertow.protocols.http2.Http2Channel.removeStreamSink:(I)V
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.reset:Z
ifeq 4
3: aload 0
invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
0 5 1 channelClosed Z
MethodParameters:
Name Flags
channelClosed
protected int grabFlowControlBytes(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: getstatic io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlLock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: iload 1
ifne 4
2: aload 2
monitorexit
3: iconst_0
ireturn
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getInitialSendWindowSize:()I
istore 3
start local 3 5: iload 3
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.initialWindowSize:I
isub
istore 4
start local 4 6: aload 0
iload 3
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.initialWindowSize:I
7: aload 0
dup
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
iload 4
iadd
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
8: iload 1
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 9: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
iload 5
invokevirtual io.undertow.protocols.http2.Http2Channel.grabFlowControlBytes:(I)I
istore 6
start local 6 10: aload 0
dup
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
iload 6
isub
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
11: iload 6
aload 2
monitorexit
12: ireturn
end local 6 end local 5 end local 4 end local 3 13: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
14: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
0 15 1 toSend I
5 13 3 newWindowSize I
6 13 4 settingsDelta I
9 13 5 min I
10 13 6 actualBytes I
Exception table:
from to target type
1 3 13 any
4 12 13 any
13 14 13 any
MethodParameters:
Name Flags
toSend
void updateFlowControlWindow(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: getstatic io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlLock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
ifgt 2
iconst_1
goto 3
StackMap locals: io.undertow.protocols.http2.Http2StreamSinkChannel int top java.lang.Object
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 2
start local 2 4: iload 1
i2l
lstore 4
start local 4 5: lload 4
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
i2l
ladd
lstore 4
6: lload 4
ldc 2147483647
lcmp
ifle 11
7: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.streamId:I
iconst_3
invokevirtual io.undertow.protocols.http2.Http2Channel.sendRstStream:(II)V
8: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.markBroken:()V
9: aload 3
monitorexit
10: return
11: StackMap locals: io.undertow.protocols.http2.Http2StreamSinkChannel int int java.lang.Object long
StackMap stack:
aload 0
dup
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
iload 1
iadd
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.flowControlWindow:I
end local 4 12: aload 3
monitorexit
13: goto 16
end local 2 StackMap locals: io.undertow.protocols.http2.Http2StreamSinkChannel int top java.lang.Object
StackMap stack: java.lang.Throwable
14: aload 3
monitorexit
15: athrow
start local 2 16: StackMap locals: io.undertow.protocols.http2.Http2StreamSinkChannel int int
StackMap stack:
iload 2
ifeq 20
17: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.notifyFlowControlAllowed:()V
18: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.isWriteResumed:()Z
ifeq 20
19: aload 0
iconst_1
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.resumeWritesInternal:(Z)V
20: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
0 21 1 delta I
4 14 2 exhausted Z
16 21 2 exhausted Z
5 12 4 ld J
Exception table:
from to target type
1 10 14 any
11 13 14 any
14 15 14 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
delta final
protected io.undertow.connector.PooledByteBuffer[] allocateAll(io.undertow.connector.PooledByteBuffer[], io.undertow.connector.PooledByteBuffer);
descriptor: ([Lio/undertow/connector/PooledByteBuffer;Lio/undertow/connector/PooledByteBuffer;)[Lio/undertow/connector/PooledByteBuffer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 8
1: iconst_2
anewarray io.undertow.connector.PooledByteBuffer
astore 3
start local 3 2: aload 3
iconst_0
aload 2
aastore
3: aload 3
iconst_1
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getBufferPool:()Lio/undertow/connector/ByteBufferPool;
invokeinterface io.undertow.connector.ByteBufferPool.allocate:()Lio/undertow/connector/PooledByteBuffer;
aastore
4: aload 3
iconst_1
aaload
invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
astore 4
start local 4 5: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getSendMaxFrameSize:()I
if_icmple 14
6: aload 4
aload 4
invokevirtual java.nio.ByteBuffer.position:()I
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getSendMaxFrameSize:()I
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
end local 4 7: goto 14
end local 3 8: StackMap locals:
StackMap stack:
aload 1
arraylength
iconst_1
iadd
anewarray io.undertow.connector.PooledByteBuffer
astore 3
start local 3 9: aload 1
iconst_0
aload 3
iconst_0
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 3
aload 3
arraylength
iconst_1
isub
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getBufferPool:()Lio/undertow/connector/ByteBufferPool;
invokeinterface io.undertow.connector.ByteBufferPool.allocate:()Lio/undertow/connector/PooledByteBuffer;
aastore
11: aload 3
aload 3
arraylength
iconst_1
isub
aaload
invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
astore 4
start local 4 12: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getSendMaxFrameSize:()I
if_icmple 14
13: aload 4
aload 4
invokevirtual java.nio.ByteBuffer.position:()I
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
invokevirtual io.undertow.protocols.http2.Http2Channel.getSendMaxFrameSize:()I
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
end local 4 14: StackMap locals: io.undertow.connector.PooledByteBuffer[]
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
0 15 1 allHeaderBuffers [Lio/undertow/connector/PooledByteBuffer;
0 15 2 currentBuffer Lio/undertow/connector/PooledByteBuffer;
2 8 3 ret [Lio/undertow/connector/PooledByteBuffer;
9 15 3 ret [Lio/undertow/connector/PooledByteBuffer;
5 7 4 newBuffer Ljava/nio/ByteBuffer;
12 14 4 newBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
allHeaderBuffers
currentBuffer
void rstStream();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.protocols.http2.Http2StreamSinkChannel.reset:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.undertow.protocols.http2.Http2StreamSinkChannel.reset:Z
3: aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.isReadyForFlush:()Z
ifne 5
4: aload 0
invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getChannel:()Lio/undertow/server/protocol/framed/AbstractFramedChannel;
checkcast io.undertow.protocols.http2.Http2Channel
aload 0
invokevirtual io.undertow.protocols.http2.Http2StreamSinkChannel.getStreamId:()I
invokevirtual io.undertow.protocols.http2.Http2Channel.removeStreamSink:(I)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/undertow/protocols/http2/Http2StreamSinkChannel;
}
SourceFile: "Http2StreamSinkChannel.java"