public class org.apache.catalina.webresources.TomcatURLStreamHandlerFactory implements java.net.URLStreamHandlerFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.webresources.TomcatURLStreamHandlerFactory
super_class: java.lang.Object
{
private static final java.lang.String WAR_PROTOCOL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "war"
private static final java.lang.String CLASSPATH_PROTOCOL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "classpath"
private static volatile org.apache.catalina.webresources.TomcatURLStreamHandlerFactory instance;
descriptor: Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private final boolean registered;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<java.net.URLStreamHandlerFactory> userFactories;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/net/URLStreamHandlerFactory;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
return
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.catalina.webresources.TomcatURLStreamHandlerFactory getInstance();
descriptor: ()Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.getInstanceInternal:(Z)Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
pop
1: getstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static org.apache.catalina.webresources.TomcatURLStreamHandlerFactory getInstanceInternal(boolean);
descriptor: (Z)Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
ifnonnull 8
1: ldc Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
dup
astore 1
monitorenter
2: getstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
ifnonnull 4
3: new org.apache.catalina.webresources.TomcatURLStreamHandlerFactory
dup
iload 0
invokespecial org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.<init>:(Z)V
putstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
4: StackMap locals: java.lang.Class
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 register Z
Exception table:
from to target type
2 5 6 any
6 7 6 any
MethodParameters:
Name Flags
register
public static boolean register();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.getInstanceInternal:(Z)Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
invokevirtual org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.isRegistered:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean disable();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
invokestatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.getInstanceInternal:(Z)Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
invokevirtual org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.isRegistered:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void release(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: getstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.instance:Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
getfield org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.userFactories:Ljava/util/List;
astore 1
start local 1 3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 12
StackMap locals: java.lang.ClassLoader java.util.List top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.URLStreamHandlerFactory
astore 2
start local 2 5: aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 4
start local 4 6: goto 11
7: StackMap locals: java.lang.ClassLoader java.util.List java.net.URLStreamHandlerFactory java.util.Iterator java.lang.ClassLoader
StackMap stack:
aload 0
aload 4
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 10
8: aload 1
aload 2
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
9: goto 12
10: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 4
11: StackMap locals:
StackMap stack:
aload 4
ifnonnull 7
end local 4 end local 2 12: StackMap locals: java.lang.ClassLoader java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 classLoader Ljava/lang/ClassLoader;
3 14 1 factories Ljava/util/List<Ljava/net/URLStreamHandlerFactory;>;
5 12 2 factory Ljava/net/URLStreamHandlerFactory;
6 12 4 factoryLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
classLoader
private void <init>(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
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
2: new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
putfield org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.userFactories:Ljava/util/List;
3: aload 0
iload 1
putfield org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.registered:Z
4: iload 1
ifeq 6
5: aload 0
invokestatic java.net.URL.setURLStreamHandlerFactory:(Ljava/net/URLStreamHandlerFactory;)V
6: StackMap locals: org.apache.catalina.webresources.TomcatURLStreamHandlerFactory int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
0 7 1 register Z
MethodParameters:
Name Flags
register
public boolean isRegistered();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.registered:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
public void addUserFactory(java.net.URLStreamHandlerFactory);
descriptor: (Ljava/net/URLStreamHandlerFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.userFactories:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
0 2 1 factory Ljava/net/URLStreamHandlerFactory;
MethodParameters:
Name Flags
factory
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URLStreamHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: ldc "war"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: new org.apache.catalina.webresources.war.Handler
dup
invokespecial org.apache.catalina.webresources.war.Handler.<init>:()V
areturn
2: StackMap locals:
StackMap stack:
ldc "classpath"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: new org.apache.catalina.webresources.ClasspathURLStreamHandler
dup
invokespecial org.apache.catalina.webresources.ClasspathURLStreamHandler.<init>:()V
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.userFactories:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: org.apache.catalina.webresources.TomcatURLStreamHandlerFactory java.lang.String top java.util.Iterator
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.URLStreamHandlerFactory
astore 2
start local 2 6: aload 2
aload 1
invokeinterface java.net.URLStreamHandlerFactory.createURLStreamHandler:(Ljava/lang/String;)Ljava/net/URLStreamHandler;
7: astore 4
start local 4 8: aload 4
ifnull 10
9: aload 4
areturn
end local 4 end local 2 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
11: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/webresources/TomcatURLStreamHandlerFactory;
0 12 1 protocol Ljava/lang/String;
6 10 2 factory Ljava/net/URLStreamHandlerFactory;
8 10 4 handler Ljava/net/URLStreamHandler;
MethodParameters:
Name Flags
protocol
}
SourceFile: "TomcatURLStreamHandlerFactory.java"