class org.springframework.http.server.reactive.ReactorServerHttpResponse extends org.springframework.http.server.reactive.AbstractServerHttpResponse implements org.springframework.http.ZeroCopyHttpOutputMessage
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.http.server.reactive.ReactorServerHttpResponse
super_class: org.springframework.http.server.reactive.AbstractServerHttpResponse
{
private final reactor.netty.http.server.HttpServerResponse response;
descriptor: Lreactor/netty/http/server/HttpServerResponse;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(reactor.netty.http.server.HttpServerResponse, org.springframework.core.io.buffer.DataBufferFactory);
descriptor: (Lreactor/netty/http/server/HttpServerResponse;Lorg/springframework/core/io/buffer/DataBufferFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
new org.springframework.http.HttpHeaders
dup
new org.springframework.http.server.reactive.NettyHeadersAdapter
dup
aload 1
invokeinterface reactor.netty.http.server.HttpServerResponse.responseHeaders:()Lio/netty/handler/codec/http/HttpHeaders;
invokespecial org.springframework.http.server.reactive.NettyHeadersAdapter.<init>:(Lio/netty/handler/codec/http/HttpHeaders;)V
invokespecial org.springframework.http.HttpHeaders.<init>:(Lorg/springframework/util/MultiValueMap;)V
invokespecial org.springframework.http.server.reactive.AbstractServerHttpResponse.<init>:(Lorg/springframework/core/io/buffer/DataBufferFactory;Lorg/springframework/http/HttpHeaders;)V
1: aload 1
ldc "HttpServerResponse must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
0 4 1 response Lreactor/netty/http/server/HttpServerResponse;
0 4 2 bufferFactory Lorg/springframework/core/io/buffer/DataBufferFactory;
MethodParameters:
Name Flags
response
bufferFactory
public <T> T getNativeResponse();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
Signature: <T:Ljava/lang/Object;>()TT;
public org.springframework.http.HttpStatus getStatusCode();
descriptor: ()Lorg/springframework/http/HttpStatus;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.http.server.reactive.AbstractServerHttpResponse.getStatusCode:()Lorg/springframework/http/HttpStatus;
astore 1
start local 1 1: aload 1
ifnonnull 6
2: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
invokeinterface reactor.netty.http.server.HttpServerResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
astore 2
start local 2 3: aload 2
ifnull 4
aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
invokestatic org.springframework.http.HttpStatus.resolve:(I)Lorg/springframework/http/HttpStatus;
goto 5
StackMap locals: org.springframework.http.HttpStatus io.netty.handler.codec.http.HttpResponseStatus
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: org.springframework.http.HttpStatus
5: astore 1
end local 2 6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
1 7 1 httpStatus Lorg/springframework/http/HttpStatus;
3 6 2 status Lio/netty/handler/codec/http/HttpResponseStatus;
protected void applyStatusCode();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.http.server.reactive.ReactorServerHttpResponse.getStatusCodeValue:()Ljava/lang/Integer;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
aload 1
invokevirtual java.lang.Integer.intValue:()I
invokeinterface reactor.netty.http.server.HttpServerResponse.status:(I)Lreactor/netty/http/server/HttpServerResponse;
pop
3: StackMap locals: java.lang.Integer
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
1 4 1 statusCode Ljava/lang/Integer;
protected reactor.core.publisher.Mono<java.lang.Void> writeWithInternal(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>);
descriptor: (Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Mono;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
aload 0
aload 1
invokevirtual org.springframework.http.server.reactive.ReactorServerHttpResponse.toByteBufs:(Lorg/reactivestreams/Publisher;)Lorg/reactivestreams/Publisher;
invokeinterface reactor.netty.http.server.HttpServerResponse.send:(Lorg/reactivestreams/Publisher;)Lreactor/netty/NettyOutbound;
invokeinterface reactor.netty.NettyOutbound.then:()Lreactor/core/publisher/Mono;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
0 1 1 publisher Lorg/reactivestreams/Publisher<+Lorg/springframework/core/io/buffer/DataBuffer;>;
Signature: (Lorg/reactivestreams/Publisher<+Lorg/springframework/core/io/buffer/DataBuffer;>;)Lreactor/core/publisher/Mono<Ljava/lang/Void;>;
MethodParameters:
Name Flags
publisher
protected reactor.core.publisher.Mono<java.lang.Void> writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>>);
descriptor: (Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Mono;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
aload 1
invokestatic reactor.core.publisher.Flux.from:(Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Flux;
aload 0
invokedynamic apply(Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/http/server/reactive/ReactorServerHttpResponse.toByteBufs(Lorg/reactivestreams/Publisher;)Lorg/reactivestreams/Publisher; (7)
(Lorg/reactivestreams/Publisher;)Lorg/reactivestreams/Publisher;
invokevirtual reactor.core.publisher.Flux.map:(Ljava/util/function/Function;)Lreactor/core/publisher/Flux;
invokeinterface reactor.netty.http.server.HttpServerResponse.sendGroups:(Lorg/reactivestreams/Publisher;)Lreactor/netty/NettyOutbound;
invokeinterface reactor.netty.NettyOutbound.then:()Lreactor/core/publisher/Mono;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
0 1 1 publisher Lorg/reactivestreams/Publisher<+Lorg/reactivestreams/Publisher<+Lorg/springframework/core/io/buffer/DataBuffer;>;>;
Signature: (Lorg/reactivestreams/Publisher<+Lorg/reactivestreams/Publisher<+Lorg/springframework/core/io/buffer/DataBuffer;>;>;)Lreactor/core/publisher/Mono<Ljava/lang/Void;>;
MethodParameters:
Name Flags
publisher
protected void ();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
protected void applyCookies();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.http.server.reactive.ReactorServerHttpResponse.getCookies:()Lorg/springframework/util/MultiValueMap;
invokeinterface org.springframework.util.MultiValueMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 15
StackMap locals: org.springframework.http.server.reactive.ReactorServerHttpResponse top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 2: aload 0
invokevirtual org.springframework.http.server.reactive.ReactorServerHttpResponse.getCookies:()Lorg/springframework/util/MultiValueMap;
aload 1
invokeinterface org.springframework.util.MultiValueMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 14
StackMap locals: org.springframework.http.server.reactive.ReactorServerHttpResponse java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.http.ResponseCookie
astore 3
start local 3 4: new io.netty.handler.codec.http.cookie.DefaultCookie
dup
aload 1
aload 3
invokevirtual org.springframework.http.ResponseCookie.getValue:()Ljava/lang/String;
invokespecial io.netty.handler.codec.http.cookie.DefaultCookie.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 5
start local 5 5: aload 3
invokevirtual org.springframework.http.ResponseCookie.getMaxAge:()Ljava/time/Duration;
invokevirtual java.time.Duration.isNegative:()Z
ifne 7
6: aload 5
aload 3
invokevirtual org.springframework.http.ResponseCookie.getMaxAge:()Ljava/time/Duration;
invokevirtual java.time.Duration.getSeconds:()J
invokeinterface io.netty.handler.codec.http.cookie.Cookie.setMaxAge:(J)V
7: StackMap locals: org.springframework.http.server.reactive.ReactorServerHttpResponse java.lang.String java.util.Iterator org.springframework.http.ResponseCookie java.util.Iterator io.netty.handler.codec.http.cookie.Cookie
StackMap stack:
aload 3
invokevirtual org.springframework.http.ResponseCookie.getDomain:()Ljava/lang/String;
ifnull 9
8: aload 5
aload 3
invokevirtual org.springframework.http.ResponseCookie.getDomain:()Ljava/lang/String;
invokeinterface io.netty.handler.codec.http.cookie.Cookie.setDomain:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.springframework.http.ResponseCookie.getPath:()Ljava/lang/String;
ifnull 11
10: aload 5
aload 3
invokevirtual org.springframework.http.ResponseCookie.getPath:()Ljava/lang/String;
invokeinterface io.netty.handler.codec.http.cookie.Cookie.setPath:(Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
aload 5
aload 3
invokevirtual org.springframework.http.ResponseCookie.isSecure:()Z
invokeinterface io.netty.handler.codec.http.cookie.Cookie.setSecure:(Z)V
12: aload 5
aload 3
invokevirtual org.springframework.http.ResponseCookie.isHttpOnly:()Z
invokeinterface io.netty.handler.codec.http.cookie.Cookie.setHttpOnly:(Z)V
13: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
aload 5
invokeinterface reactor.netty.http.server.HttpServerResponse.addCookie:(Lio/netty/handler/codec/http/cookie/Cookie;)Lreactor/netty/http/server/HttpServerResponse;
pop
end local 5 end local 3 14: StackMap locals: org.springframework.http.server.reactive.ReactorServerHttpResponse java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 1 15: StackMap locals: org.springframework.http.server.reactive.ReactorServerHttpResponse top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
16: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
2 15 1 name Ljava/lang/String;
4 14 3 httpCookie Lorg/springframework/http/ResponseCookie;
5 14 5 cookie Lio/netty/handler/codec/http/cookie/Cookie;
public reactor.core.publisher.Mono<java.lang.Void> writeWith(java.nio.file.Path, long, long);
descriptor: (Ljava/nio/file/Path;JJ)Lreactor/core/publisher/Mono;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
aload 0
aload 1
lload 2
lload 4
invokedynamic get(Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;Ljava/nio/file/Path;JJ)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/http/server/reactive/ReactorServerHttpResponse.lambda$1(Ljava/nio/file/Path;JJ)Lreactor/core/publisher/Mono; (7)
()Lreactor/core/publisher/Mono;
invokevirtual org.springframework.http.server.reactive.ReactorServerHttpResponse.doCommit:(Ljava/util/function/Supplier;)Lreactor/core/publisher/Mono;
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
0 1 1 file Ljava/nio/file/Path;
0 1 2 position J
0 1 4 count J
Signature: (Ljava/nio/file/Path;JJ)Lreactor/core/publisher/Mono<Ljava/lang/Void;>;
MethodParameters:
Name Flags
file
position
count
private org.reactivestreams.Publisher<io.netty.buffer.ByteBuf> toByteBufs(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>);
descriptor: (Lorg/reactivestreams/Publisher;)Lorg/reactivestreams/Publisher;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic reactor.core.publisher.Flux.from:(Lorg/reactivestreams/Publisher;)Lreactor/core/publisher/Flux;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/core/io/buffer/NettyDataBufferFactory.toByteBuf(Lorg/springframework/core/io/buffer/DataBuffer;)Lio/netty/buffer/ByteBuf; (6)
(Lorg/springframework/core/io/buffer/DataBuffer;)Lio/netty/buffer/ByteBuf;
invokevirtual reactor.core.publisher.Flux.map:(Ljava/util/function/Function;)Lreactor/core/publisher/Flux;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
0 1 1 dataBuffers Lorg/reactivestreams/Publisher<+Lorg/springframework/core/io/buffer/DataBuffer;>;
Signature: (Lorg/reactivestreams/Publisher<+Lorg/springframework/core/io/buffer/DataBuffer;>;)Lorg/reactivestreams/Publisher<Lio/netty/buffer/ByteBuf;>;
MethodParameters:
Name Flags
dataBuffers
private reactor.core.publisher.Mono lambda$1(java.nio.file.Path, long, long);
descriptor: (Ljava/nio/file/Path;JJ)Lreactor/core/publisher/Mono;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=4
start local 0 0: aload 0
getfield org.springframework.http.server.reactive.ReactorServerHttpResponse.response:Lreactor/netty/http/server/HttpServerResponse;
aload 1
lload 2
lload 4
invokeinterface reactor.netty.http.server.HttpServerResponse.sendFile:(Ljava/nio/file/Path;JJ)Lreactor/netty/NettyOutbound;
invokeinterface reactor.netty.NettyOutbound.then:()Lreactor/core/publisher/Mono;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/server/reactive/ReactorServerHttpResponse;
}
SourceFile: "ReactorServerHttpResponse.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles