public final class org.eclipse.jetty.http.HttpVersion extends java.lang.Enum<org.eclipse.jetty.http.HttpVersion>
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: org.eclipse.jetty.http.HttpVersion
super_class: java.lang.Enum
{
public static final org.eclipse.jetty.http.HttpVersion HTTP_0_9;
descriptor: Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.eclipse.jetty.http.HttpVersion HTTP_1_0;
descriptor: Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.eclipse.jetty.http.HttpVersion HTTP_1_1;
descriptor: Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.eclipse.jetty.http.HttpVersion HTTP_2;
descriptor: Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.eclipse.jetty.util.Index<org.eclipse.jetty.http.HttpVersion> CACHE;
descriptor: Lorg/eclipse/jetty/util/Index;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lorg/eclipse/jetty/util/Index<Lorg/eclipse/jetty/http/HttpVersion;>;
private final java.lang.String _string;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] _bytes;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.ByteBuffer _buffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int _version;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final org.eclipse.jetty.http.HttpVersion[] ENUM$VALUES;
descriptor: [Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new org.eclipse.jetty.http.HttpVersion
dup
ldc "HTTP_0_9"
iconst_0
ldc "HTTP/0.9"
bipush 9
invokespecial org.eclipse.jetty.http.HttpVersion.<init>:(Ljava/lang/String;ILjava/lang/String;I)V
putstatic org.eclipse.jetty.http.HttpVersion.HTTP_0_9:Lorg/eclipse/jetty/http/HttpVersion;
1: new org.eclipse.jetty.http.HttpVersion
dup
ldc "HTTP_1_0"
iconst_1
ldc "HTTP/1.0"
bipush 10
invokespecial org.eclipse.jetty.http.HttpVersion.<init>:(Ljava/lang/String;ILjava/lang/String;I)V
putstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_0:Lorg/eclipse/jetty/http/HttpVersion;
2: new org.eclipse.jetty.http.HttpVersion
dup
ldc "HTTP_1_1"
iconst_2
ldc "HTTP/1.1"
bipush 11
invokespecial org.eclipse.jetty.http.HttpVersion.<init>:(Ljava/lang/String;ILjava/lang/String;I)V
putstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_1:Lorg/eclipse/jetty/http/HttpVersion;
3: new org.eclipse.jetty.http.HttpVersion
dup
ldc "HTTP_2"
iconst_3
ldc "HTTP/2.0"
bipush 20
invokespecial org.eclipse.jetty.http.HttpVersion.<init>:(Ljava/lang/String;ILjava/lang/String;I)V
putstatic org.eclipse.jetty.http.HttpVersion.HTTP_2:Lorg/eclipse/jetty/http/HttpVersion;
iconst_4
anewarray org.eclipse.jetty.http.HttpVersion
dup
iconst_0
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_0_9:Lorg/eclipse/jetty/http/HttpVersion;
aastore
dup
iconst_1
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_0:Lorg/eclipse/jetty/http/HttpVersion;
aastore
dup
iconst_2
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_1:Lorg/eclipse/jetty/http/HttpVersion;
aastore
dup
iconst_3
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_2:Lorg/eclipse/jetty/http/HttpVersion;
aastore
putstatic org.eclipse.jetty.http.HttpVersion.ENUM$VALUES:[Lorg/eclipse/jetty/http/HttpVersion;
4: new org.eclipse.jetty.util.Index$Builder
dup
invokespecial org.eclipse.jetty.util.Index$Builder.<init>:()V
5: iconst_0
invokevirtual org.eclipse.jetty.util.Index$Builder.caseSensitive:(Z)Lorg/eclipse/jetty/util/Index$Builder;
6: invokestatic org.eclipse.jetty.http.HttpVersion.values:()[Lorg/eclipse/jetty/http/HttpVersion;
invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
org/eclipse/jetty/http/HttpVersion.toString()Ljava/lang/String; (5)
(Lorg/eclipse/jetty/http/HttpVersion;)Ljava/lang/String;
invokevirtual org.eclipse.jetty.util.Index$Builder.withAll:([Ljava/lang/Object;Ljava/util/function/Function;)Lorg/eclipse/jetty/util/Index$Builder;
7: invokevirtual org.eclipse.jetty.util.Index$Builder.build:()Lorg/eclipse/jetty/util/Index;
8: putstatic org.eclipse.jetty.http.HttpVersion.CACHE:Lorg/eclipse/jetty/util/Index;
9: return
LocalVariableTable:
Start End Slot Name Signature
public static org.eclipse.jetty.http.HttpVersion lookAheadGet(byte[], int, int);
descriptor: ([BII)Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
isub
istore 3
start local 3 1: iload 3
bipush 9
if_icmpge 3
2: aconst_null
areturn
3: StackMap locals: int
StackMap stack:
aload 0
iload 1
iconst_4
iadd
baload
bipush 47
if_icmpne 15
aload 0
iload 1
bipush 6
iadd
baload
bipush 46
if_icmpne 15
aload 0
iload 1
bipush 8
iadd
baload
i2c
invokestatic java.lang.Character.isWhitespace:(C)Z
ifeq 15
4: aload 0
iload 1
baload
bipush 72
if_icmpne 5
aload 0
iload 1
iconst_1
iadd
baload
bipush 84
if_icmpne 5
aload 0
iload 1
iconst_2
iadd
baload
bipush 84
if_icmpne 5
aload 0
iload 1
iconst_3
iadd
baload
bipush 80
if_icmpeq 6
5: StackMap locals:
StackMap stack:
aload 0
iload 1
baload
bipush 104
if_icmpne 15
aload 0
iload 1
iconst_1
iadd
baload
bipush 116
if_icmpne 15
aload 0
iload 1
iconst_2
iadd
baload
bipush 116
if_icmpne 15
aload 0
iload 1
iconst_3
iadd
baload
bipush 112
if_icmpne 15
6: StackMap locals:
StackMap stack:
aload 0
iload 1
iconst_5
iadd
baload
tableswitch { // 49 - 50
49: 7
50: 11
default: 14
}
7: StackMap locals:
StackMap stack:
aload 0
iload 1
bipush 7
iadd
baload
tableswitch { // 48 - 49
48: 8
49: 9
default: 10
}
8: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_0:Lorg/eclipse/jetty/http/HttpVersion;
areturn
9: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_1:Lorg/eclipse/jetty/http/HttpVersion;
areturn
10: StackMap locals:
StackMap stack:
aconst_null
areturn
11: StackMap locals:
StackMap stack:
aload 0
iload 1
bipush 7
iadd
baload
tableswitch { // 48 - 48
48: 12
default: 13
}
12: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_2:Lorg/eclipse/jetty/http/HttpVersion;
areturn
13: StackMap locals:
StackMap stack:
aconst_null
areturn
14: StackMap locals:
StackMap stack:
aconst_null
areturn
15: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 bytes [B
0 16 1 position I
0 16 2 limit I
1 16 3 length I
MethodParameters:
Name Flags
bytes
position
limit
public static org.eclipse.jetty.http.HttpVersion lookAheadGet(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 2
1: aload 0
invokevirtual java.nio.ByteBuffer.array:()[B
aload 0
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iadd
aload 0
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 0
invokevirtual java.nio.ByteBuffer.limit:()I
iadd
invokestatic org.eclipse.jetty.http.HttpVersion.lookAheadGet:([BII)Lorg/eclipse/jetty/http/HttpVersion;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffer
private void <init>(java.lang.String, int, java.lang.String, int);
descriptor: (Ljava/lang/String;ILjava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=5
start local 0 start local 3 start local 4 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
1: aload 0
aload 3
putfield org.eclipse.jetty.http.HttpVersion._string:Ljava/lang/String;
2: aload 0
aload 3
invokestatic org.eclipse.jetty.util.StringUtil.getBytes:(Ljava/lang/String;)[B
putfield org.eclipse.jetty.http.HttpVersion._bytes:[B
3: aload 0
aload 0
getfield org.eclipse.jetty.http.HttpVersion._bytes:[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putfield org.eclipse.jetty.http.HttpVersion._buffer:Ljava/nio/ByteBuffer;
4: aload 0
iload 4
putfield org.eclipse.jetty.http.HttpVersion._version:I
5: return
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/http/HttpVersion;
0 6 3 s Ljava/lang/String;
0 6 4 version I
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
s
version
public byte[] toBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.http.HttpVersion._bytes:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/http/HttpVersion;
public java.nio.ByteBuffer toBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.http.HttpVersion._buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.asReadOnlyBuffer:()Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/http/HttpVersion;
public int getVersion();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.http.HttpVersion._version:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/http/HttpVersion;
public boolean is(java.lang.String);
descriptor: (Ljava/lang/String;)Z
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.http.HttpVersion._string:Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/http/HttpVersion;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public java.lang.String asString();
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.http.HttpVersion._string:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/http/HttpVersion;
public java.lang.String toString();
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.http.HttpVersion._string:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/http/HttpVersion;
public static org.eclipse.jetty.http.HttpVersion fromString(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.eclipse.jetty.http.HttpVersion.CACHE:Lorg/eclipse/jetty/util/Index;
aload 0
invokeinterface org.eclipse.jetty.util.Index.get:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.eclipse.jetty.http.HttpVersion
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 version Ljava/lang/String;
MethodParameters:
Name Flags
version
public static org.eclipse.jetty.http.HttpVersion fromVersion(int);
descriptor: (I)Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
lookupswitch { // 4
9: 1
10: 2
11: 3
20: 4
default: 5
}
1: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_0_9:Lorg/eclipse/jetty/http/HttpVersion;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_0:Lorg/eclipse/jetty/http/HttpVersion;
areturn
3: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_1_1:Lorg/eclipse/jetty/http/HttpVersion;
areturn
4: StackMap locals:
StackMap stack:
getstatic org.eclipse.jetty.http.HttpVersion.HTTP_2:Lorg/eclipse/jetty/http/HttpVersion;
areturn
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 version I
MethodParameters:
Name Flags
version
public static org.eclipse.jetty.http.HttpVersion[] values();
descriptor: ()[Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic org.eclipse.jetty.http.HttpVersion.ENUM$VALUES:[Lorg/eclipse/jetty/http/HttpVersion;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray org.eclipse.jetty.http.HttpVersion
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.eclipse.jetty.http.HttpVersion valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jetty/http/HttpVersion;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Lorg/eclipse/jetty/http/HttpVersion;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast org.eclipse.jetty.http.HttpVersion
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Lorg/eclipse/jetty/http/HttpVersion;>;
SourceFile: "HttpVersion.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Builder = org.eclipse.jetty.util.Index$Builder of org.eclipse.jetty.util.Index