public class org.springframework.web.cors.UrlBasedCorsConfigurationSource implements org.springframework.web.cors.CorsConfigurationSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.cors.UrlBasedCorsConfigurationSource
super_class: java.lang.Object
{
private static org.springframework.util.PathMatcher defaultPathMatcher;
descriptor: Lorg/springframework/util/PathMatcher;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final org.springframework.web.util.pattern.PathPatternParser patternParser;
descriptor: Lorg/springframework/web/util/pattern/PathPatternParser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.springframework.web.util.UrlPathHelper urlPathHelper;
descriptor: Lorg/springframework/web/util/UrlPathHelper;
flags: (0x0002) ACC_PRIVATE
private org.springframework.util.PathMatcher pathMatcher;
descriptor: Lorg/springframework/util/PathMatcher;
flags: (0x0002) ACC_PRIVATE
private java.lang.String lookupPathAttributeName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private boolean allowInitLookupPath;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.Map<org.springframework.web.util.pattern.PathPattern, org.springframework.web.cors.CorsConfiguration> corsConfigurations;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/springframework/web/util/pattern/PathPattern;Lorg/springframework/web/cors/CorsConfiguration;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.springframework.util.AntPathMatcher
dup
invokespecial org.springframework.util.AntPathMatcher.<init>:()V
putstatic org.springframework.web.cors.UrlBasedCorsConfigurationSource.defaultPathMatcher:Lorg/springframework/util/PathMatcher;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.springframework.web.util.pattern.PathPatternParser.defaultInstance:Lorg/springframework/web/util/pattern/PathPatternParser;
invokespecial org.springframework.web.cors.UrlBasedCorsConfigurationSource.<init>:(Lorg/springframework/web/util/pattern/PathPatternParser;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
public void <init>(org.springframework.web.util.pattern.PathPatternParser);
descriptor: (Lorg/springframework/web/util/pattern/PathPatternParser;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.springframework.web.util.UrlPathHelper.defaultInstance:Lorg/springframework/web/util/UrlPathHelper;
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
2: aload 0
getstatic org.springframework.web.cors.UrlBasedCorsConfigurationSource.defaultPathMatcher:Lorg/springframework/util/PathMatcher;
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.pathMatcher:Lorg/springframework/util/PathMatcher;
3: aload 0
iconst_1
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.allowInitLookupPath:Z
4: aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.corsConfigurations:Ljava/util/Map;
5: aload 1
ldc "PathPatternParser must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
6: aload 0
aload 1
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.patternParser:Lorg/springframework/web/util/pattern/PathPatternParser;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 8 1 parser Lorg/springframework/web/util/pattern/PathPatternParser;
MethodParameters:
Name Flags
parser
public void setAlwaysUseFullPath(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.cors.UrlBasedCorsConfigurationSource.initUrlPathHelper:()V
1: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
iload 1
invokevirtual org.springframework.web.util.UrlPathHelper.setAlwaysUseFullPath:(Z)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 3 1 alwaysUseFullPath Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
alwaysUseFullPath
public void setUrlDecode(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.cors.UrlBasedCorsConfigurationSource.initUrlPathHelper:()V
1: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
iload 1
invokevirtual org.springframework.web.util.UrlPathHelper.setUrlDecode:(Z)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 3 1 urlDecode Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
urlDecode
public void setRemoveSemicolonContent(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.cors.UrlBasedCorsConfigurationSource.initUrlPathHelper:()V
1: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
iload 1
invokevirtual org.springframework.web.util.UrlPathHelper.setRemoveSemicolonContent:(Z)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 3 1 removeSemicolonContent Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
removeSemicolonContent
private void initUrlPathHelper();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
getstatic org.springframework.web.util.UrlPathHelper.defaultInstance:Lorg/springframework/web/util/UrlPathHelper;
if_acmpne 2
1: aload 0
new org.springframework.web.util.UrlPathHelper
dup
invokespecial org.springframework.web.util.UrlPathHelper.<init>:()V
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper);
descriptor: (Lorg/springframework/web/util/UrlPathHelper;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "UrlPathHelper must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 3 1 urlPathHelper Lorg/springframework/web/util/UrlPathHelper;
MethodParameters:
Name Flags
urlPathHelper
public void setAllowInitLookupPath(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.allowInitLookupPath:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 2 1 allowInitLookupPath Z
MethodParameters:
Name Flags
allowInitLookupPath
public void setLookupPathAttributeName(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 0
aload 1
putfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.lookupPathAttributeName:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 2 1 name Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
name
public void setPathMatcher(org.springframework.util.PathMatcher);
descriptor: (Lorg/springframework/util/PathMatcher;)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.cors.UrlBasedCorsConfigurationSource.pathMatcher:Lorg/springframework/util/PathMatcher;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 2 1 pathMatcher Lorg/springframework/util/PathMatcher;
MethodParameters:
Name Flags
pathMatcher
public void setCorsConfigurations(java.util.Map<java.lang.String, org.springframework.web.cors.CorsConfiguration>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.corsConfigurations:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: aload 1
ifnull 3
2: aload 1
aload 0
invokedynamic accept(Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;)Ljava/util/function/BiConsumer;
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;)V
org/springframework/web/cors/UrlBasedCorsConfigurationSource.registerCorsConfiguration(Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;)V (5)
(Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 4 1 corsConfigurations Ljava/util/Map<Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;>;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
corsConfigurations
public void registerCorsConfiguration(java.lang.String, org.springframework.web.cors.CorsConfiguration);
descriptor: (Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.corsConfigurations:Ljava/util/Map;
aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.patternParser:Lorg/springframework/web/util/pattern/PathPatternParser;
aload 1
invokevirtual org.springframework.web.util.pattern.PathPatternParser.parse:(Ljava/lang/String;)Lorg/springframework/web/util/pattern/PathPattern;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
0 2 1 pattern Ljava/lang/String;
0 2 2 config Lorg/springframework/web/cors/CorsConfiguration;
MethodParameters:
Name Flags
pattern
config
public java.util.Map<java.lang.String, org.springframework.web.cors.CorsConfiguration> getCorsConfigurations();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.corsConfigurations:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
invokestatic org.springframework.util.CollectionUtils.newHashMap:(I)Ljava/util/HashMap;
astore 1
start local 1 1: aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.corsConfigurations:Ljava/util/Map;
aload 1
invokedynamic accept(Ljava/util/Map;)Ljava/util/function/BiConsumer;
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;)V
org/springframework/web/cors/UrlBasedCorsConfigurationSource.lambda$1(Ljava/util/Map;Lorg/springframework/web/util/pattern/PathPattern;Lorg/springframework/web/cors/CorsConfiguration;)V (6)
(Lorg/springframework/web/util/pattern/PathPattern;Lorg/springframework/web/cors/CorsConfiguration;)V
invokeinterface java.util.Map.forEach:(Ljava/util/function/BiConsumer;)V
2: aload 1
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
1 3 1 result Ljava/util/Map<Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;>;
Signature: ()Ljava/util/Map<Ljava/lang/String;Lorg/springframework/web/cors/CorsConfiguration;>;
public org.springframework.web.cors.CorsConfiguration getCorsConfiguration(HttpServletRequest);
descriptor: (LHttpServletRequest;)Lorg/springframework/web/cors/CorsConfiguration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tHttpServletRequest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
request
java.lang.Object resolvePath(HttpServletRequest);
descriptor: (LHttpServletRequest;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tHttpServletRequest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/cors/UrlBasedCorsConfigurationSource;
MethodParameters:
Name Flags
request
private boolean match(java.lang.Object, boolean, org.springframework.web.util.pattern.PathPattern);
descriptor: (Ljava/lang/Object;ZLorg/springframework/web/util/pattern/PathPattern;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
ifeq 2
1: aload 3
aload 1
checkcast org.springframework.http.server.PathContainer
invokevirtual org.springframework.web.util.pattern.PathPattern.matches:(Lorg/springframework/http/server/PathContainer;)Z
goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.cors.UrlBasedCorsConfigurationSource.pathMatcher:Lorg/springframework/util/PathMatcher;
aload 3
invokevirtual org.springframework.web.util.pattern.PathPattern.getPatternString:()Ljava/lang/String;
aload 1
checkcast java.lang.String
invokeinterface org.springframework.util.PathMatcher.match:(Ljava/lang/String;Ljava/lang/String;)Z
3: StackMap locals:
StackMap stack: int
ireturn
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/cors/UrlBasedCorsConfigurationSource;
0 4 1 path Ljava/lang/Object;
0 4 2 isPathContainer Z
0 4 3 pattern Lorg/springframework/web/util/pattern/PathPattern;
MethodParameters:
Name Flags
path
isPathContainer
pattern
public org.springframework.web.cors.CorsConfiguration getCorsConfiguration(HttpServletRequest);
descriptor: (LHttpServletRequest;)Lorg/springframework/web/cors/CorsConfiguration;
flags: (0x1001) ACC_PUBLIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tThe type UrlBasedCorsConfigurationSource must implement the inherited abstract method CorsConfigurationSource.getCorsConfiguration(HttpServletRequest)\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
private static void lambda$1(java.util.Map, org.springframework.web.util.pattern.PathPattern, org.springframework.web.cors.CorsConfiguration);
descriptor: (Ljava/util/Map;Lorg/springframework/web/util/pattern/PathPattern;Lorg/springframework/web/cors/CorsConfiguration;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.springframework.web.util.pattern.PathPattern.getPatternString:()Ljava/lang/String;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 pattern Lorg/springframework/web/util/pattern/PathPattern;
0 1 2 config Lorg/springframework/web/cors/CorsConfiguration;
}
SourceFile: "UrlBasedCorsConfigurationSource.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles