public abstract class com.sun.net.httpserver.spi.HttpServerProvider
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.net.httpserver.spi.HttpServerProvider
super_class: java.lang.Object
{
private static final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static com.sun.net.httpserver.spi.HttpServerProvider provider;
descriptor: Lcom/sun/net/httpserver/spi/HttpServerProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic com.sun.net.httpserver.spi.HttpServerProvider.lock:Ljava/lang/Object;
1: aconst_null
putstatic com.sun.net.httpserver.spi.HttpServerProvider.provider:Lcom/sun/net/httpserver/spi/HttpServerProvider;
return
LocalVariableTable:
Start End Slot Name Signature
public abstract com.sun.net.httpserver.HttpServer createHttpServer(java.net.InetSocketAddress, int);
descriptor: (Ljava/net/InetSocketAddress;I)Lcom/sun/net/httpserver/HttpServer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
addr
backlog
public abstract com.sun.net.httpserver.HttpsServer createHttpsServer(java.net.InetSocketAddress, int);
descriptor: (Ljava/net/InetSocketAddress;I)Lcom/sun/net/httpserver/HttpsServer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
addr
backlog
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
new java.lang.RuntimePermission
dup
ldc "httpServerProvider"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
4: StackMap locals: com.sun.net.httpserver.spi.HttpServerProvider java.lang.SecurityManager
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/net/httpserver/spi/HttpServerProvider;
2 5 1 sm Ljava/lang/SecurityManager;
private static boolean loadProviderFromProperty();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: ldc "com.sun.net.httpserver.HttpServerProvider"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
iconst_1
4: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
5: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
6: invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
7: astore 1
start local 1 8: aload 1
checkcast com.sun.net.httpserver.spi.HttpServerProvider
putstatic com.sun.net.httpserver.spi.HttpServerProvider.provider:Lcom/sun/net/httpserver/spi/HttpServerProvider;
9: iconst_1
ireturn
end local 1 10: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 11: new java.util.ServiceConfigurationError
dup
aconst_null
aload 1
invokespecial java.util.ServiceConfigurationError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 12 0 cn Ljava/lang/String;
8 10 1 o Ljava/lang/Object;
11 12 1 x Ljava/lang/Exception;
Exception table:
from to target type
3 9 10 Class java.lang.ClassNotFoundException
3 9 10 Class java.lang.IllegalAccessException
3 9 10 Class java.lang.InstantiationException
3 9 10 Class java.lang.SecurityException
private static boolean loadProviderAsService();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: ldc Lcom/sun/net/httpserver/spi/HttpServerProvider;
1: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
2: invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
3: invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
4: astore 0
start local 0 5: StackMap locals: java.util.Iterator
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.net.httpserver.spi.HttpServerProvider
putstatic com.sun.net.httpserver.spi.HttpServerProvider.provider:Lcom/sun/net/httpserver/spi/HttpServerProvider;
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack: java.util.ServiceConfigurationError
astore 1
start local 1 10: aload 1
invokevirtual java.util.ServiceConfigurationError.getCause:()Ljava/lang/Throwable;
instanceof java.lang.SecurityException
ifeq 12
11: goto 5
12: StackMap locals: java.util.ServiceConfigurationError
StackMap stack:
aload 1
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
5 13 0 i Ljava/util/Iterator<Lcom/sun/net/httpserver/spi/HttpServerProvider;>;
10 13 1 sce Ljava/util/ServiceConfigurationError;
Exception table:
from to target type
5 6 9 Class java.util.ServiceConfigurationError
7 8 9 Class java.util.ServiceConfigurationError
public static com.sun.net.httpserver.spi.HttpServerProvider provider();
descriptor: ()Lcom/sun/net/httpserver/spi/HttpServerProvider;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic com.sun.net.httpserver.spi.HttpServerProvider.lock:Ljava/lang/Object;
dup
astore 0
monitorenter
1: getstatic com.sun.net.httpserver.spi.HttpServerProvider.provider:Lcom/sun/net/httpserver/spi/HttpServerProvider;
ifnull 4
2: getstatic com.sun.net.httpserver.spi.HttpServerProvider.provider:Lcom/sun/net/httpserver/spi/HttpServerProvider;
aload 0
monitorexit
3: areturn
4: StackMap locals: java.lang.Object
StackMap stack:
new com.sun.net.httpserver.spi.HttpServerProvider$1
dup
invokespecial com.sun.net.httpserver.spi.HttpServerProvider$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast com.sun.net.httpserver.spi.HttpServerProvider
5: aload 0
monitorexit
6: areturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
aload 0
monitorexit
8: athrow
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
}
SourceFile: "HttpServerProvider.java"
NestMembers:
com.sun.net.httpserver.spi.HttpServerProvider$1
InnerClasses:
com.sun.net.httpserver.spi.HttpServerProvider$1