public class org.springframework.beans.factory.xml.ResourceEntityResolver extends org.springframework.beans.factory.xml.DelegatingEntityResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.beans.factory.xml.ResourceEntityResolver
super_class: org.springframework.beans.factory.xml.DelegatingEntityResolver
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.springframework.core.io.ResourceLoader resourceLoader;
descriptor: Lorg/springframework/core/io/ResourceLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/beans/factory/xml/ResourceEntityResolver;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.springframework.core.io.ResourceLoader);
descriptor: (Lorg/springframework/core/io/ResourceLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.springframework.core.io.ResourceLoader.getClassLoader:()Ljava/lang/ClassLoader;
invokespecial org.springframework.beans.factory.xml.DelegatingEntityResolver.<init>:(Ljava/lang/ClassLoader;)V
1: aload 0
aload 1
putfield org.springframework.beans.factory.xml.ResourceEntityResolver.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/beans/factory/xml/ResourceEntityResolver;
0 3 1 resourceLoader Lorg/springframework/core/io/ResourceLoader;
MethodParameters:
Name Flags
resourceLoader
public org.xml.sax.InputSource resolveEntity(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.springframework.beans.factory.xml.DelegatingEntityResolver.resolveEntity:(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
astore 3
start local 3 1: aload 3
ifnonnull 35
aload 2
ifnull 35
2: aconst_null
astore 4
start local 4 3: aload 2
ldc "UTF-8"
invokestatic java.net.URLDecoder.decode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 4: new java.net.URL
dup
aload 5
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 6
start local 6 5: new java.io.File
dup
ldc ""
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 7
start local 7 6: aload 6
aload 7
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
7: aload 6
aload 7
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
end local 7 end local 6 end local 5 8: goto 13
9: StackMap locals: org.springframework.beans.factory.xml.ResourceEntityResolver java.lang.String java.lang.String org.xml.sax.InputSource java.lang.String
StackMap stack: java.lang.Exception
astore 5
start local 5 10: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 12
11: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Could not resolve XML entity ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] against system root URL"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
12: StackMap locals: java.lang.Exception
StackMap stack:
aload 2
astore 4
end local 5 13: StackMap locals:
StackMap stack:
aload 4
ifnull 23
14: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isTraceEnabled:()Z
ifeq 16
15: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Trying to locate XML entity ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] as resource ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
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.trace:(Ljava/lang/Object;)V
16: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.beans.factory.xml.ResourceEntityResolver.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
aload 4
invokeinterface org.springframework.core.io.ResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
astore 5
start local 5 17: new org.xml.sax.InputSource
dup
aload 5
invokeinterface org.springframework.core.io.Resource.getInputStream:()Ljava/io/InputStream;
invokespecial org.xml.sax.InputSource.<init>:(Ljava/io/InputStream;)V
astore 3
18: aload 3
aload 1
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
19: aload 3
aload 2
invokevirtual org.xml.sax.InputSource.setSystemId:(Ljava/lang/String;)V
20: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 35
21: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Found XML entity ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
end local 5 22: goto 35
23: StackMap locals:
StackMap stack:
aload 2
ldc ".dtd"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 24
aload 2
ldc ".xsd"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 35
24: StackMap locals:
StackMap stack:
aload 2
astore 5
start local 5 25: aload 5
ldc "http:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 27
26: new java.lang.StringBuilder
dup
ldc "https:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
iconst_5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
27: StackMap locals: java.lang.String
StackMap stack:
new org.xml.sax.InputSource
dup
new java.net.URL
dup
aload 5
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
invokespecial org.xml.sax.InputSource.<init>:(Ljava/io/InputStream;)V
astore 3
28: aload 3
aload 1
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
29: aload 3
aload 2
invokevirtual org.xml.sax.InputSource.setSystemId:(Ljava/lang/String;)V
30: goto 35
31: StackMap locals:
StackMap stack: java.io.IOException
astore 6
start local 6 32: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 34
33: getstatic org.springframework.beans.factory.xml.ResourceEntityResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Could not resolve XML entity ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] through URL ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
34: StackMap locals: java.io.IOException
StackMap stack:
aconst_null
astore 3
end local 6 end local 5 end local 4 35: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/springframework/beans/factory/xml/ResourceEntityResolver;
0 36 1 publicId Ljava/lang/String;
0 36 2 systemId Ljava/lang/String;
1 36 3 source Lorg/xml/sax/InputSource;
3 35 4 resourcePath Ljava/lang/String;
4 8 5 decodedSystemId Ljava/lang/String;
5 8 6 givenUrl Ljava/lang/String;
6 8 7 systemRootUrl Ljava/lang/String;
10 13 5 ex Ljava/lang/Exception;
17 22 5 resource Lorg/springframework/core/io/Resource;
25 35 5 url Ljava/lang/String;
32 35 6 ex Ljava/io/IOException;
Exception table:
from to target type
3 8 9 Class java.lang.Exception
27 30 31 Class java.io.IOException
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
publicId
systemId
}
SourceFile: "ResourceEntityResolver.java"