class sun.net.httpserver.ServerImpl$Dispatcher implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.ServerImpl$Dispatcher
super_class: java.lang.Object
{
final java.util.LinkedList<sun.net.httpserver.HttpConnection> connsToRegister;
descriptor: Ljava/util/LinkedList;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/LinkedList<Lsun/net/httpserver/HttpConnection;>;
final sun.net.httpserver.ServerImpl this$0;
descriptor: Lsun/net/httpserver/ServerImpl;
flags: (0x1010) ACC_FINAL, 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=1, 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$Dispatcher.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.net.httpserver.ServerImpl);
descriptor: (Lsun/net/httpserver/ServerImpl;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.httpserver.ServerImpl$Dispatcher.connsToRegister:Ljava/util/LinkedList;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/httpserver/ServerImpl$Dispatcher;
MethodParameters:
Name Flags
this$0 final
private void handleEvent(sun.net.httpserver.Event);
descriptor: (Lsun/net/httpserver/Event;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
getfield sun.net.httpserver.Event.exchange:Lsun/net/httpserver/ExchangeImpl;
astore 2
start local 2 1: aload 2
invokevirtual sun.net.httpserver.ExchangeImpl.getConnection:()Lsun/net/httpserver/HttpConnection;
astore 3
start local 3 2: aload 1
instanceof sun.net.httpserver.WriteFinishedEvent
ifeq 25
3: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
invokevirtual sun.net.httpserver.ServerImpl.endExchange:()I
istore 4
start local 4 4: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.terminating:Z
ifeq 6
iload 4
ifne 6
5: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
iconst_1
putfield sun.net.httpserver.ServerImpl.finished:Z
6: StackMap locals: sun.net.httpserver.ExchangeImpl sun.net.httpserver.HttpConnection int
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 3
invokevirtual sun.net.httpserver.ServerImpl.responseCompleted:(Lsun/net/httpserver/HttpConnection;)V
7: aload 2
invokevirtual sun.net.httpserver.ExchangeImpl.getOriginalInputStream:()Lsun/net/httpserver/LeftOverInputStream;
astore 5
start local 5 8: aload 5
invokevirtual sun.net.httpserver.LeftOverInputStream.isEOF:()Z
ifne 10
9: aload 2
iconst_1
putfield sun.net.httpserver.ExchangeImpl.close:Z
10: StackMap locals: sun.net.httpserver.LeftOverInputStream
StackMap stack:
aload 2
getfield sun.net.httpserver.ExchangeImpl.close:Z
ifne 11
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
getstatic sun.net.httpserver.ServerImpl.MAX_IDLE_CONNECTIONS:I
if_icmplt 14
11: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.net.httpserver.HttpConnection.close:()V
12: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
aload 3
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
13: goto 25
14: StackMap locals:
StackMap stack:
aload 5
invokevirtual sun.net.httpserver.LeftOverInputStream.isDataBuffered:()Z
ifeq 18
15: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 3
invokevirtual sun.net.httpserver.ServerImpl.requestStarted:(Lsun/net/httpserver/HttpConnection;)V
16: aload 0
aload 3
invokevirtual sun.net.httpserver.HttpConnection.getChannel:()Ljava/nio/channels/SocketChannel;
aload 3
invokevirtual sun.net.httpserver.ServerImpl$Dispatcher.handle:(Ljava/nio/channels/SocketChannel;Lsun/net/httpserver/HttpConnection;)V
17: goto 25
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.connsToRegister:Ljava/util/LinkedList;
aload 3
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 4 19: goto 25
StackMap locals: sun.net.httpserver.ServerImpl$Dispatcher sun.net.httpserver.Event sun.net.httpserver.ExchangeImpl sun.net.httpserver.HttpConnection
StackMap stack: java.io.IOException
20: astore 4
start local 4 21: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
22: getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher (1)"
aload 4
23: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
24: aload 3
invokevirtual sun.net.httpserver.HttpConnection.close:()V
end local 4 25: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/net/httpserver/ServerImpl$Dispatcher;
0 26 1 r Lsun/net/httpserver/Event;
1 26 2 t Lsun/net/httpserver/ExchangeImpl;
2 26 3 c Lsun/net/httpserver/HttpConnection;
4 19 4 exchanges I
8 19 5 is Lsun/net/httpserver/LeftOverInputStream;
21 25 4 e Ljava/io/IOException;
Exception table:
from to target type
2 19 20 Class java.io.IOException
MethodParameters:
Name Flags
r
void reRegister(sun.net.httpserver.HttpConnection);
descriptor: (Lsun/net/httpserver/HttpConnection;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.net.httpserver.HttpConnection.getChannel:()Ljava/nio/channels/SocketChannel;
astore 2
start local 2 1: aload 2
iconst_0
invokevirtual java.nio.channels.SocketChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
2: aload 2
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
iconst_1
invokevirtual java.nio.channels.SocketChannel.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
astore 3
start local 3 3: aload 3
aload 1
invokevirtual java.nio.channels.SelectionKey.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 1
aload 3
putfield sun.net.httpserver.HttpConnection.selectionKey:Ljava/nio/channels/SelectionKey;
5: aload 1
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
getstatic sun.net.httpserver.ServerImpl.IDLE_INTERVAL:J
ladd
putfield sun.net.httpserver.HttpConnection.time:J
6: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 3 end local 2 7: goto 12
StackMap locals:
StackMap stack: java.io.IOException
8: astore 2
start local 2 9: aload 2
invokestatic sun.net.httpserver.ServerImpl.dprint:(Ljava/lang/Exception;)V
10: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher(8)"
aload 2
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
11: aload 1
invokevirtual sun.net.httpserver.HttpConnection.close:()V
end local 2 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$Dispatcher;
0 13 1 c Lsun/net/httpserver/HttpConnection;
1 7 2 chan Ljava/nio/channels/SocketChannel;
3 7 3 key Ljava/nio/channels/SelectionKey;
9 12 2 e Ljava/io/IOException;
Exception table:
from to target type
0 7 8 Class java.io.IOException
MethodParameters:
Name Flags
c
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: goto 66
1: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 2: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.lolock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 6
4: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
astore 1
5: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.httpserver.ServerImpl.events:Ljava/util/List;
6: StackMap locals: java.util.List java.lang.Object
StackMap stack:
aload 2
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 2
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
aload 1
ifnull 15
11: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 14
StackMap locals: sun.net.httpserver.ServerImpl$Dispatcher java.util.List top java.util.Iterator
StackMap stack:
12: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.httpserver.Event
astore 2
start local 2 13: aload 0
aload 2
invokevirtual sun.net.httpserver.ServerImpl$Dispatcher.handleEvent:(Lsun/net/httpserver/Event;)V
end local 2 14: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: StackMap locals: sun.net.httpserver.ServerImpl$Dispatcher java.util.List
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.connsToRegister:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 3
goto 18
StackMap locals: sun.net.httpserver.ServerImpl$Dispatcher java.util.List top java.util.Iterator
StackMap stack:
16: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.httpserver.HttpConnection
astore 2
start local 2 17: aload 0
aload 2
invokevirtual sun.net.httpserver.ServerImpl$Dispatcher.reRegister:(Lsun/net/httpserver/HttpConnection;)V
end local 2 18: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
19: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.connsToRegister:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.clear:()V
20: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
ldc 1000
invokevirtual java.nio.channels.Selector.select:(J)I
pop
21: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
astore 2
start local 2 22: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 23: goto 57
24: StackMap locals: sun.net.httpserver.ServerImpl$Dispatcher java.util.List java.util.Set java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.channels.SelectionKey
astore 4
start local 4 25: aload 3
invokeinterface java.util.Iterator.remove:()V
26: aload 4
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.listenerKey:Ljava/nio/channels/SelectionKey;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 43
27: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.terminating:Z
ifeq 29
28: goto 57
29: StackMap locals: java.nio.channels.SelectionKey
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.schan:Ljava/nio/channels/ServerSocketChannel;
invokevirtual java.nio.channels.ServerSocketChannel.accept:()Ljava/nio/channels/SocketChannel;
astore 5
start local 5 30: invokestatic sun.net.httpserver.ServerConfig.noDelay:()Z
ifeq 32
31: aload 5
invokevirtual java.nio.channels.SocketChannel.socket:()Ljava/net/Socket;
iconst_1
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
32: StackMap locals: java.nio.channels.SocketChannel
StackMap stack:
aload 5
ifnonnull 34
33: goto 57
34: StackMap locals:
StackMap stack:
aload 5
iconst_0
invokevirtual java.nio.channels.SocketChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
35: aload 5
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
iconst_1
invokevirtual java.nio.channels.SocketChannel.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
astore 6
start local 6 36: new sun.net.httpserver.HttpConnection
dup
invokespecial sun.net.httpserver.HttpConnection.<init>:()V
astore 7
start local 7 37: aload 7
aload 6
putfield sun.net.httpserver.HttpConnection.selectionKey:Ljava/nio/channels/SelectionKey;
38: aload 7
aload 5
invokevirtual sun.net.httpserver.HttpConnection.setChannel:(Ljava/nio/channels/SocketChannel;)V
39: aload 6
aload 7
invokevirtual java.nio.channels.SelectionKey.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
40: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 7
invokevirtual sun.net.httpserver.ServerImpl.requestStarted:(Lsun/net/httpserver/HttpConnection;)V
41: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.allConnections:Ljava/util/Set;
aload 7
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 end local 5 42: goto 57
43: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.channels.SelectionKey.isReadable:()Z
ifeq 52
44: aload 4
invokevirtual java.nio.channels.SelectionKey.channel:()Ljava/nio/channels/SelectableChannel;
checkcast java.nio.channels.SocketChannel
astore 5
start local 5 45: aload 4
invokevirtual java.nio.channels.SelectionKey.attachment:()Ljava/lang/Object;
checkcast sun.net.httpserver.HttpConnection
astore 6
start local 6 46: aload 4
invokevirtual java.nio.channels.SelectionKey.cancel:()V
47: aload 5
iconst_1
invokevirtual java.nio.channels.SocketChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
48: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.idleConnections:Ljava/util/Set;
aload 6
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
ifeq 50
49: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 6
invokevirtual sun.net.httpserver.ServerImpl.requestStarted:(Lsun/net/httpserver/HttpConnection;)V
50: StackMap locals: java.nio.channels.SocketChannel sun.net.httpserver.HttpConnection
StackMap stack:
aload 0
aload 5
aload 6
invokevirtual sun.net.httpserver.ServerImpl$Dispatcher.handle:(Ljava/nio/channels/SocketChannel;Lsun/net/httpserver/HttpConnection;)V
end local 6 end local 5 51: goto 57
52: StackMap locals:
StackMap stack:
getstatic sun.net.httpserver.ServerImpl$Dispatcher.$assertionsDisabled:Z
ifne 57
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
53: StackMap locals:
StackMap stack: java.nio.channels.CancelledKeyException
pop
54: aload 0
aload 4
aconst_null
invokevirtual sun.net.httpserver.ServerImpl$Dispatcher.handleException:(Ljava/nio/channels/SelectionKey;Ljava/lang/Exception;)V
goto 57
55: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 56: aload 0
aload 4
aload 5
invokevirtual sun.net.httpserver.ServerImpl$Dispatcher.handleException:(Ljava/nio/channels/SelectionKey;Ljava/lang/Exception;)V
end local 5 end local 4 57: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 24
58: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.selectNow:()I
pop
end local 3 end local 2 end local 1 59: goto 66
StackMap locals: sun.net.httpserver.ServerImpl$Dispatcher
StackMap stack: java.io.IOException
60: astore 1
start local 1 61: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher (4)"
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 62: goto 66
63: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 64: aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
65: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher (7)"
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 66: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.finished:Z
ifeq 1
67: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 68 0 this Lsun/net/httpserver/ServerImpl$Dispatcher;
2 59 1 list Ljava/util/List<Lsun/net/httpserver/Event;>;
13 14 2 r Lsun/net/httpserver/Event;
17 18 2 c Lsun/net/httpserver/HttpConnection;
22 59 2 selected Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
23 59 3 iter Ljava/util/Iterator<Ljava/nio/channels/SelectionKey;>;
25 57 4 key Ljava/nio/channels/SelectionKey;
30 42 5 chan Ljava/nio/channels/SocketChannel;
36 42 6 newkey Ljava/nio/channels/SelectionKey;
37 42 7 c Lsun/net/httpserver/HttpConnection;
45 51 5 chan Ljava/nio/channels/SocketChannel;
46 51 6 conn Lsun/net/httpserver/HttpConnection;
56 57 5 e Ljava/io/IOException;
61 62 1 e Ljava/io/IOException;
64 66 1 e Ljava/lang/Exception;
Exception table:
from to target type
3 7 8 any
8 9 8 any
43 53 53 Class java.nio.channels.CancelledKeyException
43 53 55 Class java.io.IOException
1 59 60 Class java.io.IOException
1 59 63 Class java.lang.Exception
private void handleException(java.nio.channels.SelectionKey, java.lang.Exception);
descriptor: (Ljava/nio/channels/SelectionKey;Ljava/lang/Exception;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.channels.SelectionKey.attachment:()Ljava/lang/Object;
checkcast sun.net.httpserver.HttpConnection
astore 3
start local 3 1: aload 2
ifnull 3
2: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher (2)"
aload 2
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
3: StackMap locals: sun.net.httpserver.HttpConnection
StackMap stack:
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 3
invokevirtual sun.net.httpserver.ServerImpl.closeConnection:(Lsun/net/httpserver/HttpConnection;)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/ServerImpl$Dispatcher;
0 5 1 key Ljava/nio/channels/SelectionKey;
0 5 2 e Ljava/lang/Exception;
1 5 3 conn Lsun/net/httpserver/HttpConnection;
MethodParameters:
Name Flags
key
e
public void handle(java.nio.channels.SocketChannel, sun.net.httpserver.HttpConnection);
descriptor: (Ljava/nio/channels/SocketChannel;Lsun/net/httpserver/HttpConnection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new sun.net.httpserver.ServerImpl$Exchange
dup
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 1
aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.protocol:Ljava/lang/String;
aload 2
invokespecial sun.net.httpserver.ServerImpl$Exchange.<init>:(Lsun/net/httpserver/ServerImpl;Ljava/nio/channels/SocketChannel;Ljava/lang/String;Lsun/net/httpserver/HttpConnection;)V
astore 3
start local 3 1: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.executor:Ljava/util/concurrent/Executor;
aload 3
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
end local 3 2: goto 10
StackMap locals:
StackMap stack: sun.net.httpserver.HttpError
3: astore 3
start local 3 4: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher (4)"
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
5: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 2
invokevirtual sun.net.httpserver.ServerImpl.closeConnection:(Lsun/net/httpserver/HttpConnection;)V
end local 3 6: goto 10
7: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 8: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
getfield sun.net.httpserver.ServerImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINER:Ljava/util/logging/Level;
ldc "Dispatcher (5)"
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
9: aload 0
getfield sun.net.httpserver.ServerImpl$Dispatcher.this$0:Lsun/net/httpserver/ServerImpl;
aload 2
invokevirtual sun.net.httpserver.ServerImpl.closeConnection:(Lsun/net/httpserver/HttpConnection;)V
end local 3 10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/httpserver/ServerImpl$Dispatcher;
0 11 1 chan Ljava/nio/channels/SocketChannel;
0 11 2 conn Lsun/net/httpserver/HttpConnection;
1 2 3 t Lsun/net/httpserver/ServerImpl$Exchange;
4 6 3 e1 Lsun/net/httpserver/HttpError;
8 10 3 e Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class sun.net.httpserver.HttpError
0 2 7 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
chan
conn
}
SourceFile: "ServerImpl.java"
NestHost: sun.net.httpserver.ServerImpl
InnerClasses:
Dispatcher = sun.net.httpserver.ServerImpl$Dispatcher of sun.net.httpserver.ServerImpl
Exchange = sun.net.httpserver.ServerImpl$Exchange of sun.net.httpserver.ServerImpl