public abstract class org.eclipse.jetty.server.handler.AbstractHandlerContainer extends org.eclipse.jetty.server.handler.AbstractHandler implements org.eclipse.jetty.server.HandlerContainer
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.eclipse.jetty.server.handler.AbstractHandlerContainer
super_class: org.eclipse.jetty.server.handler.AbstractHandler
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.server.handler.AbstractHandlerContainer.LOG:Lorg/eclipse/jetty/util/log/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.eclipse.jetty.server.handler.AbstractHandler.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
public org.eclipse.jetty.server.Handler[] getChildHandlers();
descriptor: ()[Lorg/eclipse/jetty/server/Handler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
aconst_null
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.expandChildren:(Ljava/util/List;Ljava/lang/Class;)V
2: aload 1
aload 1
invokeinterface java.util.List.size:()I
anewarray org.eclipse.jetty.server.Handler
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.eclipse.jetty.server.Handler[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
1 3 1 list Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;
public org.eclipse.jetty.server.Handler[] getChildHandlersByClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)[Lorg/eclipse/jetty/server/Handler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 0
aload 2
aload 1
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.expandChildren:(Ljava/util/List;Ljava/lang/Class;)V
2: aload 2
aload 2
invokeinterface java.util.List.size:()I
anewarray org.eclipse.jetty.server.Handler
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.eclipse.jetty.server.Handler[]
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
0 3 1 byclass Ljava/lang/Class<*>;
1 3 2 list Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;
Signature: (Ljava/lang/Class<*>;)[Lorg/eclipse/jetty/server/Handler;
MethodParameters:
Name Flags
byclass
public <T extends org.eclipse.jetty.server.Handler> T getChildHandlerByClass(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lorg/eclipse/jetty/server/Handler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 0
aload 2
aload 1
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.expandChildren:(Ljava/util/List;Ljava/lang/Class;)V
2: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
3: aconst_null
areturn
4: StackMap locals: java.util.List
StackMap stack:
aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.Handler
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
0 5 1 byclass Ljava/lang/Class<TT;>;
1 5 2 list Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;
Signature: <T::Lorg/eclipse/jetty/server/Handler;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
byclass
protected void expandChildren(java.util.List<org.eclipse.jetty.server.Handler>, java.lang.Class<?>);
descriptor: (Ljava/util/List;Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
0 1 1 list Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;
0 1 2 byClass Ljava/lang/Class<*>;
Signature: (Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
list
byClass
protected void expandHandler(org.eclipse.jetty.server.Handler, java.util.List<org.eclipse.jetty.server.Handler>, java.lang.Class<?>);
descriptor: (Lorg/eclipse/jetty/server/Handler;Ljava/util/List;Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 3
ifnull 3
aload 3
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 4
3: StackMap locals:
StackMap stack:
aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 1
instanceof org.eclipse.jetty.server.handler.AbstractHandlerContainer
ifeq 6
5: aload 1
checkcast org.eclipse.jetty.server.handler.AbstractHandlerContainer
aload 2
aload 3
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.expandChildren:(Ljava/util/List;Ljava/lang/Class;)V
goto 12
6: StackMap locals:
StackMap stack:
aload 1
instanceof org.eclipse.jetty.server.HandlerContainer
ifeq 12
7: aload 1
checkcast org.eclipse.jetty.server.HandlerContainer
astore 4
start local 4 8: aload 3
ifnonnull 9
aload 4
invokeinterface org.eclipse.jetty.server.HandlerContainer.getChildHandlers:()[Lorg/eclipse/jetty/server/Handler;
goto 10
StackMap locals: org.eclipse.jetty.server.HandlerContainer
StackMap stack:
9: aload 4
aload 3
invokeinterface org.eclipse.jetty.server.HandlerContainer.getChildHandlersByClass:(Ljava/lang/Class;)[Lorg/eclipse/jetty/server/Handler;
StackMap locals:
StackMap stack: org.eclipse.jetty.server.Handler[]
10: astore 5
start local 5 11: aload 2
aload 5
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 5 end local 4 12: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
0 13 1 handler Lorg/eclipse/jetty/server/Handler;
0 13 2 list Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;
0 13 3 byClass Ljava/lang/Class<*>;
8 12 4 container Lorg/eclipse/jetty/server/HandlerContainer;
11 12 5 handlers [Lorg/eclipse/jetty/server/Handler;
Signature: (Lorg/eclipse/jetty/server/Handler;Ljava/util/List<Lorg/eclipse/jetty/server/Handler;>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
handler
list
byClass
public static <T extends org.eclipse.jetty.server.HandlerContainer> T findContainerOf(org.eclipse.jetty.server.HandlerContainer, java.lang.Class<T>, org.eclipse.jetty.server.Handler);
descriptor: (Lorg/eclipse/jetty/server/HandlerContainer;Ljava/lang/Class;Lorg/eclipse/jetty/server/Handler;)Lorg/eclipse/jetty/server/HandlerContainer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=14, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface org.eclipse.jetty.server.HandlerContainer.getChildHandlersByClass:(Ljava/lang/Class;)[Lorg/eclipse/jetty/server/Handler;
astore 3
start local 3 3: aload 3
ifnull 17
4: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 16
StackMap locals: org.eclipse.jetty.server.HandlerContainer java.lang.Class org.eclipse.jetty.server.Handler org.eclipse.jetty.server.Handler[] top int int org.eclipse.jetty.server.Handler[]
StackMap stack:
5: aload 7
iload 5
aaload
astore 4
start local 4 6: aload 4
checkcast org.eclipse.jetty.server.HandlerContainer
astore 8
start local 8 7: aload 8
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokeinterface org.eclipse.jetty.server.HandlerContainer.getChildHandlersByClass:(Ljava/lang/Class;)[Lorg/eclipse/jetty/server/Handler;
astore 9
start local 9 8: aload 9
ifnull 15
9: aload 9
dup
astore 13
arraylength
istore 12
iconst_0
istore 11
goto 14
StackMap locals: org.eclipse.jetty.server.HandlerContainer java.lang.Class org.eclipse.jetty.server.Handler org.eclipse.jetty.server.Handler[] org.eclipse.jetty.server.Handler int int org.eclipse.jetty.server.Handler[] org.eclipse.jetty.server.HandlerContainer org.eclipse.jetty.server.Handler[] top int int org.eclipse.jetty.server.Handler[]
StackMap stack:
10: aload 13
iload 11
aaload
astore 10
start local 10 11: aload 10
aload 2
if_acmpne 13
12: aload 8
areturn
end local 10 13: StackMap locals:
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
14: iload 11
iload 12
if_icmplt 10
end local 9 end local 8 end local 4 15: StackMap locals: org.eclipse.jetty.server.HandlerContainer java.lang.Class org.eclipse.jetty.server.Handler org.eclipse.jetty.server.Handler[] top int int org.eclipse.jetty.server.Handler[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
16: iload 5
iload 6
if_icmplt 5
17: StackMap locals: org.eclipse.jetty.server.HandlerContainer java.lang.Class org.eclipse.jetty.server.Handler org.eclipse.jetty.server.Handler[]
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 root Lorg/eclipse/jetty/server/HandlerContainer;
0 18 1 type Ljava/lang/Class<TT;>;
0 18 2 handler Lorg/eclipse/jetty/server/Handler;
3 18 3 branches [Lorg/eclipse/jetty/server/Handler;
6 15 4 h Lorg/eclipse/jetty/server/Handler;
7 15 8 container TT;
8 15 9 candidates [Lorg/eclipse/jetty/server/Handler;
11 13 10 c Lorg/eclipse/jetty/server/Handler;
Signature: <T::Lorg/eclipse/jetty/server/HandlerContainer;>(Lorg/eclipse/jetty/server/HandlerContainer;Ljava/lang/Class<TT;>;Lorg/eclipse/jetty/server/Handler;)TT;
MethodParameters:
Name Flags
root
type
handler
public void setServer(org.eclipse.jetty.server.Server);
descriptor: (Lorg/eclipse/jetty/server/Server;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.getServer:()Lorg/eclipse/jetty/server/Server;
if_acmpne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.isStarted:()Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "STARTED"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial org.eclipse.jetty.server.handler.AbstractHandler.setServer:(Lorg/eclipse/jetty/server/Server;)V
5: aload 0
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.getHandlers:()[Lorg/eclipse/jetty/server/Handler;
astore 2
start local 2 6: aload 2
ifnull 12
7: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 11
StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer org.eclipse.jetty.server.Server org.eclipse.jetty.server.Handler[] top int int org.eclipse.jetty.server.Handler[]
StackMap stack:
8: aload 6
iload 4
aaload
astore 3
start local 3 9: aload 3
aload 1
invokeinterface org.eclipse.jetty.server.Handler.setServer:(Lorg/eclipse/jetty/server/Server;)V
end local 3 10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 5
if_icmplt 8
12: StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer org.eclipse.jetty.server.Server org.eclipse.jetty.server.Handler[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
0 13 1 server Lorg/eclipse/jetty/server/Server;
6 13 2 handlers [Lorg/eclipse/jetty/server/Handler;
9 10 3 h Lorg/eclipse/jetty/server/Handler;
MethodParameters:
Name Flags
server
protected void doShutdown(java.util.List<java.util.concurrent.Future<java.lang.Void>>);
descriptor: (Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=11, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
ldc Lorg/eclipse/jetty/util/component/Graceful;
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.getChildHandlersByClass:(Ljava/lang/Class;)[Lorg/eclipse/jetty/server/Handler;
astore 3
start local 3 2: aload 1
ifnonnull 4
3: new java.util.ArrayList
dup
aload 3
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
4: StackMap locals: org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[]
StackMap stack:
aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 8
StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] top int int org.eclipse.jetty.server.Handler[]
StackMap stack:
5: aload 7
iload 5
aaload
astore 4
start local 4 6: aload 1
aload 4
checkcast org.eclipse.jetty.util.component.Graceful
invokeinterface org.eclipse.jetty.util.component.Graceful.shutdown:()Ljava/util/concurrent/Future;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 6
if_icmplt 5
9: aload 0
invokevirtual org.eclipse.jetty.server.handler.AbstractHandlerContainer.getStopTimeout:()J
lstore 4
start local 4 10: lload 4
lconst_0
lcmp
ifle 26
11: invokestatic java.lang.System.currentTimeMillis:()J
lload 4
ladd
lstore 6
start local 6 12: getstatic org.eclipse.jetty.server.handler.AbstractHandlerContainer.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 14
13: getstatic org.eclipse.jetty.server.handler.AbstractHandlerContainer.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Graceful shutdown {} by "
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
new java.util.Date
dup
lload 6
invokespecial java.util.Date.<init>:(J)V
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long long
StackMap stack:
aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 25
StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long long top java.util.Iterator
StackMap stack:
15: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.Future
astore 8
start local 8 16: aload 8
invokeinterface java.util.concurrent.Future.isDone:()Z
ifne 25
17: aload 8
lconst_1
lload 6
invokestatic java.lang.System.currentTimeMillis:()J
lsub
invokestatic java.lang.Math.max:(JJ)J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.Future.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
pop
18: goto 25
19: StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long long java.util.concurrent.Future java.util.Iterator
StackMap stack: java.lang.Exception
astore 10
start local 10 20: aload 8
instanceof org.eclipse.jetty.util.Callback
ifeq 22
aload 8
invokeinterface java.util.concurrent.Future.isDone:()Z
ifne 22
21: aload 8
checkcast org.eclipse.jetty.util.Callback
aload 10
invokeinterface org.eclipse.jetty.util.Callback.failed:(Ljava/lang/Throwable;)V
22: StackMap locals: java.lang.Exception
StackMap stack:
aload 2
ifnonnull 24
23: new org.eclipse.jetty.util.MultiException
dup
invokespecial org.eclipse.jetty.util.MultiException.<init>:()V
astore 2
24: StackMap locals:
StackMap stack:
aload 2
aload 10
invokevirtual org.eclipse.jetty.util.MultiException.add:(Ljava/lang/Throwable;)V
end local 10 end local 8 25: StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long long top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
end local 6 26: StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long
StackMap stack:
aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 30
StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long top java.util.Iterator
StackMap stack:
27: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.Future
astore 6
start local 6 28: aload 6
invokeinterface java.util.concurrent.Future.isDone:()Z
ifne 30
29: aload 6
iconst_1
invokeinterface java.util.concurrent.Future.cancel:(Z)Z
pop
end local 6 30: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 27
31: aload 2
ifnull 33
32: aload 2
invokevirtual org.eclipse.jetty.util.MultiException.ifExceptionThrowMulti:()V
33: StackMap locals: org.eclipse.jetty.server.handler.AbstractHandlerContainer java.util.List org.eclipse.jetty.util.MultiException org.eclipse.jetty.server.Handler[] long
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lorg/eclipse/jetty/server/handler/AbstractHandlerContainer;
0 34 1 futures Ljava/util/List<Ljava/util/concurrent/Future<Ljava/lang/Void;>;>;
1 34 2 mex Lorg/eclipse/jetty/util/MultiException;
2 34 3 gracefuls [Lorg/eclipse/jetty/server/Handler;
6 7 4 graceful Lorg/eclipse/jetty/server/Handler;
10 34 4 stopTimeout J
12 26 6 stopBy J
16 25 8 future Ljava/util/concurrent/Future<Ljava/lang/Void;>;
20 25 10 e Ljava/lang/Exception;
28 30 6 future Ljava/util/concurrent/Future<Ljava/lang/Void;>;
Exception table:
from to target type
16 18 19 Class java.lang.Exception
Exceptions:
throws org.eclipse.jetty.util.MultiException
Signature: (Ljava/util/List<Ljava/util/concurrent/Future<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
futures
}
SourceFile: "AbstractHandlerContainer.java"