public class org.eclipse.jetty.server.handler.ThreadLimitHandler extends org.eclipse.jetty.server.handler.HandlerWrapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.server.handler.ThreadLimitHandler
super_class: org.eclipse.jetty.server.handler.HandlerWrapper
{
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
private static final java.lang.String REMOTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "o.e.j.s.h.TLH.REMOTE"
private static final java.lang.String PERMIT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "o.e.j.s.h.TLH.PASS"
private final boolean _rfc7239;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String _forwardedHeader;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.eclipse.jetty.util.IncludeExcludeSet<java.lang.String, java.net.InetAddress> _includeExcludeSet;
descriptor: Lorg/eclipse/jetty/util/IncludeExcludeSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/jetty/util/IncludeExcludeSet<Ljava/lang/String;Ljava/net/InetAddress;>;
private final java.util.concurrent.ConcurrentMap<java.lang.String, org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote> _remotes;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$Remote;>;
private volatile boolean _enabled;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private int _threadLimit;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
iconst_0
invokespecial org.eclipse.jetty.server.handler.ThreadLimitHandler.<init>:(Ljava/lang/String;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.eclipse.jetty.http.HttpHeader.FORWARDED:Lorg/eclipse/jetty/http/HttpHeader;
aload 1
invokevirtual org.eclipse.jetty.http.HttpHeader.is:(Ljava/lang/String;)Z
invokespecial org.eclipse.jetty.server.handler.ThreadLimitHandler.<init>:(Ljava/lang/String;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 2 1 forwardedHeader Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
org.eclipse.jetty.util.annotation.Name(value = "forwardedHeader")
MethodParameters:
Name Flags
forwardedHeader
public void <init>(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.eclipse.jetty.server.handler.HandlerWrapper.<init>:()V
1: aload 0
new org.eclipse.jetty.util.IncludeExcludeSet
dup
ldc Lorg/eclipse/jetty/util/InetAddressSet;
invokespecial org.eclipse.jetty.util.IncludeExcludeSet.<init>:(Ljava/lang/Class;)V
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._remotes:Ljava/util/concurrent/ConcurrentMap;
3: aload 0
bipush 10
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._threadLimit:I
4: aload 0
iload 2
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._rfc7239:Z
5: aload 0
aload 1
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._forwardedHeader:Ljava/lang/String;
6: aload 0
iconst_1
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._enabled:Z
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 8 1 forwardedHeader Ljava/lang/String;
0 8 2 rfc7239 Z
RuntimeVisibleParameterAnnotations:
0:
org.eclipse.jetty.util.annotation.Name(value = "forwardedHeader")
1:
org.eclipse.jetty.util.annotation.Name(value = "rfc7239")
MethodParameters:
Name Flags
forwardedHeader
rfc7239
protected void doStart();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.eclipse.jetty.server.handler.HandlerWrapper.doStart:()V
1: getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "ThreadLimitHandler enable=%b limit=%d include=%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._enabled:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_1
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._threadLimit:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokeinterface org.eclipse.jetty.util.log.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
Exceptions:
throws java.lang.Exception
public boolean isEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._enabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedAttribute(value = "true if this handler is enabled")
public void setEnabled(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._enabled:Z
1: getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "ThreadLimitHandler enable=%b limit=%d include=%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._enabled:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_1
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._threadLimit:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokeinterface org.eclipse.jetty.util.log.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 3 1 enabled Z
MethodParameters:
Name Flags
enabled
public int getThreadLimit();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._threadLimit:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedAttribute(value = "The maximum threads that can be dispatched per remote IP")
protected int getThreadLimit(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
invokevirtual org.eclipse.jetty.util.IncludeExcludeSet.isEmpty:()Z
ifne 6
1: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
aload 1
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
invokevirtual org.eclipse.jetty.util.IncludeExcludeSet.test:(Ljava/lang/Object;)Z
ifne 6
2: getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "excluded {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 5: getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 2
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
end local 2 6: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._threadLimit:I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 7 1 ip Ljava/lang/String;
5 6 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
ip
public void setThreadLimit(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "limit must be >0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.eclipse.jetty.server.handler.ThreadLimitHandler._threadLimit:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 4 1 threadLimit I
MethodParameters:
Name Flags
threadLimit
public void include(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
aload 1
invokevirtual org.eclipse.jetty.util.IncludeExcludeSet.include:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 2 1 inetAddressPattern Ljava/lang/String;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedOperation(value = "Include IP in thread limits")
MethodParameters:
Name Flags
inetAddressPattern
public void exclude(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._includeExcludeSet:Lorg/eclipse/jetty/util/IncludeExcludeSet;
aload 1
invokevirtual org.eclipse.jetty.util.IncludeExcludeSet.exclude:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 2 1 inetAddressPattern Ljava/lang/String;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedOperation(value = "Exclude IP from thread limits")
MethodParameters:
Name Flags
inetAddressPattern
public void handle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse);
descriptor: (Ljava/lang/String;Lorg/eclipse/jetty/server/Request;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._enabled:Z
ifne 3
1: aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial org.eclipse.jetty.server.handler.HandlerWrapper.handle:(Ljava/lang/String;Lorg/eclipse/jetty/server/Request;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
2: goto 33
3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler.getRemote:(Lorg/eclipse/jetty/server/Request;)Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$Remote;
astore 5
start local 5 4: aload 5
ifnonnull 7
5: aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial org.eclipse.jetty.server.handler.HandlerWrapper.handle:(Ljava/lang/String;Lorg/eclipse/jetty/server/Request;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
6: goto 33
7: StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
StackMap stack:
aload 2
ldc "o.e.j.s.h.TLH.PASS"
invokevirtual org.eclipse.jetty.server.Request.getAttribute:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.Closeable
astore 6
start local 6 8: aload 6
ifnull 11
9: aload 2
ldc "o.e.j.s.h.TLH.PASS"
invokevirtual org.eclipse.jetty.server.Request.removeAttribute:(Ljava/lang/String;)V
10: goto 23
11: StackMap locals: java.io.Closeable
StackMap stack:
aload 5
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote.acquire:()Ljava/util/concurrent/CompletableFuture;
astore 7
start local 7 12: aload 7
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 15
13: aload 7
invokevirtual java.util.concurrent.CompletableFuture.get:()Ljava/lang/Object;
checkcast java.io.Closeable
astore 6
14: goto 23
15: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack:
getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 17
16: getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Threadlimited {} {}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 1
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
17: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.eclipse.jetty.server.Request.startAsync:()Ljavax/servlet/AsyncContext;
astore 8
start local 8 18: aload 8
lconst_0
invokeinterface javax.servlet.AsyncContext.setTimeout:(J)V
19: aload 7
aload 2
aload 8
invokedynamic accept(Lorg/eclipse/jetty/server/Request;Ljavax/servlet/AsyncContext;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/eclipse/jetty/server/handler/ThreadLimitHandler.lambda$0(Lorg/eclipse/jetty/server/Request;Ljavax/servlet/AsyncContext;Ljava/io/Closeable;)V (6)
(Ljava/io/Closeable;)V
invokevirtual java.util.concurrent.CompletableFuture.thenAccept:(Ljava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;
pop
20: aload 6
ifnull 22
21: aload 6
invokeinterface java.io.Closeable.close:()V
22: StackMap locals: javax.servlet.AsyncContext
StackMap stack:
return
end local 8 end local 7 23: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial org.eclipse.jetty.server.handler.HandlerWrapper.handle:(Ljava/lang/String;Lorg/eclipse/jetty/server/Request;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
24: goto 31
25: StackMap locals:
StackMap stack: java.lang.Exception
astore 7
start local 7 26: new javax.servlet.ServletException
dup
aload 7
invokespecial javax.servlet.ServletException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 27: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
28: aload 6
ifnull 30
29: aload 6
invokeinterface java.io.Closeable.close:()V
30: StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler java.lang.String org.eclipse.jetty.server.Request javax.servlet.http.HttpServletRequest javax.servlet.http.HttpServletResponse org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote java.io.Closeable top top java.lang.Throwable
StackMap stack:
aload 9
athrow
31: StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler java.lang.String org.eclipse.jetty.server.Request javax.servlet.http.HttpServletRequest javax.servlet.http.HttpServletResponse org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote java.io.Closeable
StackMap stack:
aload 6
ifnull 33
32: aload 6
invokeinterface java.io.Closeable.close:()V
end local 6 end local 5 33: StackMap locals:
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/ThreadLimitHandler;
0 34 1 target Ljava/lang/String;
0 34 2 baseRequest Lorg/eclipse/jetty/server/Request;
0 34 3 request Ljavax/servlet/http/HttpServletRequest;
0 34 4 response Ljavax/servlet/http/HttpServletResponse;
4 33 5 remote Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$Remote;
8 33 6 permit Ljava/io/Closeable;
12 23 7 futurePermit Ljava/util/concurrent/CompletableFuture<Ljava/io/Closeable;>;
18 23 8 async Ljavax/servlet/AsyncContext;
26 27 7 e Ljava/lang/Exception;
Exception table:
from to target type
8 20 25 Class java.lang.InterruptedException
23 24 25 Class java.lang.InterruptedException
8 20 25 Class java.util.concurrent.ExecutionException
23 24 25 Class java.util.concurrent.ExecutionException
8 20 27 any
23 27 27 any
Exceptions:
throws java.io.IOException, javax.servlet.ServletException
MethodParameters:
Name Flags
target
baseRequest
request
response
protected org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote getRemote(org.eclipse.jetty.server.Request);
descriptor: (Lorg/eclipse/jetty/server/Request;)Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$Remote;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "o.e.j.s.h.TLH.REMOTE"
invokevirtual org.eclipse.jetty.server.Request.getAttribute:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
areturn
3: StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
StackMap stack:
aload 0
aload 1
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler.getRemoteIP:(Lorg/eclipse/jetty/server/Request;)Ljava/lang/String;
astore 3
start local 3 4: getstatic org.eclipse.jetty.server.handler.ThreadLimitHandler.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "ip={}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
5: aload 3
ifnonnull 7
6: aconst_null
areturn
7: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 3
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler.getThreadLimit:(Ljava/lang/String;)I
istore 4
start local 4 8: iload 4
ifgt 10
9: aconst_null
areturn
10: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._remotes:Ljava/util/concurrent/ConcurrentMap;
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
astore 2
11: aload 2
ifnonnull 16
12: new org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
dup
aload 0
aload 3
iload 4
invokespecial org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote.<init>:(Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;Ljava/lang/String;I)V
astore 5
start local 5 13: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._remotes:Ljava/util/concurrent/ConcurrentMap;
aload 3
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
astore 2
14: aload 2
ifnonnull 16
15: aload 5
astore 2
end local 5 16: StackMap locals:
StackMap stack:
aload 1
ldc "o.e.j.s.h.TLH.REMOTE"
aload 2
invokevirtual org.eclipse.jetty.server.Request.setAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
17: aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 18 1 baseRequest Lorg/eclipse/jetty/server/Request;
1 18 2 remote Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$Remote;
4 18 3 ip Ljava/lang/String;
8 18 4 limit I
13 16 5 r Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$Remote;
MethodParameters:
Name Flags
baseRequest
protected java.lang.String getRemoteIP(org.eclipse.jetty.server.Request);
descriptor: (Lorg/eclipse/jetty/server/Request;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._forwardedHeader:Ljava/lang/String;
ifnull 6
aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._forwardedHeader:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
1: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._rfc7239:Z
ifeq 2
aload 0
aload 1
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler.getForwarded:(Lorg/eclipse/jetty/server/Request;)Ljava/lang/String;
goto 3
StackMap locals:
StackMap stack:
2: aload 0
aload 1
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler.getXForwardedFor:(Lorg/eclipse/jetty/server/Request;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
3: astore 2
start local 2 4: aload 2
ifnull 6
aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
5: aload 2
areturn
end local 2 6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.eclipse.jetty.server.Request.getHttpChannel:()Lorg/eclipse/jetty/server/HttpChannel;
invokevirtual org.eclipse.jetty.server.HttpChannel.getRemoteAddress:()Ljava/net/InetSocketAddress;
astore 2
start local 2 7: aload 2
ifnull 9
aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
ifnull 9
8: aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
areturn
9: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 10 1 baseRequest Lorg/eclipse/jetty/server/Request;
4 6 2 remote Ljava/lang/String;
7 10 2 inetAddr Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
baseRequest
private java.lang.String getForwarded(org.eclipse.jetty.server.Request);
descriptor: (Lorg/eclipse/jetty/server/Request;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239
dup
aload 0
invokespecial org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239.<init>:(Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;)V
astore 2
start local 2 1: aload 1
invokevirtual org.eclipse.jetty.server.Request.getHttpFields:()Lorg/eclipse/jetty/http/HttpFields;
astore 3
start local 3 2: aload 3
invokevirtual org.eclipse.jetty.http.HttpFields.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler org.eclipse.jetty.server.Request org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239 org.eclipse.jetty.http.HttpFields top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.eclipse.jetty.http.HttpField
astore 4
start local 4 4: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._forwardedHeader:Ljava/lang/String;
aload 4
invokevirtual org.eclipse.jetty.http.HttpField.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
5: aload 2
aload 4
invokevirtual org.eclipse.jetty.http.HttpField.getValue:()Ljava/lang/String;
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239.addValue:(Ljava/lang/String;)V
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 2
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239.getFor:()Ljava/lang/String;
ifnull 9
8: new org.eclipse.jetty.http.HostPortHttpField
dup
aload 2
invokevirtual org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239.getFor:()Ljava/lang/String;
invokespecial org.eclipse.jetty.http.HostPortHttpField.<init>:(Ljava/lang/String;)V
invokevirtual org.eclipse.jetty.http.HostPortHttpField.getHost:()Ljava/lang/String;
areturn
9: StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler org.eclipse.jetty.server.Request org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239 org.eclipse.jetty.http.HttpFields
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 10 1 request Lorg/eclipse/jetty/server/Request;
1 10 2 rfc7239 Lorg/eclipse/jetty/server/handler/ThreadLimitHandler$RFC7239;
2 10 3 httpFields Lorg/eclipse/jetty/http/HttpFields;
4 6 4 field Lorg/eclipse/jetty/http/HttpField;
MethodParameters:
Name Flags
request
private java.lang.String getXForwardedFor(org.eclipse.jetty.server.Request);
descriptor: (Lorg/eclipse/jetty/server/Request;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokevirtual org.eclipse.jetty.server.Request.getHttpFields:()Lorg/eclipse/jetty/http/HttpFields;
astore 3
start local 3 2: aload 3
invokevirtual org.eclipse.jetty.http.HttpFields.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler org.eclipse.jetty.server.Request java.lang.String org.eclipse.jetty.http.HttpFields top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.eclipse.jetty.http.HttpField
astore 4
start local 4 4: aload 0
getfield org.eclipse.jetty.server.handler.ThreadLimitHandler._forwardedHeader:Ljava/lang/String;
aload 4
invokevirtual org.eclipse.jetty.http.HttpField.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
5: aload 4
invokevirtual org.eclipse.jetty.http.HttpField.getValue:()Ljava/lang/String;
astore 2
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 2
ifnull 8
aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifeq 9
8: StackMap locals: org.eclipse.jetty.server.handler.ThreadLimitHandler org.eclipse.jetty.server.Request java.lang.String org.eclipse.jetty.http.HttpFields
StackMap stack:
aconst_null
areturn
9: StackMap locals:
StackMap stack:
aload 2
bipush 44
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 10: iload 4
iflt 11
aload 2
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
goto 12
StackMap locals: int
StackMap stack:
11: aload 2
StackMap locals:
StackMap stack: java.lang.String
12: areturn
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 Lorg/eclipse/jetty/server/handler/ThreadLimitHandler;
0 13 1 request Lorg/eclipse/jetty/server/Request;
1 13 2 forwardedFor Ljava/lang/String;
2 13 3 httpFields Lorg/eclipse/jetty/http/HttpFields;
4 6 4 field Lorg/eclipse/jetty/http/HttpField;
10 13 4 comma I
MethodParameters:
Name Flags
request
private static void lambda$0(org.eclipse.jetty.server.Request, javax.servlet.AsyncContext, java.io.Closeable);
descriptor: (Lorg/eclipse/jetty/server/Request;Ljavax/servlet/AsyncContext;Ljava/io/Closeable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 0
ldc "o.e.j.s.h.TLH.PASS"
aload 2
invokevirtual org.eclipse.jetty.server.Request.setAttribute:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 1
invokeinterface javax.servlet.AsyncContext.dispatch:()V
2: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 c Ljava/io/Closeable;
}
SourceFile: "ThreadLimitHandler.java"
NestMembers:
org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239 org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private final RFC7239 = org.eclipse.jetty.server.handler.ThreadLimitHandler$RFC7239 of org.eclipse.jetty.server.handler.ThreadLimitHandler
private final Remote = org.eclipse.jetty.server.handler.ThreadLimitHandler$Remote of org.eclipse.jetty.server.handler.ThreadLimitHandler