public class org.springframework.web.server.session.DefaultWebSessionManager implements org.springframework.web.server.session.WebSessionManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.server.session.DefaultWebSessionManager
super_class: java.lang.Object
{
private org.springframework.web.server.session.WebSessionIdResolver sessionIdResolver;
descriptor: Lorg/springframework/web/server/session/WebSessionIdResolver;
flags: (0x0002) ACC_PRIVATE
private org.springframework.web.server.session.WebSessionStore sessionStore;
descriptor: Lorg/springframework/web/server/session/WebSessionStore;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.springframework.web.server.session.CookieWebSessionIdResolver
dup
invokespecial org.springframework.web.server.session.CookieWebSessionIdResolver.<init>:()V
putfield org.springframework.web.server.session.DefaultWebSessionManager.sessionIdResolver:Lorg/springframework/web/server/session/WebSessionIdResolver;
2: aload 0
new org.springframework.web.server.session.InMemoryWebSessionStore
dup
invokespecial org.springframework.web.server.session.InMemoryWebSessionStore.<init>:()V
putfield org.springframework.web.server.session.DefaultWebSessionManager.sessionStore:Lorg/springframework/web/server/session/WebSessionStore;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
public void setSessionIdResolver(org.springframework.web.server.session.WebSessionIdResolver);
descriptor: (Lorg/springframework/web/server/session/WebSessionIdResolver;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "WebSessionIdResolver is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.web.server.session.DefaultWebSessionManager.sessionIdResolver:Lorg/springframework/web/server/session/WebSessionIdResolver;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
0 3 1 sessionIdResolver Lorg/springframework/web/server/session/WebSessionIdResolver;
MethodParameters:
Name Flags
sessionIdResolver
public org.springframework.web.server.session.WebSessionIdResolver getSessionIdResolver();
descriptor: ()Lorg/springframework/web/server/session/WebSessionIdResolver;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.server.session.DefaultWebSessionManager.sessionIdResolver:Lorg/springframework/web/server/session/WebSessionIdResolver;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
public void setSessionStore(org.springframework.web.server.session.WebSessionStore);
descriptor: (Lorg/springframework/web/server/session/WebSessionStore;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "WebSessionStore is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.web.server.session.DefaultWebSessionManager.sessionStore:Lorg/springframework/web/server/session/WebSessionStore;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
0 3 1 sessionStore Lorg/springframework/web/server/session/WebSessionStore;
MethodParameters:
Name Flags
sessionStore
public org.springframework.web.server.session.WebSessionStore getSessionStore();
descriptor: ()Lorg/springframework/web/server/session/WebSessionStore;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.server.session.DefaultWebSessionManager.sessionStore:Lorg/springframework/web/server/session/WebSessionStore;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
public reactor.core.publisher.Mono<org.springframework.web.server.WebSession> getSession(org.springframework.web.server.ServerWebExchange);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic get(Lorg/springframework/web/server/session/DefaultWebSessionManager;Lorg/springframework/web/server/ServerWebExchange;)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/web/server/session/DefaultWebSessionManager.lambda$0(Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono; (7)
()Lreactor/core/publisher/Mono;
invokestatic reactor.core.publisher.Mono.defer:(Ljava/util/function/Supplier;)Lreactor/core/publisher/Mono;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
0 1 1 exchange Lorg/springframework/web/server/ServerWebExchange;
Signature: (Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono<Lorg/springframework/web/server/WebSession;>;
MethodParameters:
Name Flags
exchange
private reactor.core.publisher.Mono<org.springframework.web.server.WebSession> retrieveSession(org.springframework.web.server.ServerWebExchange);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.server.session.DefaultWebSessionManager.getSessionIdResolver:()Lorg/springframework/web/server/session/WebSessionIdResolver;
aload 1
invokeinterface org.springframework.web.server.session.WebSessionIdResolver.resolveSessionIds:(Lorg/springframework/web/server/ServerWebExchange;)Ljava/util/List;
invokestatic reactor.core.publisher.Flux.fromIterable:(Ljava/lang/Iterable;)Lreactor/core/publisher/Flux;
1: aload 0
getfield org.springframework.web.server.session.DefaultWebSessionManager.sessionStore:Lorg/springframework/web/server/session/WebSessionStore;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic apply(Lorg/springframework/web/server/session/WebSessionStore;)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/web/server/session/WebSessionStore.retrieveSession(Ljava/lang/String;)Lreactor/core/publisher/Mono; (9 itf)
(Ljava/lang/String;)Lorg/reactivestreams/Publisher;
invokevirtual reactor.core.publisher.Flux.concatMap:(Ljava/util/function/Function;)Lreactor/core/publisher/Flux;
2: invokevirtual reactor.core.publisher.Flux.next:()Lreactor/core/publisher/Mono;
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
0 4 1 exchange Lorg/springframework/web/server/ServerWebExchange;
Signature: (Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono<Lorg/springframework/web/server/WebSession;>;
MethodParameters:
Name Flags
exchange
private reactor.core.publisher.Mono<java.lang.Void> save(org.springframework.web.server.ServerWebExchange, org.springframework.web.server.WebSession);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)Lreactor/core/publisher/Mono;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.springframework.web.server.session.DefaultWebSessionManager.getSessionIdResolver:()Lorg/springframework/web/server/session/WebSessionIdResolver;
aload 1
invokeinterface org.springframework.web.server.session.WebSessionIdResolver.resolveSessionIds:(Lorg/springframework/web/server/ServerWebExchange;)Ljava/util/List;
astore 3
start local 3 1: aload 2
invokeinterface org.springframework.web.server.WebSession.isStarted:()Z
ifeq 2
aload 2
invokeinterface org.springframework.web.server.WebSession.isExpired:()Z
ifeq 5
2: StackMap locals: java.util.List
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifne 4
3: aload 0
getfield org.springframework.web.server.session.DefaultWebSessionManager.sessionIdResolver:Lorg/springframework/web/server/session/WebSessionIdResolver;
aload 1
invokeinterface org.springframework.web.server.session.WebSessionIdResolver.expireSession:(Lorg/springframework/web/server/ServerWebExchange;)V
4: StackMap locals:
StackMap stack:
invokestatic reactor.core.publisher.Mono.empty:()Lreactor/core/publisher/Mono;
areturn
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifne 6
aload 2
invokeinterface org.springframework.web.server.WebSession.getId:()Ljava/lang/String;
aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.server.session.DefaultWebSessionManager.sessionIdResolver:Lorg/springframework/web/server/session/WebSessionIdResolver;
aload 1
aload 2
invokeinterface org.springframework.web.server.WebSession.getId:()Ljava/lang/String;
invokeinterface org.springframework.web.server.session.WebSessionIdResolver.setSessionId:(Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.springframework.web.server.WebSession.save:()Lreactor/core/publisher/Mono;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
0 8 1 exchange Lorg/springframework/web/server/ServerWebExchange;
0 8 2 session Lorg/springframework/web/server/WebSession;
1 8 3 ids Ljava/util/List<Ljava/lang/String;>;
Signature: (Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)Lreactor/core/publisher/Mono<Ljava/lang/Void;>;
MethodParameters:
Name Flags
exchange
session
private reactor.core.publisher.Mono lambda$0(org.springframework.web.server.ServerWebExchange);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 0: aload 0
aload 1
invokevirtual org.springframework.web.server.session.DefaultWebSessionManager.retrieveSession:(Lorg/springframework/web/server/ServerWebExchange;)Lreactor/core/publisher/Mono;
1: aload 0
getfield org.springframework.web.server.session.DefaultWebSessionManager.sessionStore:Lorg/springframework/web/server/session/WebSessionStore;
invokeinterface org.springframework.web.server.session.WebSessionStore.createWebSession:()Lreactor/core/publisher/Mono;
invokevirtual reactor.core.publisher.Mono.switchIfEmpty:(Lreactor/core/publisher/Mono;)Lreactor/core/publisher/Mono;
2: aload 0
aload 1
invokedynamic accept(Lorg/springframework/web/server/session/DefaultWebSessionManager;Lorg/springframework/web/server/ServerWebExchange;)Ljava/util/function/Consumer;
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;)V
org/springframework/web/server/session/DefaultWebSessionManager.lambda$1(Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)V (7)
(Lorg/springframework/web/server/WebSession;)V
invokevirtual reactor.core.publisher.Mono.doOnNext:(Ljava/util/function/Consumer;)Lreactor/core/publisher/Mono;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
private void lambda$1(org.springframework.web.server.ServerWebExchange, org.springframework.web.server.WebSession);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getResponse:()Lorg/springframework/http/server/reactive/ServerHttpResponse;
aload 0
aload 1
aload 2
invokedynamic get(Lorg/springframework/web/server/session/DefaultWebSessionManager;Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)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/web/server/session/DefaultWebSessionManager.lambda$2(Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)Lreactor/core/publisher/Mono; (7)
()Lreactor/core/publisher/Mono;
invokeinterface org.springframework.http.server.reactive.ServerHttpResponse.beforeCommit:(Ljava/util/function/Supplier;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
0 1 2 session Lorg/springframework/web/server/WebSession;
private reactor.core.publisher.Mono lambda$2(org.springframework.web.server.ServerWebExchange, org.springframework.web.server.WebSession);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)Lreactor/core/publisher/Mono;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.web.server.session.DefaultWebSessionManager.save:(Lorg/springframework/web/server/ServerWebExchange;Lorg/springframework/web/server/WebSession;)Lreactor/core/publisher/Mono;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/DefaultWebSessionManager;
}
SourceFile: "DefaultWebSessionManager.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles