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 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
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
invokestatic org.eclipse.jetty.util.HostPort.normalizeHost:(Ljava/lang/String;)Ljava/lang/String;
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
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 35
7: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpne 19
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
aload 1
iconst_0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
12: aload 1
invokevirtual java.lang.String.length:()I
iload 2
iconst_1
iadd
if_icmple 17
13: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpeq 15
14: new java.lang.IllegalArgumentException
dup
ldc "Bad IPv6 port"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iconst_2
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.eclipse.jetty.util.HostPort.parsePort:(Ljava/lang/String;)I
putfield org.eclipse.jetty.util.HostPort._port:I
16: goto 35
17: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
end local 2 18: goto 35
19: StackMap locals:
StackMap stack:
aload 1
bipush 58
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 20: iload 2
iflt 28
21: iload 2
aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
if_icmpeq 25
22: 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;
23: aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
24: goto 35
25: 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;
26: aload 0
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.eclipse.jetty.util.HostPort.parsePort:(Ljava/lang/String;)I
putfield org.eclipse.jetty.util.HostPort._port:I
27: goto 35
28: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jetty.util.HostPort._host:Ljava/lang/String;
29: aload 0
iconst_0
putfield org.eclipse.jetty.util.HostPort._port:I
end local 2 30: goto 35
31: StackMap locals: org.eclipse.jetty.util.HostPort java.lang.String
StackMap stack: java.lang.IllegalArgumentException
astore 2
start local 2 32: aload 2
athrow
end local 2 33: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 34: new java.lang.IllegalArgumentException
dup
ldc "Bad HostPort"
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 35: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/eclipse/jetty/util/HostPort;
0 36 1 authority Ljava/lang/String;
9 18 2 close I
20 30 2 c I
32 33 2 iae Ljava/lang/IllegalArgumentException;
34 35 2 ex Ljava/lang/Exception;
Exception table:
from to target type
3 30 31 Class java.lang.IllegalArgumentException
3 30 33 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 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
public static int parsePort(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.eclipse.jetty.util.StringUtil.isEmpty:(Ljava/lang/String;)Z
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Bad port"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 1
start local 1 3: iload 1
ifle 4
iload 1
ldc 65535
if_icmple 5
4: StackMap locals: int
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Bad port"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 rawPort Ljava/lang/String;
3 6 1 port I
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
rawPort
}
SourceFile: "HostPort.java"