public class org.springframework.web.server.session.CookieWebSessionIdResolver implements org.springframework.web.server.session.WebSessionIdResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.server.session.CookieWebSessionIdResolver
super_class: java.lang.Object
{
private java.lang.String cookieName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.time.Duration cookieMaxAge;
descriptor: Ljava/time/Duration;
flags: (0x0002) ACC_PRIVATE
private java.util.function.Consumer<org.springframework.http.ResponseCookie$ResponseCookieBuilder> cookieInitializer;
descriptor: Ljava/util/function/Consumer;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/function/Consumer<Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
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
ldc "SESSION"
putfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieName:Ljava/lang/String;
2: aload 0
ldc -1
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
putfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieMaxAge:Ljava/time/Duration;
3: aload 0
aconst_null
putfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieInitializer:Ljava/util/function/Consumer;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
public void setCookieName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "'cookieName' must not be empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieName:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 3 1 cookieName Ljava/lang/String;
MethodParameters:
Name Flags
cookieName
public java.lang.String getCookieName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
public void setCookieMaxAge(java.time.Duration);
descriptor: (Ljava/time/Duration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieMaxAge:Ljava/time/Duration;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 2 1 maxAge Ljava/time/Duration;
MethodParameters:
Name Flags
maxAge
public java.time.Duration getCookieMaxAge();
descriptor: ()Ljava/time/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieMaxAge:Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
public void addCookieInitializer(java.util.function.Consumer<org.springframework.http.ResponseCookie$ResponseCookieBuilder>);
descriptor: (Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieInitializer:Ljava/util/function/Consumer;
ifnull 2
1: aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieInitializer:Ljava/util/function/Consumer;
aload 1
invokeinterface java.util.function.Consumer.andThen:(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
goto 3
StackMap locals:
StackMap stack: org.springframework.web.server.session.CookieWebSessionIdResolver
2: aload 1
3: StackMap locals: org.springframework.web.server.session.CookieWebSessionIdResolver java.util.function.Consumer
StackMap stack: org.springframework.web.server.session.CookieWebSessionIdResolver java.util.function.Consumer
putfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieInitializer:Ljava/util/function/Consumer;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 5 1 initializer Ljava/util/function/Consumer<Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;>;
Signature: (Ljava/util/function/Consumer<Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;>;)V
MethodParameters:
Name Flags
initializer
public java.util.List<java.lang.String> resolveSessionIds(org.springframework.web.server.ServerWebExchange);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getRequest:()Lorg/springframework/http/server/reactive/ServerHttpRequest;
invokeinterface org.springframework.http.server.reactive.ServerHttpRequest.getCookies:()Lorg/springframework/util/MultiValueMap;
astore 2
start local 2 1: aload 2
aload 0
invokevirtual org.springframework.web.server.session.CookieWebSessionIdResolver.getCookieName:()Ljava/lang/String;
invokeinterface org.springframework.util.MultiValueMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 2: aload 3
ifnonnull 4
3: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
4: StackMap locals: org.springframework.util.MultiValueMap java.util.List
StackMap stack:
aload 3
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
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/http/HttpCookie.getValue()Ljava/lang/String; (5)
(Lorg/springframework/http/HttpCookie;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 5 1 exchange Lorg/springframework/web/server/ServerWebExchange;
1 5 2 cookieMap Lorg/springframework/util/MultiValueMap<Ljava/lang/String;Lorg/springframework/http/HttpCookie;>;
2 5 3 cookies Ljava/util/List<Lorg/springframework/http/HttpCookie;>;
Signature: (Lorg/springframework/web/server/ServerWebExchange;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
exchange
public void setSessionId(org.springframework.web.server.ServerWebExchange, java.lang.String);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "'id' is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
aload 1
aload 2
aload 0
invokevirtual org.springframework.web.server.session.CookieWebSessionIdResolver.getCookieMaxAge:()Ljava/time/Duration;
invokevirtual org.springframework.web.server.session.CookieWebSessionIdResolver.initSessionCookie:(Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/String;Ljava/time/Duration;)Lorg/springframework/http/ResponseCookie;
astore 3
start local 3 2: aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getResponse:()Lorg/springframework/http/server/reactive/ServerHttpResponse;
invokeinterface org.springframework.http.server.reactive.ServerHttpResponse.getCookies:()Lorg/springframework/util/MultiValueMap;
aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieName:Ljava/lang/String;
aload 3
invokeinterface org.springframework.util.MultiValueMap.set:(Ljava/lang/Object;Ljava/lang/Object;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 4 1 exchange Lorg/springframework/web/server/ServerWebExchange;
0 4 2 id Ljava/lang/String;
2 4 3 cookie Lorg/springframework/http/ResponseCookie;
MethodParameters:
Name Flags
exchange
id
public void expireSession(org.springframework.web.server.ServerWebExchange);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc ""
getstatic java.time.Duration.ZERO:Ljava/time/Duration;
invokevirtual org.springframework.web.server.session.CookieWebSessionIdResolver.initSessionCookie:(Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/String;Ljava/time/Duration;)Lorg/springframework/http/ResponseCookie;
astore 2
start local 2 1: aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getResponse:()Lorg/springframework/http/server/reactive/ServerHttpResponse;
invokeinterface org.springframework.http.server.reactive.ServerHttpResponse.getCookies:()Lorg/springframework/util/MultiValueMap;
aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieName:Ljava/lang/String;
aload 2
invokeinterface org.springframework.util.MultiValueMap.set:(Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 3 1 exchange Lorg/springframework/web/server/ServerWebExchange;
1 3 2 cookie Lorg/springframework/http/ResponseCookie;
MethodParameters:
Name Flags
exchange
private org.springframework.http.ResponseCookie initSessionCookie(org.springframework.web.server.ServerWebExchange, java.lang.String, java.time.Duration);
descriptor: (Lorg/springframework/web/server/ServerWebExchange;Ljava/lang/String;Ljava/time/Duration;)Lorg/springframework/http/ResponseCookie;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieName:Ljava/lang/String;
aload 2
invokestatic org.springframework.http.ResponseCookie.from:(Ljava/lang/String;Ljava/lang/String;)Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
1: new java.lang.StringBuilder
dup
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getRequest:()Lorg/springframework/http/server/reactive/ServerHttpRequest;
invokeinterface org.springframework.http.server.reactive.ServerHttpRequest.getPath:()Lorg/springframework/http/server/RequestPath;
invokeinterface org.springframework.http.server.RequestPath.contextPath:()Lorg/springframework/http/server/PathContainer;
invokeinterface org.springframework.http.server.PathContainer.value:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.springframework.http.ResponseCookie$ResponseCookieBuilder.path:(Ljava/lang/String;)Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
2: aload 3
invokeinterface org.springframework.http.ResponseCookie$ResponseCookieBuilder.maxAge:(Ljava/time/Duration;)Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
3: iconst_1
invokeinterface org.springframework.http.ResponseCookie$ResponseCookieBuilder.httpOnly:(Z)Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
4: ldc "https"
aload 1
invokeinterface org.springframework.web.server.ServerWebExchange.getRequest:()Lorg/springframework/http/server/reactive/ServerHttpRequest;
invokeinterface org.springframework.http.server.reactive.ServerHttpRequest.getURI:()Ljava/net/URI;
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
invokeinterface org.springframework.http.ResponseCookie$ResponseCookieBuilder.secure:(Z)Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
5: ldc "Lax"
invokeinterface org.springframework.http.ResponseCookie$ResponseCookieBuilder.sameSite:(Ljava/lang/String;)Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
6: astore 4
start local 4 7: aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieInitializer:Ljava/util/function/Consumer;
ifnull 9
8: aload 0
getfield org.springframework.web.server.session.CookieWebSessionIdResolver.cookieInitializer:Ljava/util/function/Consumer;
aload 4
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
9: StackMap locals: org.springframework.http.ResponseCookie$ResponseCookieBuilder
StackMap stack:
aload 4
invokeinterface org.springframework.http.ResponseCookie$ResponseCookieBuilder.build:()Lorg/springframework/http/ResponseCookie;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/web/server/session/CookieWebSessionIdResolver;
0 10 1 exchange Lorg/springframework/web/server/ServerWebExchange;
0 10 2 id Ljava/lang/String;
0 10 3 maxAge Ljava/time/Duration;
7 10 4 cookieBuilder Lorg/springframework/http/ResponseCookie$ResponseCookieBuilder;
MethodParameters:
Name Flags
exchange
id
maxAge
}
SourceFile: "CookieWebSessionIdResolver.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract ResponseCookieBuilder = org.springframework.http.ResponseCookie$ResponseCookieBuilder of org.springframework.http.ResponseCookie