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.Set<sun.net.httpserver.HttpConnection> reqConnections;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Lsun/net/httpserver/HttpConnection;>;
private java.util.Set<sun.net.httpserver.HttpConnection> rspConnections;
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 subticks;
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
static final long TIMER_MILLIS;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long MAX_REQ_TIME;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long MAX_RSP_TIME;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final boolean timer1Enabled;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
private java.util.Timer timer;
descriptor: Ljava/util/Timer;
flags: (0x0002) ACC_PRIVATE
private java.util.Timer timer1;
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
private static volatile int[] $SWITCH_TABLE$sun$net$httpserver$HttpConnection$State;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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=4, 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.getTimerMillis:()J
putstatic sun.net.httpserver.ServerImpl.TIMER_MILLIS:J
7: invokestatic sun.net.httpserver.ServerConfig.getMaxReqTime:()J
invokestatic sun.net.httpserver.ServerImpl.getTimeMillis:(J)J
putstatic sun.net.httpserver.ServerImpl.MAX_REQ_TIME:J
8: invokestatic sun.net.httpserver.ServerConfig.getMaxRspTime:()J
invokestatic sun.net.httpserver.ServerImpl.getTimeMillis:(J)J
putstatic sun.net.httpserver.ServerImpl.MAX_RSP_TIME:J
9: getstatic sun.net.httpserver.ServerImpl.MAX_REQ_TIME:J
ldc -1
lcmp
ifne 10
getstatic sun.net.httpserver.ServerImpl.MAX_RSP_TIME:J
ldc -1
lcmp
ifne 10
iconst_0
goto 11
StackMap locals:
StackMap stack:
10: iconst_1
StackMap locals:
StackMap stack: int
11: putstatic sun.net.httpserver.ServerImpl.timer1Enabled:Z
12: 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
lconst_0
putfield sun.net.httpserver.ServerImpl.subticks:J
7: aload 0
iconst_0
putfield sun.net.httpserver.ServerImpl.exchangeCount:I
8: aload 0
aload 2
putfield sun.net.httpserver.ServerImpl.protocol:Ljava/lang/String;
9: aload 0
aload 1
putfield sun.net.httpserver.ServerImpl.wrapper:Lcom/sun/net/httpserver/HttpServer;
10: 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;
11: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
invokestatic sun.net.httpserver.ServerConfig.checkLegacyProperties:(Ljava/util/logging/Logger;)V
12: aload 0
aload 2
ldc "https"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
putfield sun.net.httpserver.ServerImpl.https:Z
13: aload 0
aload 3
putfield sun.net.httpserver.ServerImpl.address:Ljava/net/InetSocketAddress;
14: 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;
15: aload 0
invokestatic java.nio.channels.ServerSocketChannel.open:()Ljava/nio/channels/ServerSocketChannel;
putfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
16: aload 3
ifnull 20
17: 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 18: aload 5
aload 3
iload 4
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;I)V
19: aload 0
iconst_1
putfield sun.net.httpserver.ServerImpl.bound:Z
end local 5 20: 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;
21: 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
22: 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;
23: 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;
24: 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;
25: 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;
26: 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.reqConnections:Ljava/util/Set;
27: 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.rspConnections:Ljava/util/Set;
28: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield sun.net.httpserver.ServerImpl.time:J
29: 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;
30: 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
31: getstatic sun.net.httpserver.ServerImpl.timer1Enabled:Z
ifeq 37
32: aload 0
new java.util.Timer
dup
ldc "server-timer1"
iconst_1
invokespecial java.util.Timer.<init>:(Ljava/lang/String;Z)V
putfield sun.net.httpserver.ServerImpl.timer1:Ljava/util/Timer;
33: aload 0
getfield sun.net.httpserver.ServerImpl.timer1:Ljava/util/Timer;
new sun.net.httpserver.ServerImpl$ServerTimerTask1
dup
aload 0
invokespecial sun.net.httpserver.ServerImpl$ServerTimerTask1.<init>:(Lsun/net/httpserver/ServerImpl;)V
getstatic sun.net.httpserver.ServerImpl.TIMER_MILLIS:J
getstatic sun.net.httpserver.ServerImpl.TIMER_MILLIS:J
invokevirtual java.util.Timer.schedule:(Ljava/util/TimerTask;JJ)V
34: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "HttpServer timer1 enabled period in ms: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.net.httpserver.ServerImpl.TIMER_MILLIS:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
35: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "MAX_REQ_TIME: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.net.httpserver.ServerImpl.MAX_REQ_TIME:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
36: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
new java.lang.StringBuilder
dup
ldc "MAX_RSP_TIME: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.net.httpserver.ServerImpl.MAX_RSP_TIME:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.config:(Ljava/lang/String;)V
37: StackMap locals:
StackMap stack:
aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
38: 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
39: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lsun/net/httpserver/ServerImpl;
0 40 1 wrapper Lcom/sun/net/httpserver/HttpServer;
0 40 2 protocol Ljava/lang/String;
0 40 3 addr Ljava/net/InetSocketAddress;
0 40 4 backlog I
18 20 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: getstatic sun.net.httpserver.ServerImpl.timer1Enabled:Z
ifeq 29
28: aload 0
getfield sun.net.httpserver.ServerImpl.timer1:Ljava/util/Timer;
invokevirtual java.util.Timer.cancel:()V
29: StackMap locals:
StackMap stack:
return
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 delay I
8 30 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
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;
private void closeConnection(sun.net.httpserver.HttpConnection);
descriptor: (Lsun/net/httpserver/HttpConnection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.net.httpserver.HttpConnection.close:()V
1: aload 0
getfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: invokestatic sun.net.httpserver.ServerImpl.$SWITCH_TABLE$sun$net$httpserver$HttpConnection$State:()[I
aload 1
invokevirtual sun.net.httpserver.HttpConnection.getState:()Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection$State.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 7
2: 3
3: 5
default: 8
}
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.reqConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.rspConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
8: StackMap locals:
StackMap stack:
getstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
ifne 10
9: aload 0
getfield sun.net.httpserver.ServerImpl.reqConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
ifeq 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
getstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
ifne 11
aload 0
getfield sun.net.httpserver.ServerImpl.rspConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
ifeq 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals:
StackMap stack:
getstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
ifne 12
aload 0
getfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
ifeq 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/net/httpserver/ServerImpl;
0 13 1 conn Lsun/net/httpserver/HttpConnection;
MethodParameters:
Name Flags
conn
void logReply(int, java.lang.String, java.lang.String);
descriptor: (ILjava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 3
ifnonnull 4
3: ldc ""
astore 3
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.String.length:()I
bipush 80
if_icmple 7
5: new java.lang.StringBuilder
dup
aload 2
iconst_0
bipush 80
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "<TRUNCATED>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 6: goto 8
end local 4 7: StackMap locals:
StackMap stack:
aload 2
astore 4
start local 4 8: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 4
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;
9: 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;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 11: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
aload 5
invokevirtual java.util.logging.Logger.fine:(Ljava/lang/String;)V
12: return
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 13 0 this Lsun/net/httpserver/ServerImpl;
0 13 1 code I
0 13 2 requestStr Ljava/lang/String;
0 13 3 text Ljava/lang/String;
6 7 4 r Ljava/lang/String;
8 13 4 r Ljava/lang/String;
11 13 5 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;
void requestStarted(sun.net.httpserver.HttpConnection);
descriptor: (Lsun/net/httpserver/HttpConnection;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
putfield sun.net.httpserver.HttpConnection.creationTime:J
1: aload 1
getstatic sun.net.httpserver.HttpConnection$State.REQUEST:Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection.setState:(Lsun/net/httpserver/HttpConnection$State;)V
2: aload 0
getfield sun.net.httpserver.ServerImpl.reqConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
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 c Lsun/net/httpserver/HttpConnection;
MethodParameters:
Name Flags
c
void requestCompleted(sun.net.httpserver.HttpConnection);
descriptor: (Lsun/net/httpserver/HttpConnection;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual sun.net.httpserver.HttpConnection.getState:()Lsun/net/httpserver/HttpConnection$State;
getstatic sun.net.httpserver.HttpConnection$State.REQUEST:Lsun/net/httpserver/HttpConnection$State;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.reqConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: aload 1
aload 0
invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
putfield sun.net.httpserver.HttpConnection.rspStartedTime:J
3: aload 0
getfield sun.net.httpserver.ServerImpl.rspConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: aload 1
getstatic sun.net.httpserver.HttpConnection$State.RESPONSE:Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection.setState:(Lsun/net/httpserver/HttpConnection$State;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/httpserver/ServerImpl;
0 6 1 c Lsun/net/httpserver/HttpConnection;
MethodParameters:
Name Flags
c
void responseCompleted(sun.net.httpserver.HttpConnection);
descriptor: (Lsun/net/httpserver/HttpConnection;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.net.httpserver.ServerImpl.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual sun.net.httpserver.HttpConnection.getState:()Lsun/net/httpserver/HttpConnection$State;
getstatic sun.net.httpserver.HttpConnection$State.RESPONSE:Lsun/net/httpserver/HttpConnection$State;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl.rspConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: aload 1
getstatic sun.net.httpserver.HttpConnection$State.IDLE:Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection.setState:(Lsun/net/httpserver/HttpConnection$State;)V
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 c Lsun/net/httpserver/HttpConnection;
MethodParameters:
Name Flags
c
void logStackTrace(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
aload 1
invokevirtual java.util.logging.Logger.finest:(Ljava/lang/String;)V
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 2: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: java.lang.StringBuilder java.lang.StackTraceElement[] int
StackMap stack:
aload 2
aload 3
iload 4
aaload
invokevirtual java.lang.StackTraceElement.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 3
arraylength
if_icmplt 5
end local 4 8: aload 0
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.finest:(Ljava/lang/String;)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/httpserver/ServerImpl;
0 10 1 s Ljava/lang/String;
2 10 2 b Ljava/lang/StringBuilder;
3 10 3 e [Ljava/lang/StackTraceElement;
4 8 4 i I
MethodParameters:
Name Flags
s
static long getTimeMillis(long);
descriptor: (J)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc -1
lcmp
ifne 2
1: ldc -1
lreturn
2: StackMap locals:
StackMap stack:
lload 0
ldc 1000
lmul
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 secs J
MethodParameters:
Name Flags
secs
static int[] $SWITCH_TABLE$sun$net$httpserver$HttpConnection$State();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic sun.net.httpserver.ServerImpl.$SWITCH_TABLE$sun$net$httpserver$HttpConnection$State:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic sun.net.httpserver.HttpConnection$State.values:()[Lsun/net/httpserver/HttpConnection$State;
arraylength
newarray 10
astore 0
2: aload 0
getstatic sun.net.httpserver.HttpConnection$State.IDLE:Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection$State.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic sun.net.httpserver.HttpConnection$State.REQUEST:Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection$State.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic sun.net.httpserver.HttpConnection$State.RESPONSE:Lsun/net/httpserver/HttpConnection$State;
invokevirtual sun.net.httpserver.HttpConnection$State.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic sun.net.httpserver.ServerImpl.$SWITCH_TABLE$sun$net$httpserver$HttpConnection$State:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
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 sun.net.httpserver.ServerImpl$ServerTimerTask1
InnerClasses:
public final State = sun.net.httpserver.HttpConnection$State of sun.net.httpserver.HttpConnection
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
ServerTimerTask1 = sun.net.httpserver.ServerImpl$ServerTimerTask1 of sun.net.httpserver.ServerImpl