class sun.net.httpserver.ContextList
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.ContextList
super_class: java.lang.Object
{
static final int MAX_CONTEXTS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 50
java.util.LinkedList<sun.net.httpserver.HttpContextImpl> list;
descriptor: Ljava/util/LinkedList;
flags: (0x0000)
Signature: Ljava/util/LinkedList<Lsun/net/httpserver/HttpContextImpl;>;
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/ContextList;
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.ContextList.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/ContextList;
public synchronized void add(sun.net.httpserver.HttpContextImpl);
descriptor: (Lsun/net/httpserver/HttpContextImpl;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.net.httpserver.ContextList.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual sun.net.httpserver.HttpContextImpl.getPath:()Ljava/lang/String;
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
aload 1
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/ContextList;
0 3 1 ctx Lsun/net/httpserver/HttpContextImpl;
MethodParameters:
Name Flags
ctx
public synchronized int size();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ContextList;
synchronized sun.net.httpserver.HttpContextImpl findContext(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lsun/net/httpserver/HttpContextImpl;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokevirtual sun.net.httpserver.ContextList.findContext:(Ljava/lang/String;Ljava/lang/String;Z)Lsun/net/httpserver/HttpContextImpl;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/ContextList;
0 1 1 protocol Ljava/lang/String;
0 1 2 path Ljava/lang/String;
MethodParameters:
Name Flags
protocol
path
synchronized sun.net.httpserver.HttpContextImpl findContext(java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Z)Lsun/net/httpserver/HttpContextImpl;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 1
1: ldc ""
astore 4
start local 4 2: aconst_null
astore 5
start local 5 3: aload 0
getfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 7
goto 15
StackMap locals: sun.net.httpserver.ContextList java.lang.String java.lang.String int java.lang.String sun.net.httpserver.HttpContextImpl top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.httpserver.HttpContextImpl
astore 6
start local 6 5: aload 6
invokevirtual sun.net.httpserver.HttpContextImpl.getProtocol:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: goto 15
7: StackMap locals: sun.net.httpserver.ContextList java.lang.String java.lang.String int java.lang.String sun.net.httpserver.HttpContextImpl sun.net.httpserver.HttpContextImpl java.util.Iterator
StackMap stack:
aload 6
invokevirtual sun.net.httpserver.HttpContextImpl.getPath:()Ljava/lang/String;
astore 8
start local 8 8: iload 3
ifeq 10
aload 8
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
9: goto 15
10: StackMap locals: java.lang.String
StackMap stack:
iload 3
ifne 12
aload 2
aload 8
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 12
11: goto 15
12: StackMap locals:
StackMap stack:
aload 8
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmple 15
13: aload 8
astore 4
14: aload 6
astore 5
end local 8 end local 6 15: StackMap locals: sun.net.httpserver.ContextList java.lang.String java.lang.String int java.lang.String sun.net.httpserver.HttpContextImpl top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
16: aload 5
areturn
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 17 0 this Lsun/net/httpserver/ContextList;
0 17 1 protocol Ljava/lang/String;
0 17 2 path Ljava/lang/String;
0 17 3 exact Z
2 17 4 longest Ljava/lang/String;
3 17 5 lc Lsun/net/httpserver/HttpContextImpl;
5 15 6 ctx Lsun/net/httpserver/HttpContextImpl;
8 15 8 cpath Ljava/lang/String;
MethodParameters:
Name Flags
protocol
path
exact
public synchronized void remove(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokevirtual sun.net.httpserver.ContextList.findContext:(Ljava/lang/String;Ljava/lang/String;Z)Lsun/net/httpserver/HttpContextImpl;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "cannot remove element from list"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: sun.net.httpserver.HttpContextImpl
StackMap stack:
aload 0
getfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
aload 3
invokevirtual java.util.LinkedList.remove:(Ljava/lang/Object;)Z
pop
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/ContextList;
0 5 1 protocol Ljava/lang/String;
0 5 2 path Ljava/lang/String;
1 5 3 ctx Lsun/net/httpserver/HttpContextImpl;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
protocol
path
public synchronized void remove(sun.net.httpserver.HttpContextImpl);
descriptor: (Lsun/net/httpserver/HttpContextImpl;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: sun.net.httpserver.ContextList sun.net.httpserver.HttpContextImpl top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.httpserver.HttpContextImpl
astore 2
start local 2 2: aload 2
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 5
3: aload 0
getfield sun.net.httpserver.ContextList.list:Ljava/util/LinkedList;
aload 2
invokevirtual java.util.LinkedList.remove:(Ljava/lang/Object;)Z
pop
4: return
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: new java.lang.IllegalArgumentException
dup
ldc "no such context in list"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/ContextList;
0 7 1 context Lsun/net/httpserver/HttpContextImpl;
2 5 2 ctx Lsun/net/httpserver/HttpContextImpl;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
context
}
SourceFile: "ContextList.java"