public class org.apache.tomcat.util.descriptor.LocalResolver implements org.xml.sax.ext.EntityResolver2
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.descriptor.LocalResolver
super_class: java.lang.Object
{
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] JAVA_EE_NAMESPACES;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.String> publicIds;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private final java.util.Map<java.lang.String, java.lang.String> systemIds;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private final boolean blockExternal;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: getstatic org.apache.tomcat.util.descriptor.Constants.PACKAGE_NAME:Ljava/lang/String;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;)Lorg/apache/tomcat/util/res/StringManager;
1: putstatic org.apache.tomcat.util.descriptor.LocalResolver.sm:Lorg/apache/tomcat/util/res/StringManager;
2: iconst_4
anewarray java.lang.String
dup
iconst_0
3: ldc "http://java.sun.com/xml/ns/j2ee"
aastore
dup
iconst_1
4: ldc "http://java.sun.com/xml/ns/javaee"
aastore
dup
iconst_2
5: ldc "http://xmlns.jcp.org/xml/ns/javaee"
aastore
dup
iconst_3
6: ldc "https://jakarta.ee/xml/ns/jakartaee"
aastore
7: putstatic org.apache.tomcat.util.descriptor.LocalResolver.JAVA_EE_NAMESPACES:[Ljava/lang/String;
8: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.Map<java.lang.String, java.lang.String>, java.util.Map<java.lang.String, java.lang.String>, );
descriptor: (Ljava/util/Map;Ljava/util/Map;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.tomcat.util.descriptor.LocalResolver.publicIds:Ljava/util/Map;
2: aload 0
aload 2
putfield org.apache.tomcat.util.descriptor.LocalResolver.systemIds:Ljava/util/Map;
3: aload 0
iload 3
putfield org.apache.tomcat.util.descriptor.LocalResolver.blockExternal:Z
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/descriptor/LocalResolver;
0 5 1 publicIds Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 5 2 systemIds Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 5 3 blockExternal Z
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Z)V
MethodParameters:
Name Flags
publicIds
systemIds
blockExternal
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=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 1
aconst_null
aload 2
invokevirtual org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/descriptor/LocalResolver;
0 1 1 publicId Ljava/lang/String;
0 1 2 systemId Ljava/lang/String;
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
MethodParameters:
Name Flags
publicId
systemId
public org.xml.sax.InputSource resolveEntity(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.apache.tomcat.util.descriptor.LocalResolver.publicIds:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 1: aload 5
ifnull 5
2: new org.xml.sax.InputSource
dup
aload 5
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 6
start local 6 3: aload 6
aload 2
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
4: aload 6
areturn
end local 6 5: StackMap locals: java.lang.String
StackMap stack:
aload 4
ifnonnull 9
6: new java.io.FileNotFoundException
dup
getstatic org.apache.tomcat.util.descriptor.LocalResolver.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "localResolver.unresolvedEntity"
iconst_4
anewarray java.lang.Object
dup
iconst_0
7: aload 1
aastore
dup
iconst_1
aload 2
aastore
dup
iconst_2
aconst_null
aastore
dup
iconst_3
aload 3
aastore
8: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.descriptor.LocalResolver.systemIds:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
10: aload 5
ifnull 14
11: new org.xml.sax.InputSource
dup
aload 5
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 6
start local 6 12: aload 6
aload 2
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
13: aload 6
areturn
end local 6 14: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.descriptor.LocalResolver.JAVA_EE_NAMESPACES:[Ljava/lang/String;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 23
StackMap locals: org.apache.tomcat.util.descriptor.LocalResolver java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String top int int java.lang.String[]
StackMap stack:
15: aload 9
iload 7
aaload
astore 6
start local 6 16: new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 10
start local 10 17: aload 0
getfield org.apache.tomcat.util.descriptor.LocalResolver.systemIds:Ljava/util/Map;
aload 10
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
18: aload 5
ifnull 22
19: new org.xml.sax.InputSource
dup
aload 5
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 11
start local 11 20: aload 11
aload 2
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
21: aload 11
areturn
end local 11 end local 10 end local 6 22: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
23: iload 7
iload 8
if_icmplt 15
24: aload 3
ifnonnull 27
25: new java.net.URI
dup
aload 4
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 6
start local 6 26: goto 29
end local 6 27: StackMap locals: org.apache.tomcat.util.descriptor.LocalResolver java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
new java.net.URI
dup
aload 3
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 7
start local 7 28: new java.net.URL
dup
aload 7
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
aload 4
invokespecial java.net.URL.<init>:(Ljava/net/URL;Ljava/lang/String;)V
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
astore 6
end local 7 start local 6 29: StackMap locals: java.net.URI
StackMap stack:
aload 6
invokevirtual java.net.URI.normalize:()Ljava/net/URI;
astore 6
30: goto 35
end local 6 StackMap locals: org.apache.tomcat.util.descriptor.LocalResolver java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: java.net.URISyntaxException
31: astore 7
start local 7 32: aload 0
getfield org.apache.tomcat.util.descriptor.LocalResolver.blockExternal:Z
ifeq 34
33: new java.net.MalformedURLException
dup
aload 7
invokevirtual java.net.URISyntaxException.getMessage:()Ljava/lang/String;
invokespecial java.net.MalformedURLException.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals: org.apache.tomcat.util.descriptor.LocalResolver java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String top java.net.URISyntaxException
StackMap stack:
new org.xml.sax.InputSource
dup
aload 4
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
areturn
end local 7 start local 6 35: StackMap locals: org.apache.tomcat.util.descriptor.LocalResolver java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String java.net.URI
StackMap stack:
aload 6
invokevirtual java.net.URI.isAbsolute:()Z
ifeq 45
36: aload 0
getfield org.apache.tomcat.util.descriptor.LocalResolver.systemIds:Ljava/util/Map;
aload 6
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
37: aload 5
ifnull 41
38: new org.xml.sax.InputSource
dup
aload 5
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 7
start local 7 39: aload 7
aload 2
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
40: aload 7
areturn
end local 7 41: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.descriptor.LocalResolver.blockExternal:Z
ifne 45
42: new org.xml.sax.InputSource
dup
aload 6
invokevirtual java.net.URI.toString:()Ljava/lang/String;
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 7
start local 7 43: aload 7
aload 2
invokevirtual org.xml.sax.InputSource.setPublicId:(Ljava/lang/String;)V
44: aload 7
areturn
end local 7 45: StackMap locals:
StackMap stack:
new java.io.FileNotFoundException
dup
getstatic org.apache.tomcat.util.descriptor.LocalResolver.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "localResolver.unresolvedEntity"
iconst_4
anewarray java.lang.Object
dup
iconst_0
46: aload 1
aastore
dup
iconst_1
aload 2
aastore
dup
iconst_2
aload 4
aastore
dup
iconst_3
aload 3
aastore
47: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 this Lorg/apache/tomcat/util/descriptor/LocalResolver;
0 48 1 name Ljava/lang/String;
0 48 2 publicId Ljava/lang/String;
0 48 3 base Ljava/lang/String;
0 48 4 systemId Ljava/lang/String;
1 48 5 resolved Ljava/lang/String;
3 5 6 is Lorg/xml/sax/InputSource;
12 14 6 is Lorg/xml/sax/InputSource;
16 22 6 javaEENamespace Ljava/lang/String;
17 22 10 javaEESystemId Ljava/lang/String;
20 22 11 is Lorg/xml/sax/InputSource;
26 27 6 systemUri Ljava/net/URI;
29 31 6 systemUri Ljava/net/URI;
35 48 6 systemUri Ljava/net/URI;
28 29 7 baseUri Ljava/net/URI;
32 35 7 e Ljava/net/URISyntaxException;
39 41 7 is Lorg/xml/sax/InputSource;
43 45 7 is Lorg/xml/sax/InputSource;
Exception table:
from to target type
24 30 31 Class java.net.URISyntaxException
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
MethodParameters:
Name Flags
name
publicId
base
systemId
public org.xml.sax.InputSource getExternalSubset(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/descriptor/LocalResolver;
0 1 1 name Ljava/lang/String;
0 1 2 baseURI Ljava/lang/String;
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
MethodParameters:
Name Flags
name
baseURI
}
SourceFile: "LocalResolver.java"