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=3, 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;
astore 1
start local 1 6: aload 1
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast com.sun.net.httpserver.spi.HttpServerProvider
putstatic com.sun.net.httpserver.spi.HttpServerProvider.provider:Lcom/sun/net/httpserver/spi/HttpServerProvider;
7: iconst_1
ireturn
end local 1 8: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
astore 1
start local 1 9: new sun.misc.ServiceConfigurationError
dup
aload 1
invokespecial sun.misc.ServiceConfigurationError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 10: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 1
start local 1 11: new sun.misc.ServiceConfigurationError
dup
aload 1
invokespecial sun.misc.ServiceConfigurationError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 12: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 1
start local 1 13: new sun.misc.ServiceConfigurationError
dup
aload 1
invokespecial sun.misc.ServiceConfigurationError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 14: StackMap locals:
StackMap stack: java.lang.SecurityException
astore 1
start local 1 15: new sun.misc.ServiceConfigurationError
dup
aload 1
invokespecial sun.misc.ServiceConfigurationError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 16 0 cn Ljava/lang/String;
6 8 1 c Ljava/lang/Class<*>;
9 10 1 x Ljava/lang/ClassNotFoundException;
11 12 1 x Ljava/lang/InstantiationException;
13 14 1 x Ljava/lang/IllegalAccessException;
15 16 1 x Ljava/lang/SecurityException;
Exception table:
from to target type
3 7 8 Class java.lang.ClassNotFoundException
3 7 10 Class java.lang.InstantiationException
3 7 12 Class java.lang.IllegalAccessException
3 7 14 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 sun.misc.Service.providers:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/Iterator;
astore 0
start local 0 3: StackMap locals: java.util.Iterator
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
4: iconst_0
ireturn
5: 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;
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack: sun.misc.ServiceConfigurationError
astore 1
start local 1 8: aload 1
invokevirtual sun.misc.ServiceConfigurationError.getCause:()Ljava/lang/Throwable;
instanceof java.lang.SecurityException
ifeq 10
9: goto 3
10: StackMap locals: sun.misc.ServiceConfigurationError
StackMap stack:
aload 1
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
3 11 0 i Ljava/util/Iterator<Lcom/sun/net/httpserver/spi/HttpServerProvider;>;
8 11 1 sce Lsun/misc/ServiceConfigurationError;
Exception table:
from to target type
3 4 7 Class sun.misc.ServiceConfigurationError
5 6 7 Class sun.misc.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