public class io.dropwizard.jetty.NetUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.jetty.NetUtil
super_class: java.lang.Object
{
public static final int DEFAULT_TCP_BACKLOG_WINDOWS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 200
public static final int DEFAULT_TCP_BACKLOG_LINUX;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 128
public static final java.lang.String TCP_BACKLOG_SETTING_LOCATION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "/proc/sys/net/core/somaxconn"
private static final java.util.concurrent.atomic.AtomicReference<io.dropwizard.jetty.LocalIpFilter> LOCAL_IP_FILTER;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lio/dropwizard/jetty/LocalIpFilter;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicReference
dup
invokedynamic use()Lio/dropwizard/jetty/LocalIpFilter;
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/net/NetworkInterface;Ljava/net/InetAddress;)Z
io/dropwizard/jetty/NetUtil.lambda$0(Ljava/net/NetworkInterface;Ljava/net/InetAddress;)Z (6)
(Ljava/net/NetworkInterface;Ljava/net/InetAddress;)Z
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
putstatic io.dropwizard.jetty.NetUtil.LOCAL_IP_FILTER:Ljava/util/concurrent/atomic/AtomicReference;
1: 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 java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jetty/NetUtil;
public static int getTcpBacklog();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic io.dropwizard.jetty.NetUtil.getDefaultTcpBacklog:()I
invokestatic io.dropwizard.jetty.NetUtil.getTcpBacklog:(I)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int getTcpBacklog(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokedynamic run(I)Ljava/security/PrivilegedAction;
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;
io/dropwizard/jetty/NetUtil.lambda$1(I)Ljava/lang/Integer; (6)
()Ljava/lang/Integer;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 tcpBacklog I
MethodParameters:
Name Flags
tcpBacklog
public static boolean isWindows();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc "os.name"
ldc ""
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc "win"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
istore 0
start local 0 1: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 windows Z
public static int getDefaultTcpBacklog();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic io.dropwizard.jetty.NetUtil.isWindows:()Z
ifeq 1
sipush 200
goto 2
StackMap locals:
StackMap stack:
1: sipush 128
StackMap locals:
StackMap stack: int
2: ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void setLocalIpFilter(io.dropwizard.jetty.LocalIpFilter);
descriptor: (Lio/dropwizard/jetty/LocalIpFilter;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: getstatic io.dropwizard.jetty.NetUtil.LOCAL_IP_FILTER:Ljava/util/concurrent/atomic/AtomicReference;
aload 0
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 newLocalIpFilter Lio/dropwizard/jetty/LocalIpFilter;
MethodParameters:
Name Flags
newLocalIpFilter
public static io.dropwizard.jetty.LocalIpFilter getLocalIpFilter();
descriptor: ()Lio/dropwizard/jetty/LocalIpFilter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.dropwizard.jetty.NetUtil.LOCAL_IP_FILTER:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.dropwizard.jetty.LocalIpFilter
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.dropwizard.jetty.LocalIpFilter
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Collection<java.net.InetAddress> getAllLocalIPs();
descriptor: ()Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: invokestatic java.net.NetworkInterface.getNetworkInterfaces:()Ljava/util/Enumeration;
astore 1
start local 1 2: aload 1
ifnonnull 11
3: aload 0
areturn
4: StackMap locals: java.util.List java.util.Enumeration
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.NetworkInterface
astore 2
start local 2 5: aload 2
invokevirtual java.net.NetworkInterface.getInetAddresses:()Ljava/util/Enumeration;
astore 3
start local 3 6: goto 10
7: StackMap locals: java.net.NetworkInterface java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 8: invokestatic io.dropwizard.jetty.NetUtil.getLocalIpFilter:()Lio/dropwizard/jetty/LocalIpFilter;
aload 2
aload 4
invokeinterface io.dropwizard.jetty.LocalIpFilter.use:(Ljava/net/NetworkInterface;Ljava/net/InetAddress;)Z
ifeq 10
9: aload 0
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 7
end local 3 end local 2 11: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
12: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 13 0 listAdr Ljava/util/List<Ljava/net/InetAddress;>;
2 13 1 nifs Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;
5 11 2 nif Ljava/net/NetworkInterface;
6 11 3 adrs Ljava/util/Enumeration<Ljava/net/InetAddress;>;
8 10 4 adr Ljava/net/InetAddress;
Exceptions:
throws java.net.SocketException
Signature: ()Ljava/util/Collection<Ljava/net/InetAddress;>;
private static boolean lambda$0(java.net.NetworkInterface, java.net.InetAddress);
descriptor: (Ljava/net/NetworkInterface;Ljava/net/InetAddress;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
aload 1
invokevirtual java.net.InetAddress.isLoopbackAddress:()Z
ifne 2
aload 0
invokevirtual java.net.NetworkInterface.isPointToPoint:()Z
ifne 1
aload 1
invokevirtual java.net.InetAddress.isLinkLocalAddress:()Z
ifne 2
StackMap locals:
StackMap stack:
1: iconst_1
goto 3
StackMap locals:
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 nif Ljava/net/NetworkInterface;
0 4 1 adr Ljava/net/InetAddress;
Exceptions:
throws java.net.SocketException
private static java.lang.Integer lambda$1(int);
descriptor: (I)Ljava/lang/Integer;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=1
0: new java.io.File
dup
ldc "/proc/sys/net/core/somaxconn"
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 1
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 3: aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
4: aload 4
ifnull 5
aload 4
invokevirtual java.io.BufferedReader.close:()V
5: StackMap locals: int java.io.File java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack: java.lang.Integer
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 2
7: aload 4
ifnull 8
aload 4
invokevirtual java.io.BufferedReader.close:()V
end local 4 StackMap locals:
StackMap stack:
8: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
aload 2
ifnonnull 10
aload 3
astore 2
goto 11
StackMap locals:
StackMap stack:
10: aload 2
aload 3
if_acmpeq 11
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 2
athrow
StackMap locals: int java.io.File
StackMap stack: java.lang.Exception
12: pop
13: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
1 14 1 file Ljava/io/File;
3 8 4 in Ljava/io/BufferedReader;
Exception table:
from to target type
3 4 6 any
2 5 9 any
6 9 9 any
1 5 12 Class java.lang.SecurityException
6 12 12 Class java.lang.SecurityException
1 5 12 Class java.io.IOException
6 12 12 Class java.io.IOException
1 5 12 Class java.lang.NumberFormatException
6 12 12 Class java.lang.NumberFormatException
1 5 12 Class java.lang.NullPointerException
6 12 12 Class java.lang.NullPointerException
}
SourceFile: "NetUtil.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles