public class org.eclipse.jetty.util.HostPort
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.HostPort
super_class: java.lang.Object
{
private static final boolean STRIP_IPV6;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String _host;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int _port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "org.eclipse.jetty.util.HostPort.STRIP_IPV6"
ldc "false"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic org.eclipse.jetty.util.HostPort.STRIP_IPV6:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
2: aload 0
iload 2
putfield org.eclipse.jetty.util.HostPort._port:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/HostPort;
0 4 1 host Ljava/lang/String;
0 4 2 port I
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
host
port
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "No Authority"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.eclipse.jetty.util.HostPort java.lang.String
StackMap stack:
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 7
4: aload 0
aload 1
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
5: aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
6: goto 37
7: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpne 21
8: aload 1
bipush 93
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 9: iload 2
ifge 11
10: new java.lang.IllegalArgumentException
dup
ldc "Bad IPv6 host"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: int
StackMap stack:
aload 0
getstatic org.eclipse.jetty.util.HostPort.STRIP_IPV6:Z
ifeq 12
aload 1
iconst_1
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 13
StackMap locals:
StackMap stack: org.eclipse.jetty.util.HostPort
12: aload 1
iconst_0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
StackMap locals: org.eclipse.jetty.util.HostPort java.lang.String int
StackMap stack: org.eclipse.jetty.util.HostPort java.lang.String
13: putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
14: aload 1
invokevirtual java.lang.String.length:()I
iload 2
iconst_1
iadd
if_icmple 19
15: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpeq 17
16: new java.lang.IllegalArgumentException
dup
ldc "Bad IPv6 port"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iconst_2
iadd
invokestatic org.eclipse.jetty.util.StringUtil.toInt:(Ljava/lang/String;I)I
putfield org.eclipse.jetty.util.HostPort._port:I
18: goto 37
19: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
end local 2 20: goto 37
21: StackMap locals:
StackMap stack:
aload 1
bipush 58
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 22: iload 2
iflt 30
23: iload 2
aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
if_icmpeq 27
24: aload 0
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
25: aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
26: goto 37
27: StackMap locals: int
StackMap stack:
aload 0
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
28: aload 0
aload 1
iload 2
iconst_1
iadd
invokestatic org.eclipse.jetty.util.StringUtil.toInt:(Ljava/lang/String;I)I
putfield org.eclipse.jetty.util.HostPort._port:I
29: goto 37
30: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
31: aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
end local 2 32: goto 37
33: StackMap locals: org.eclipse.jetty.util.HostPort java.lang.String
StackMap stack: java.lang.IllegalArgumentException
astore 2
start local 2 34: aload 2
athrow
end local 2 35: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 36: new org.eclipse.jetty.util.HostPort$1
dup
aload 0
ldc "Bad HostPort"
aload 2
invokespecial org.eclipse.jetty.util.HostPort$1.<init>:(Lorg/eclipse/jetty/util/HostPort;Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 37: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
ifnonnull 39
38: new java.lang.IllegalArgumentException
dup
ldc "Bad host"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
39: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.HostPort._port:I
ifge 41
40: new java.lang.IllegalArgumentException
dup
ldc "Bad port"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
41: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lorg/eclipse/jetty/util/HostPort;
0 42 1 authority Ljava/lang/String;
9 20 2 close I
22 32 2 c I
34 35 2 iae Ljava/lang/IllegalArgumentException;
36 37 2 ex Ljava/lang/Exception;
Exception table:
from to target type
3 32 33 Class java.lang.IllegalArgumentException
3 32 35 Class java.lang.Exception
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
authority
public java.lang.String getHost();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/HostPort;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.HostPort._port:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/HostPort;
public int getPort(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.util.HostPort._port:I
ifle 1
aload 0
getfield org.eclipse.jetty.util.HostPort._port:I
goto 2
StackMap locals:
StackMap stack:
1: iload 1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/util/HostPort;
0 3 1 defaultPort I
MethodParameters:
Name Flags
defaultPort
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.HostPort._port:I
ifle 2
1: new java.lang.StringBuilder
dup
aload 0
getfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
invokestatic org.eclipse.jetty.util.HostPort.normalizeHost:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.eclipse.jetty.util.HostPort._port:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/util/HostPort;
public static java.lang.String normalizeHost(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifne 1
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpeq 1
aload 0
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
ifge 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 host Ljava/lang/String;
MethodParameters:
Name Flags
host
}
SourceFile: "HostPort.java"
NestMembers:
org.eclipse.jetty.util.HostPort$1
InnerClasses:
org.eclipse.jetty.util.HostPort$1