public class org.springframework.web.servlet.resource.PathResourceResolver extends org.springframework.web.servlet.resource.AbstractResourceResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.servlet.resource.PathResourceResolver
super_class: org.springframework.web.servlet.resource.AbstractResourceResolver
{
private org.springframework.core.io.Resource[] allowedLocations;
descriptor: [Lorg/springframework/core/io/Resource;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.util.Map<org.springframework.core.io.Resource, java.nio.charset.Charset> locationCharsets;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/springframework/core/io/Resource;Ljava/nio/charset/Charset;>;
private org.springframework.web.util.UrlPathHelper urlPathHelper;
descriptor: Lorg/springframework/web/util/UrlPathHelper;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.web.servlet.resource.AbstractResourceResolver.<init>:()V
1: aload 0
new java.util.HashMap
dup
iconst_4
invokespecial java.util.HashMap.<init>:(I)V
putfield org.springframework.web.servlet.resource.PathResourceResolver.locationCharsets:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
public void setAllowedLocations(org.springframework.core.io.Resource[]);
descriptor: ([Lorg/springframework/core/io/Resource;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.web.servlet.resource.PathResourceResolver.allowedLocations:[Lorg/springframework/core/io/Resource;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 2 1 locations [Lorg/springframework/core/io/Resource;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
locations
public org.springframework.core.io.Resource[] getAllowedLocations();
descriptor: ()[Lorg/springframework/core/io/Resource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.allowedLocations:[Lorg/springframework/core/io/Resource;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void setLocationCharsets(java.util.Map<org.springframework.core.io.Resource, java.nio.charset.Charset>);
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.servlet.resource.PathResourceResolver.locationCharsets:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.locationCharsets:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 3 1 locationCharsets Ljava/util/Map<Lorg/springframework/core/io/Resource;Ljava/nio/charset/Charset;>;
Signature: (Ljava/util/Map<Lorg/springframework/core/io/Resource;Ljava/nio/charset/Charset;>;)V
MethodParameters:
Name Flags
locationCharsets
public java.util.Map<org.springframework.core.io.Resource, java.nio.charset.Charset> getLocationCharsets();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.locationCharsets:Ljava/util/Map;
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
Signature: ()Ljava/util/Map<Lorg/springframework/core/io/Resource;Ljava/nio/charset/Charset;>;
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 0
aload 1
putfield org.springframework.web.servlet.resource.PathResourceResolver.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 2 1 urlPathHelper Lorg/springframework/web/util/UrlPathHelper;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
urlPathHelper
public org.springframework.web.util.UrlPathHelper getUrlPathHelper();
descriptor: ()Lorg/springframework/web/util/UrlPathHelper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
protected org.springframework.core.io.Resource resolveResourceInternal(HttpServletRequest, java.lang.String, java.util.List<? extends org.springframework.core.io.Resource>, org.springframework.web.servlet.resource.ResourceResolverChain);
descriptor: (LHttpServletRequest;Ljava/lang/String;Ljava/util/List;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Lorg/springframework/core/io/Resource;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=5
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/servlet/resource/PathResourceResolver;
Signature: (LHttpServletRequest;Ljava/lang/String;Ljava/util/List<+Lorg/springframework/core/io/Resource;>;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Lorg/springframework/core/io/Resource;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
2:
3:
MethodParameters:
Name Flags
request
requestPath
locations
chain
protected java.lang.String resolveUrlPathInternal(java.lang.String, java.util.List<? extends org.springframework.core.io.Resource>, org.springframework.web.servlet.resource.ResourceResolverChain);
descriptor: (Ljava/lang/String;Ljava/util/List;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tThe method getResource(String, HttpServletRequest, List<? extends Resource>) from the type PathResourceResolver refers to the missing type HttpServletRequest\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/servlet/resource/PathResourceResolver;
Signature: (Ljava/lang/String;Ljava/util/List<+Lorg/springframework/core/io/Resource;>;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Ljava/lang/String;
MethodParameters:
Name Flags
resourcePath
locations
chain
org.springframework.core.io.Resource getResource(java.lang.String, HttpServletRequest, java.util.List<? extends org.springframework.core.io.Resource>);
descriptor: (Ljava/lang/String;LHttpServletRequest;Ljava/util/List;)Lorg/springframework/core/io/Resource;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
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/servlet/resource/PathResourceResolver;
Signature: (Ljava/lang/String;LHttpServletRequest;Ljava/util/List<+Lorg/springframework/core/io/Resource;>;)Lorg/springframework/core/io/Resource;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
resourcePath
request
locations
protected org.springframework.core.io.Resource getResource(java.lang.String, org.springframework.core.io.Resource);
descriptor: (Ljava/lang/String;Lorg/springframework/core/io/Resource;)Lorg/springframework/core/io/Resource;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokeinterface org.springframework.core.io.Resource.createRelative:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
astore 3
start local 3 1: aload 3
invokeinterface org.springframework.core.io.Resource.isReadable:()Z
ifeq 13
2: aload 0
aload 3
aload 2
invokevirtual org.springframework.web.servlet.resource.PathResourceResolver.checkResource:(Lorg/springframework/core/io/Resource;Lorg/springframework/core/io/Resource;)Z
ifeq 4
3: aload 3
areturn
4: StackMap locals: org.springframework.core.io.Resource
StackMap stack:
aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isWarnEnabled:()Z
ifeq 13
5: aload 0
invokevirtual org.springframework.web.servlet.resource.PathResourceResolver.getAllowedLocations:()[Lorg/springframework/core/io/Resource;
astore 4
start local 4 6: aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Resource path \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" was successfully resolved "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc "but resource \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\" is neither under the "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "current location \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\" nor under any of the "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc "allowed locations "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
ifnull 10
aload 4
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
goto 11
StackMap locals: org.springframework.web.servlet.resource.PathResourceResolver java.lang.String org.springframework.core.io.Resource org.springframework.core.io.Resource org.springframework.core.io.Resource[]
StackMap stack: org.apache.commons.logging.Log java.lang.StringBuilder
10: ldc "[]"
StackMap locals: org.springframework.web.servlet.resource.PathResourceResolver java.lang.String org.springframework.core.io.Resource org.springframework.core.io.Resource org.springframework.core.io.Resource[]
StackMap stack: org.apache.commons.logging.Log java.lang.StringBuilder java.lang.Object
11: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;)V
end local 4 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 14 1 resourcePath Ljava/lang/String;
0 14 2 location Lorg/springframework/core/io/Resource;
1 14 3 resource Lorg/springframework/core/io/Resource;
6 13 4 allowedLocations [Lorg/springframework/core/io/Resource;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
resourcePath
location
protected boolean checkResource(org.springframework.core.io.Resource, org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;Lorg/springframework/core/io/Resource;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.web.servlet.resource.PathResourceResolver.isResourceUnderLocation:(Lorg/springframework/core/io/Resource;Lorg/springframework/core/io/Resource;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.web.servlet.resource.PathResourceResolver.getAllowedLocations:()[Lorg/springframework/core/io/Resource;
astore 3
start local 3 3: aload 3
ifnull 10
4: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 9
StackMap locals: org.springframework.web.servlet.resource.PathResourceResolver org.springframework.core.io.Resource org.springframework.core.io.Resource org.springframework.core.io.Resource[] top int int org.springframework.core.io.Resource[]
StackMap stack:
5: aload 7
iload 5
aaload
astore 4
start local 4 6: aload 0
aload 1
aload 4
invokevirtual org.springframework.web.servlet.resource.PathResourceResolver.isResourceUnderLocation:(Lorg/springframework/core/io/Resource;Lorg/springframework/core/io/Resource;)Z
ifeq 8
7: iconst_1
ireturn
end local 4 8: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 6
if_icmplt 5
10: StackMap locals: org.springframework.web.servlet.resource.PathResourceResolver org.springframework.core.io.Resource org.springframework.core.io.Resource org.springframework.core.io.Resource[]
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 11 1 resource Lorg/springframework/core/io/Resource;
0 11 2 location Lorg/springframework/core/io/Resource;
3 11 3 allowedLocations [Lorg/springframework/core/io/Resource;
6 8 4 current Lorg/springframework/core/io/Resource;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
resource
location
private boolean isResourceUnderLocation(org.springframework.core.io.Resource, org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;Lorg/springframework/core/io/Resource;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.springframework.core.io.UrlResource
ifeq 6
3: aload 1
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
astore 3
start local 3 4: aload 2
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 5: goto 16
end local 4 end local 3 6: StackMap locals:
StackMap stack:
aload 1
instanceof org.springframework.core.io.ClassPathResource
ifeq 10
7: aload 1
checkcast org.springframework.core.io.ClassPathResource
invokevirtual org.springframework.core.io.ClassPathResource.getPath:()Ljava/lang/String;
astore 3
start local 3 8: aload 2
checkcast org.springframework.core.io.ClassPathResource
invokevirtual org.springframework.core.io.ClassPathResource.getPath:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 9: goto 16
end local 4 end local 3 10: StackMap locals:
StackMap stack:
aload 1
instanceof org.springframework.web.context.support.ServletContextResource
ifeq 14
11: aload 1
checkcast org.springframework.web.context.support.ServletContextResource
invokevirtual org.springframework.web.context.support.ServletContextResource.getPath:()Ljava/lang/String;
astore 3
start local 3 12: aload 2
checkcast org.springframework.web.context.support.ServletContextResource
invokevirtual org.springframework.web.context.support.ServletContextResource.getPath:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 13: goto 16
end local 4 end local 3 14: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
astore 3
start local 3 15: aload 2
invokeinterface org.springframework.core.io.Resource.getURL:()Ljava/net/URL;
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 16: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 4
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
17: iconst_1
ireturn
18: StackMap locals:
StackMap stack:
aload 4
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 19
aload 4
invokevirtual java.lang.String.isEmpty:()Z
ifeq 20
StackMap locals:
StackMap stack:
19: aload 4
goto 21
StackMap locals:
StackMap stack:
20: new java.lang.StringBuilder
dup
aload 4
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;
StackMap locals:
StackMap stack: java.lang.String
21: astore 4
22: aload 3
aload 4
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 23
aload 0
aload 3
invokevirtual org.springframework.web.servlet.resource.PathResourceResolver.isInvalidEncodedPath:(Ljava/lang/String;)Z
ifne 23
iconst_1
ireturn
StackMap locals:
StackMap stack:
23: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 24 1 resource Lorg/springframework/core/io/Resource;
0 24 2 location Lorg/springframework/core/io/Resource;
4 6 3 resourcePath Ljava/lang/String;
8 10 3 resourcePath Ljava/lang/String;
12 14 3 resourcePath Ljava/lang/String;
15 24 3 resourcePath Ljava/lang/String;
5 6 4 locationPath Ljava/lang/String;
9 10 4 locationPath Ljava/lang/String;
13 14 4 locationPath Ljava/lang/String;
16 24 4 locationPath Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
resource
location
java.lang.String encodeIfNecessary(java.lang.String, HttpServletRequest, org.springframework.core.io.Resource);
descriptor: (Ljava/lang/String;LHttpServletRequest;Lorg/springframework/core/io/Resource;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
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/servlet/resource/PathResourceResolver;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
2:
MethodParameters:
Name Flags
path
request
location
private boolean shouldEncodeRelativePath(org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.springframework.core.io.UrlResource
ifeq 1
aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
ifnull 1
aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
invokevirtual org.springframework.web.util.UrlPathHelper.isUrlDecode:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 2 1 location Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
location
private boolean isInvalidEncodedPath(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "%"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 7
1: aload 1
ldc "UTF-8"
invokestatic java.net.URLDecoder.decode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ldc "../"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 3
aload 2
ldc "..\\"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 7
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.springframework.web.servlet.resource.PathResourceResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Resolved resource path contains encoded \"../\" or \"..\\\": "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;)V
4: iconst_1
ireturn
end local 2 5: StackMap locals: org.springframework.web.servlet.resource.PathResourceResolver java.lang.String
StackMap stack: java.lang.IllegalArgumentException
pop
goto 7
6: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
pop
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/servlet/resource/PathResourceResolver;
0 8 1 resourcePath Ljava/lang/String;
2 5 2 decodedPath Ljava/lang/String;
Exception table:
from to target type
1 4 5 Class java.lang.IllegalArgumentException
1 4 6 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
resourcePath
}
SourceFile: "PathResourceResolver.java"