class sun.net.httpserver.Request
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.Request
super_class: java.lang.Object
{
static final int BUF_LEN;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 2048
static final byte CR;
descriptor: B
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 13
static final byte LF;
descriptor: B
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 10
private java.lang.String startLine;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.SocketChannel chan;
descriptor: Ljava/nio/channels/SocketChannel;
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream is;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream os;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
char[] buf;
descriptor: [C
flags: (0x0000)
int pos;
descriptor: I
flags: (0x0000)
java.lang.StringBuffer lineBuf;
descriptor: Ljava/lang/StringBuffer;
flags: (0x0000)
com.sun.net.httpserver.Headers ;
descriptor: Lcom/sun/net/httpserver/Headers;
flags: (0x0000)
void <init>(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0000)
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
sipush 2048
newarray 5
putfield sun.net.httpserver.Request.buf:[C
2: aload 0
aconst_null
putfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
3: aload 0
aload 1
putfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
4: aload 0
aload 2
putfield sun.net.httpserver.Request.os:Ljava/io/OutputStream;
5: StackMap locals: sun.net.httpserver.Request java.io.InputStream java.io.OutputStream
StackMap stack:
aload 0
aload 0
invokevirtual sun.net.httpserver.Request.readLine:()Ljava/lang/String;
putfield sun.net.httpserver.Request.startLine:Ljava/lang/String;
6: aload 0
getfield sun.net.httpserver.Request.startLine:Ljava/lang/String;
ifnonnull 8
7: return
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.startLine:Ljava/lang/String;
ifnonnull 9
goto 10
StackMap locals:
StackMap stack:
9: aload 0
getfield sun.net.httpserver.Request.startLine:Ljava/lang/String;
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/httpserver/Request;
0 11 1 rawInputStream Ljava/io/InputStream;
0 11 2 rawout Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
rawInputStream
rawout
public java.io.InputStream inputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/Request;
public java.io.OutputStream outputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request.os:Ljava/io/OutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/Request;
public java.lang.String readLine();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
iconst_0
putfield sun.net.httpserver.Request.pos:I
aload 0
new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
putfield sun.net.httpserver.Request.lineBuf:Ljava/lang/StringBuffer;
3: goto 19
4: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 3
start local 3 5: iload 3
iconst_m1
if_icmpne 7
6: aconst_null
areturn
7: StackMap locals: int
StackMap stack:
iload 1
ifeq 15
8: iload 3
bipush 10
if_icmpne 11
9: iconst_1
istore 2
10: goto 19
11: StackMap locals:
StackMap stack:
iconst_0
istore 1
12: aload 0
bipush 13
invokevirtual sun.net.httpserver.Request.consume:(I)V
13: aload 0
iload 3
invokevirtual sun.net.httpserver.Request.consume:(I)V
14: goto 19
15: StackMap locals:
StackMap stack:
iload 3
bipush 13
if_icmpne 18
16: iconst_1
istore 1
17: goto 19
18: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual sun.net.httpserver.Request.consume:(I)V
end local 3 19: StackMap locals:
StackMap stack:
iload 2
ifeq 4
20: aload 0
getfield sun.net.httpserver.Request.lineBuf:Ljava/lang/StringBuffer;
aload 0
getfield sun.net.httpserver.Request.buf:[C
iconst_0
aload 0
getfield sun.net.httpserver.Request.pos:I
invokevirtual java.lang.StringBuffer.append:([CII)Ljava/lang/StringBuffer;
pop
21: new java.lang.String
dup
aload 0
getfield sun.net.httpserver.Request.lineBuf:Ljava/lang/StringBuffer;
invokespecial java.lang.String.<init>:(Ljava/lang/StringBuffer;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/net/httpserver/Request;
1 22 1 gotCR Z
2 22 2 gotLF Z
5 19 3 c I
Exceptions:
throws java.io.IOException
private void consume(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.Request.pos:I
sipush 2048
if_icmpne 3
1: aload 0
getfield sun.net.httpserver.Request.lineBuf:Ljava/lang/StringBuffer;
aload 0
getfield sun.net.httpserver.Request.buf:[C
invokevirtual java.lang.StringBuffer.append:([C)Ljava/lang/StringBuffer;
pop
2: aload 0
iconst_0
putfield sun.net.httpserver.Request.pos:I
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.buf:[C
aload 0
dup
getfield sun.net.httpserver.Request.pos:I
dup_x1
iconst_1
iadd
putfield sun.net.httpserver.Request.pos:I
iload 1
i2c
castore
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/Request;
0 5 1 c I
MethodParameters:
Name Flags
c
public java.lang.String requestLine();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request.startLine:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/Request;
com.sun.net.httpserver.Headers ();
descriptor: ()Lcom/sun/net/httpserver/Headers;
flags: (0x0000)
Code:
stack=5, locals=9, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
ifnull 2
1: aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
areturn
2: StackMap locals:
StackMap stack:
aload 0
new com.sun.net.httpserver.Headers
dup
invokespecial com.sun.net.httpserver.Headers.<init>:()V
putfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
3: bipush 10
newarray 5
astore 1
start local 1 4: iconst_0
istore 2
start local 2 5: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 3
start local 3 6: iload 3
bipush 13
if_icmpeq 7
iload 3
bipush 10
if_icmpne 67
7: StackMap locals: char[] int int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 4
start local 4 8: iload 4
bipush 13
if_icmpeq 9
iload 4
bipush 10
if_icmpne 10
9: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
areturn
10: StackMap locals:
StackMap stack:
aload 1
iconst_0
iload 3
i2c
castore
11: iconst_1
istore 2
12: iload 4
istore 3
end local 4 13: goto 67
14: StackMap locals:
StackMap stack:
iconst_m1
istore 4
start local 4 15: iload 3
bipush 32
if_icmple 16
iconst_1
goto 17
StackMap locals: int
StackMap stack:
16: iconst_0
StackMap locals:
StackMap stack: int
17: istore 6
start local 6 18: aload 1
iload 2
iinc 2 1
iload 3
i2c
castore
19: goto 41
start local 5 20: StackMap locals: int int
StackMap stack:
iload 5
lookupswitch { // 5
9: 25
10: 28
13: 28
32: 26
58: 21
default: 36
}
21: StackMap locals:
StackMap stack:
iload 6
ifeq 23
iload 2
ifle 23
22: iload 2
istore 4
23: StackMap locals:
StackMap stack:
iconst_0
istore 6
24: goto 36
25: StackMap locals:
StackMap stack:
bipush 32
istore 5
26: StackMap locals:
StackMap stack:
iconst_0
istore 6
27: goto 36
28: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 3
29: iload 5
bipush 13
if_icmpne 33
iload 3
bipush 10
if_icmpne 33
30: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 3
31: iload 3
bipush 13
if_icmpne 33
32: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 3
33: StackMap locals:
StackMap stack:
iload 3
bipush 10
if_icmpeq 46
iload 3
bipush 13
if_icmpeq 46
iload 3
bipush 32
if_icmple 35
34: goto 46
35: StackMap locals:
StackMap stack:
bipush 32
istore 5
36: StackMap locals:
StackMap stack:
iload 2
aload 1
arraylength
if_icmplt 40
37: aload 1
arraylength
iconst_2
imul
newarray 5
astore 7
start local 7 38: aload 1
iconst_0
aload 7
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
39: aload 7
astore 1
end local 7 40: StackMap locals:
StackMap stack:
aload 1
iload 2
iinc 2 1
iload 5
i2c
castore
end local 5 41: StackMap locals: sun.net.httpserver.Request char[] int int int top int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
dup
istore 5
start local 5 42: ifge 20
43: iconst_m1
istore 3
44: goto 46
45: StackMap locals: sun.net.httpserver.Request char[] int int int int int
StackMap stack:
iinc 2 -1
46: StackMap locals:
StackMap stack:
iload 2
ifle 47
aload 1
iload 2
iconst_1
isub
caload
bipush 32
if_icmple 45
47: StackMap locals:
StackMap stack:
iload 4
ifgt 51
48: aconst_null
astore 7
start local 7 49: iconst_0
istore 4
50: goto 57
end local 7 51: StackMap locals:
StackMap stack:
aload 1
iconst_0
iload 4
invokestatic java.lang.String.copyValueOf:([CII)Ljava/lang/String;
astore 7
start local 7 52: iload 4
iload 2
if_icmpge 56
aload 1
iload 4
caload
bipush 58
if_icmpne 56
53: iinc 4 1
54: goto 56
55: StackMap locals: java.lang.String
StackMap stack:
iinc 4 1
56: StackMap locals:
StackMap stack:
iload 4
iload 2
if_icmpge 57
aload 1
iload 4
caload
bipush 32
if_icmple 55
57: StackMap locals:
StackMap stack:
iload 4
iload 2
if_icmplt 60
58: new java.lang.String
dup
invokespecial java.lang.String.<init>:()V
astore 8
start local 8 59: goto 61
end local 8 60: StackMap locals:
StackMap stack:
aload 1
iload 4
iload 2
iload 4
isub
invokestatic java.lang.String.copyValueOf:([CII)Ljava/lang/String;
astore 8
start local 8 61: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
invokevirtual com.sun.net.httpserver.Headers.size:()I
invokestatic sun.net.httpserver.ServerConfig.getMaxReqHeaders:()I
if_icmplt 65
62: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Maximum number of request headers (sun.net.httpserver.maxReqHeaders) exceeded, "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
63: invokestatic sun.net.httpserver.ServerConfig.getMaxReqHeaders:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
64: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
65: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
aload 7
aload 8
invokevirtual com.sun.net.httpserver.Headers.add:(Ljava/lang/String;Ljava/lang/String;)V
66: iconst_0
istore 2
end local 8 end local 7 end local 6 end local 5 end local 4 67: StackMap locals: sun.net.httpserver.Request char[] int int
StackMap stack:
iload 3
bipush 10
if_icmpeq 68
iload 3
bipush 13
if_icmpeq 68
iload 3
ifge 14
68: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 69 0 this Lsun/net/httpserver/Request;
4 69 1 s [C
5 69 2 len I
6 69 3 firstc I
8 13 4 c I
15 67 4 keyend I
20 41 5 c I
42 67 5 c I
18 67 6 inKey Z
38 40 7 ns [C
49 51 7 k Ljava/lang/String;
52 67 7 k Ljava/lang/String;
59 60 8 v Ljava/lang/String;
61 67 8 v Ljava/lang/String;
Exceptions:
throws java.io.IOException
}
SourceFile: "Request.java"
NestMembers:
sun.net.httpserver.Request$ReadStream sun.net.httpserver.Request$WriteStream
InnerClasses:
ReadStream = sun.net.httpserver.Request$ReadStream of sun.net.httpserver.Request
WriteStream = sun.net.httpserver.Request$WriteStream of sun.net.httpserver.Request