class sun.net.httpserver.ServerImpl implements sun.net.httpserver.TimeSource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.ServerImpl
super_class: java.lang.Object
{
private java.lang.String protocol;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean https;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.Executor executor;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0002) ACC_PRIVATE
private com.sun.net.httpserver.HttpsConfigurator httpsConfig;
descriptor: Lcom/sun/net/httpserver/HttpsConfigurator;
flags: (0x0002) ACC_PRIVATE
private javax.net.ssl.SSLContext sslContext;
descriptor: Ljavax/net/ssl/SSLContext;
flags: (0x0002) ACC_PRIVATE
private sun.net.httpserver.ContextList contexts;
descriptor: Lsun/net/httpserver/ContextList;
flags: (0x0002) ACC_PRIVATE
private java.net.InetSocketAddress address;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.ServerSocketChannel schan;
descriptor: Ljava/nio/channels/ServerSocketChannel;
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.Selector selector;
descriptor: Ljava/nio/channels/Selector;
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.SelectionKey listenerKey;
descriptor: Ljava/nio/channels/SelectionKey;
flags: (0x0002) ACC_PRIVATE
private java.util.Set<sun.net.httpserver.HttpConnection> idleConnections;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Lsun/net/httpserver/HttpConnection;>;
private java.util.Set<sun.net.httpserver.HttpConnection> allConnections;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Lsun/net/httpserver/HttpConnection;>;
private java.util.List<sun.net.httpserver.Event> events;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lsun/net/httpserver/Event;>;
private java.lang.Object lolock;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private volatile boolean finished;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean terminating;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private boolean bound;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean started;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private volatile long time;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile long ticks;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private com.sun.net.httpserver.HttpServer wrapper;
descriptor: Lcom/sun/net/httpserver/HttpServer;
flags: (0x0002) ACC_PRIVATE
static final int CLOCK_TICK;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long IDLE_INTERVAL;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int MAX_IDLE_CONNECTIONS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
private java.util.Timer timer;
descriptor: Ljava/util/Timer;
flags: (0x0002) ACC_PRIVATE
private java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x0002) ACC_PRIVATE
sun.net.httpserver.ServerImpl$Dispatcher dispatcher;
descriptor: Lsun/net/httpserver/ServerImpl$Dispatcher;
flags: (0x0000)
static boolean debug;
descriptor: Z
flags: (0x0008) ACC_STATIC
private int exchangeCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/net/httpserver/ServerImpl;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
3: invokestatic sun.net.httpserver.ServerConfig.getClockTick:()I
putstatic sun.net.httpserver.ServerImpl.CLOCK_TICK:I
4: invokestatic sun.net.httpserver.ServerConfig.getIdleInterval:()J
putstatic sun.net.httpserver.ServerImpl.IDLE_INTERVAL:J
5: invokestatic sun.net.httpserver.ServerConfig.getMaxIdleConnections:()I
putstatic sun.net.httpserver.ServerImpl.MAX_IDLE_CONNECTIONS:I
6: invokestatic sun.net.httpserver.ServerConfig.debugEnabled:()Z
putstatic sun.net.httpserver.ServerImpl.debug:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.sun.net.httpserver.HttpServer, java.lang.String, java.net.InetSocketAddress, int);
descriptor: (Lcom/sun/net/httpserver/HttpServer;Ljava/lang/String;Ljava/net/InetSocketAddress;I)V
flags: (0x0000)
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.net.httpserver.ServerImpl.lolock:Ljava/lang/Object;
2: aload 0
iconst_0
putfield sun.net.httpserver.ServerImpl.finished:Z
3: aload 0
iconst_0
putfield sun.net.httpserver.ServerImpl.terminating:Z
4: aload 0
iconst_0
putfield sun.net.httpserver.ServerImpl.bound:Z
5: aload 0
iconst_0
putfield sun.net.httpserver.ServerImpl.started:Z
6: aload 0
iconst_0
putfield sun.net.httpserver.ServerImpl.exchangeCount:I
7: aload 0
aload 2
putfield sun.net.httpserver.ServerImpl.protocol:Ljava/lang/String;
8: aload 0
aload 1
putfield sun.net.httpserver.ServerImpl.wrapper:Lcom/sun/net/httpserver/HttpServer;
9: aload 0
ldc "com.sun.net.httpserver"
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
10: aload 0
aload 2
ldc "https"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
putfield sun.net.httpserver.ServerImpl.https:Z
11: aload 0
aload 3
putfield sun.net.httpserver.ServerImpl.address:Ljava/net/InetSocketAddress;
12: aload 0
new sun.net.httpserver.ContextList
dup
invokespecial sun.net.httpserver.ContextList.<init>:()V
putfield sun.net.httpserver.ServerImpl.contexts:Lsun/net/httpserver/ContextList;
13: aload 0
invokestatic java.nio.channels.ServerSocketChannel.open:()Ljava/nio/channels/ServerSocketChannel;
putfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
14: aload 3
ifnull 18
15: aload 0
getfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
invokevirtual java.nio.channels.ServerSocketChannel.socket:()Ljava/net/ServerSocket;
astore 5
start local 5 16: aload 5
aload 3
iload 4
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;I)V
17: aload 0
iconst_1
putfield sun.net.httpserver.ServerImpl.bound:Z
end local 5 18: StackMap locals: sun.net.httpserver.ServerImpl com.sun.net.httpserver.HttpServer java.lang.String java.net.InetSocketAddress int
StackMap stack:
aload 0
invokestatic java.nio.channels.Selector.open:()Ljava/nio/channels/Selector;
putfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
19: aload 0
getfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
iconst_0
invokevirtual java.nio.channels.ServerSocketChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
20: aload 0
aload 0
getfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
aload 0
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
bipush 16
invokevirtual java.nio.channels.ServerSocketChannel.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
putfield sun.net.httpserver.ServerImpl.listenerKey:Ljava/nio/channels/SelectionKey;
21: aload 0
new sun.net.httpserver.ServerImpl$Dispatcher
dup
aload 0
invokespecial sun.net.httpserver.ServerImpl$Dispatcher.<init>:(Lsun/net/httpserver/ServerImpl;)V
putfield sun.net.httpserver.ServerImpl.dispatcher:Lsun/net/httpserver/ServerImpl$Dispatcher;
22: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
invokestatic java.util.Collections.synchronizedSet:(Ljava/util/Set;)Ljava/util/Set;
putfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
23: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
invokestatic java.util.Collections.synchronizedSet:(Ljava/util/Set;)Ljava/util/Set;
putfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
24: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield sun.net.httpserver.ServerImpl.time:J
25: aload 0
new java.util.Timer
dup
ldc "server-timer"
iconst_1
invokespecial java.util.Timer.<init>:(Ljava/lang/String;Z)V
putfield sun.net.httpserver.ServerImpl.timer:Ljava/util/Timer;
26: aload 0
getfield sun.net.httpserver.ServerImpl.timer:Ljava/util/Timer;
new sun.net.httpserver.ServerImpl$ServerTimerTask
dup
aload 0
invokespecial sun.net.httpserver.ServerImpl$ServerTimerTask.<init>:(Lsun/net/httpserver/ServerImpl;)V
getstatic sun.net.httpserver.ServerImpl.CLOCK_TICK:I
i2l
getstatic sun.net.httpserver.ServerImpl.CLOCK_TICK:I
i2l
invokevirtual java.util.Timer.schedule:(Ljava/util/TimerTask;JJ)V
27: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
28: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "HttpServer created "
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 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
29: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/net/httpserver/ServerImpl;
0 30 1 wrapper Lcom/sun/net/httpserver/HttpServer;
0 30 2 protocol Ljava/lang/String;
0 30 3 addr Ljava/net/InetSocketAddress;
0 30 4 backlog I
16 18 5 socket Ljava/net/ServerSocket;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
wrapper
protocol
addr
backlog
public void bind(java.net.InetSocketAddress, int);
descriptor: (Ljava/net/InetSocketAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.net.httpserver.ServerImpl.bound:Z
ifeq 2
1: new java.net.BindException
dup
ldc "HttpServer already bound"
invokespecial java.net.BindException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "null address"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
invokevirtual java.nio.channels.ServerSocketChannel.socket:()Ljava/net/ServerSocket;
astore 3
start local 3 5: aload 3
aload 1
iload 2
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;I)V
6: aload 0
iconst_1
putfield sun.net.httpserver.ServerImpl.bound:Z
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/httpserver/ServerImpl;
0 8 1 addr Ljava/net/InetSocketAddress;
0 8 2 backlog I
5 8 3 socket Ljava/net/ServerSocket;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
addr
backlog
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.bound:Z
ifeq 1
aload 0
getfield sun.net.httpserver.ServerImpl.started:Z
ifne 1
aload 0
getfield sun.net.httpserver.ServerImpl.finished:Z
ifeq 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "server in wrong state"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.executor:Ljava/util/concurrent/Executor;
ifnonnull 4
3: aload 0
new sun.net.httpserver.ServerImpl$DefaultExecutor
dup
invokespecial sun.net.httpserver.ServerImpl$DefaultExecutor.<init>:()V
putfield sun.net.httpserver.ServerImpl.executor:Ljava/util/concurrent/Executor;
4: StackMap locals:
StackMap stack:
new java.lang.Thread
dup
aload 0
getfield sun.net.httpserver.ServerImpl.dispatcher:Lsun/net/httpserver/ServerImpl$Dispatcher;
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 1
start local 1 5: aload 0
iconst_1
putfield sun.net.httpserver.ServerImpl.started:Z
6: aload 1
invokevirtual java.lang.Thread.start:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/httpserver/ServerImpl;
5 8 1 t Ljava/lang/Thread;
public void setExecutor(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.ServerImpl.started:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "server already started"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.net.httpserver.ServerImpl.executor:Ljava/util/concurrent/Executor;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/httpserver/ServerImpl;
0 4 1 executor Ljava/util/concurrent/Executor;
MethodParameters:
Name Flags
executor
public java.util.concurrent.Executor getExecutor();
descriptor: ()Ljava/util/concurrent/Executor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.executor:Ljava/util/concurrent/Executor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
public void setHttpsConfigurator(com.sun.net.httpserver.HttpsConfigurator);
descriptor: (Lcom/sun/net/httpserver/HttpsConfigurator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "null HttpsConfigurator"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.started:Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "server already started"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.net.httpserver.ServerImpl.httpsConfig:Lcom/sun/net/httpserver/HttpsConfigurator;
5: aload 0
aload 1
invokevirtual com.sun.net.httpserver.HttpsConfigurator.getSSLContext:()Ljavax/net/ssl/SSLContext;
putfield sun.net.httpserver.ServerImpl.sslContext:Ljavax/net/ssl/SSLContext;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/ServerImpl;
0 7 1 config Lcom/sun/net/httpserver/HttpsConfigurator;
MethodParameters:
Name Flags
config
public com.sun.net.httpserver.HttpsConfigurator getHttpsConfigurator();
descriptor: ()Lcom/sun/net/httpserver/HttpsConfigurator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.httpsConfig:Lcom/sun/net/httpserver/HttpsConfigurator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
public void stop(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "negative delay parameter"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.httpserver.ServerImpl.terminating:Z
3: aload 0
getfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
invokevirtual java.nio.channels.ServerSocketChannel.close:()V
4: goto 6
StackMap locals:
StackMap stack: java.io.IOException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
7: invokestatic java.lang.System.currentTimeMillis:()J
iload 1
sipush 1000
imul
i2l
ladd
lstore 2
start local 2 8: goto 12
9: StackMap locals: long
StackMap stack:
aload 0
invokevirtual sun.net.httpserver.ServerImpl.delay:()V
10: aload 0
getfield sun.net.httpserver.ServerImpl.finished:Z
ifeq 12
11: goto 13
12: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lcmp
iflt 9
13: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.httpserver.ServerImpl.finished:Z
14: aload 0
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
15: aload 0
getfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
dup
astore 4
monitorenter
16: aload 0
getfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 19
StackMap locals: sun.net.httpserver.ServerImpl int long java.util.Set top java.util.Iterator
StackMap stack:
17: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.httpserver.HttpConnection
astore 5
start local 5 18: aload 5
invokevirtual sun.net.httpserver.HttpConnection.close:()V
end local 5 19: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
20: aload 4
monitorexit
21: goto 24
StackMap locals: sun.net.httpserver.ServerImpl int long java.util.Set
StackMap stack: java.lang.Throwable
22: aload 4
monitorexit
23: athrow
24: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
25: aload 0
getfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
26: aload 0
getfield sun.net.httpserver.ServerImpl.timer:Ljava/util/Timer;
invokevirtual java.util.Timer.cancel:()V
27: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/net/httpserver/ServerImpl;
0 28 1 delay I
8 28 2 latest J
18 19 5 c Lsun/net/httpserver/HttpConnection;
Exception table:
from to target type
3 4 5 Class java.io.IOException
16 21 22 any
22 23 22 any
MethodParameters:
Name Flags
delay
public synchronized sun.net.httpserver.HttpContextImpl createContext(java.lang.String, com.sun.net.httpserver.HttpHandler);
descriptor: (Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;)Lsun/net/httpserver/HttpContextImpl;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 1
aload 1
ifnonnull 2
1: StackMap locals:
StackMap stack:
new java.lang.NullPointerException
dup
ldc "null handler, or path parameter"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new sun.net.httpserver.HttpContextImpl
dup
aload 0
getfield sun.net.httpserver.ServerImpl.protocol:Ljava/lang/String;
aload 1
aload 2
aload 0
invokespecial sun.net.httpserver.HttpContextImpl.<init>:(Ljava/lang/String;Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;Lsun/net/httpserver/ServerImpl;)V
astore 3
start local 3 3: aload 0
getfield sun.net.httpserver.ServerImpl.contexts:Lsun/net/httpserver/ContextList;
aload 3
invokevirtual sun.net.httpserver.ContextList.add:(Lsun/net/httpserver/HttpContextImpl;)V
4: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "context created: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/httpserver/ServerImpl;
0 6 1 path Ljava/lang/String;
0 6 2 handler Lcom/sun/net/httpserver/HttpHandler;
3 6 3 context Lsun/net/httpserver/HttpContextImpl;
MethodParameters:
Name Flags
path
handler
public synchronized sun.net.httpserver.HttpContextImpl createContext(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/net/httpserver/HttpContextImpl;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "null path parameter"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new sun.net.httpserver.HttpContextImpl
dup
aload 0
getfield sun.net.httpserver.ServerImpl.protocol:Ljava/lang/String;
aload 1
aconst_null
aload 0
invokespecial sun.net.httpserver.HttpContextImpl.<init>:(Ljava/lang/String;Ljava/lang/String;Lcom/sun/net/httpserver/HttpHandler;Lsun/net/httpserver/ServerImpl;)V
astore 2
start local 2 3: aload 0
getfield sun.net.httpserver.ServerImpl.contexts:Lsun/net/httpserver/ContextList;
aload 2
invokevirtual sun.net.httpserver.ContextList.add:(Lsun/net/httpserver/HttpContextImpl;)V
4: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "context created: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/httpserver/ServerImpl;
0 6 1 path Ljava/lang/String;
3 6 2 context Lsun/net/httpserver/HttpContextImpl;
MethodParameters:
Name Flags
path
public synchronized void removeContext(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "null path parameter"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.contexts:Lsun/net/httpserver/ContextList;
aload 0
getfield sun.net.httpserver.ServerImpl.protocol:Ljava/lang/String;
aload 1
invokevirtual sun.net.httpserver.ContextList.remove:(Ljava/lang/String;Ljava/lang/String;)V
3: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "context removed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/ServerImpl;
0 5 1 path Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
path
public synchronized void removeContext(com.sun.net.httpserver.HttpContext);
descriptor: (Lcom/sun/net/httpserver/HttpContext;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof sun.net.httpserver.HttpContextImpl
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "wrong HttpContext type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.contexts:Lsun/net/httpserver/ContextList;
aload 1
checkcast sun.net.httpserver.HttpContextImpl
invokevirtual sun.net.httpserver.ContextList.remove:(Lsun/net/httpserver/HttpContextImpl;)V
3: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "context removed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual com.sun.net.httpserver.HttpContext.getPath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/ServerImpl;
0 5 1 context Lcom/sun/net/httpserver/HttpContext;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
context
public java.net.InetSocketAddress getAddress();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new sun.net.httpserver.ServerImpl$1
dup
aload 0
invokespecial sun.net.httpserver.ServerImpl$1.<init>:(Lsun/net/httpserver/ServerImpl;)V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.InetSocketAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/httpserver/ServerImpl;
java.nio.channels.Selector getSelector();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
void addEvent(sun.net.httpserver.Event);
descriptor: (Lsun/net/httpserver/Event;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.ServerImpl.lolock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.net.httpserver.ServerImpl sun.net.httpserver.Event java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/httpserver/ServerImpl;
0 8 1 r Lsun/net/httpserver/Event;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
r
int resultSize();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.lolock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 1
monitorexit
2: ireturn
3: StackMap locals: sun.net.httpserver.ServerImpl java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/ServerImpl;
Exception table:
from to target type
1 2 3 any
3 4 3 any
static synchronized void dprint(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.net.httpserver.ServerImpl.debug:Z
ifeq 2
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 0
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
static synchronized void dprint(java.lang.Exception);
descriptor: (Ljava/lang/Exception;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.net.httpserver.ServerImpl.debug:Z
ifeq 3
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 0
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
2: aload 0
invokevirtual java.lang.Exception.printStackTrace:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 e Ljava/lang/Exception;
MethodParameters:
Name Flags
e
java.util.logging.Logger getLogger();
descriptor: ()Ljava/util/logging/Logger;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
void logReply(int, java.lang.String, java.lang.String);
descriptor: (ILjava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnonnull 2
1: ldc ""
astore 3
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: iload 1
invokestatic sun.net.httpserver.Code.msg:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 5: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
aload 4
invokevirtual java.util.logging.Logger.fine:(Ljava/lang/String;)V
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/ServerImpl;
0 7 1 code I
0 7 2 requestStr Ljava/lang/String;
0 7 3 text Ljava/lang/String;
5 7 4 message Ljava/lang/String;
MethodParameters:
Name Flags
code
requestStr
text
long getTicks();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.ticks:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
public long getTime();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.time:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
void delay();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.yield:()V
1: ldc 200
invokestatic java.lang.Thread.sleep:(J)V
2: goto 4
StackMap locals:
StackMap stack: java.lang.InterruptedException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/ServerImpl;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
synchronized void startExchange();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield sun.net.httpserver.ServerImpl.exchangeCount:I
iconst_1
iadd
putfield sun.net.httpserver.ServerImpl.exchangeCount:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/httpserver/ServerImpl;
synchronized int endExchange();
descriptor: ()I
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield sun.net.httpserver.ServerImpl.exchangeCount:I
iconst_1
isub
putfield sun.net.httpserver.ServerImpl.exchangeCount:I
1: getstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.net.httpserver.ServerImpl.exchangeCount:I
ifge 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.exchangeCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/ServerImpl;
com.sun.net.httpserver.HttpServer getWrapper();
descriptor: ()Lcom/sun/net/httpserver/HttpServer;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ServerImpl.wrapper:Lcom/sun/net/httpserver/HttpServer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ServerImpl;
}
SourceFile: "ServerImpl.java"
NestMembers:
sun.net.httpserver.ServerImpl$1 sun.net.httpserver.ServerImpl$DefaultExecutor sun.net.httpserver.ServerImpl$Dispatcher sun.net.httpserver.ServerImpl$Exchange sun.net.httpserver.ServerImpl$Exchange$LinkHandler sun.net.httpserver.ServerImpl$ServerTimerTask
InnerClasses:
sun.net.httpserver.ServerImpl$1
private DefaultExecutor = sun.net.httpserver.ServerImpl$DefaultExecutor of sun.net.httpserver.ServerImpl
Dispatcher = sun.net.httpserver.ServerImpl$Dispatcher of sun.net.httpserver.ServerImpl
Exchange = sun.net.httpserver.ServerImpl$Exchange of sun.net.httpserver.ServerImpl
ServerTimerTask = sun.net.httpserver.ServerImpl$ServerTimerTask of sun.net.httpserver.ServerImpl