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;
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/httpserver/Request;
0 10 1 rawInputStream Ljava/io/InputStream;
0 10 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: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 2
start local 2 5: goto 59
6: StackMap locals: char[] int
StackMap stack:
iconst_0
istore 3
start local 3 7: iconst_m1
istore 4
start local 4 8: iload 2
bipush 32
if_icmple 9
iconst_1
goto 10
StackMap locals: int int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 6
start local 6 11: aload 1
iload 3
iinc 3 1
iload 2
i2c
castore
12: goto 34
start local 5 13: StackMap locals: int int
StackMap stack:
iload 5
lookupswitch { // 5
9: 18
10: 21
13: 21
32: 19
58: 14
default: 29
}
14: StackMap locals:
StackMap stack:
iload 6
ifeq 16
iload 3
ifle 16
15: iload 3
istore 4
16: StackMap locals:
StackMap stack:
iconst_0
istore 6
17: goto 29
18: StackMap locals:
StackMap stack:
bipush 32
istore 5
19: StackMap locals:
StackMap stack:
iconst_0
istore 6
20: goto 29
21: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 2
22: iload 5
bipush 13
if_icmpne 26
iload 2
bipush 10
if_icmpne 26
23: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 2
24: iload 2
bipush 13
if_icmpne 26
25: aload 0
getfield sun.net.httpserver.Request.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 2
26: StackMap locals:
StackMap stack:
iload 2
bipush 10
if_icmpeq 39
iload 2
bipush 13
if_icmpeq 39
iload 2
bipush 32
if_icmple 28
27: goto 39
28: StackMap locals:
StackMap stack:
bipush 32
istore 5
29: StackMap locals:
StackMap stack:
iload 3
aload 1
arraylength
if_icmplt 33
30: aload 1
arraylength
iconst_2
imul
newarray 5
astore 7
start local 7 31: aload 1
iconst_0
aload 7
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: aload 7
astore 1
end local 7 33: StackMap locals:
StackMap stack:
aload 1
iload 3
iinc 3 1
iload 5
i2c
castore
end local 5 34: 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 35: ifge 13
36: iconst_m1
istore 2
37: goto 39
38: StackMap locals: sun.net.httpserver.Request char[] int int int int int
StackMap stack:
iinc 3 -1
39: StackMap locals:
StackMap stack:
iload 3
ifle 40
aload 1
iload 3
iconst_1
isub
caload
bipush 32
if_icmple 38
40: StackMap locals:
StackMap stack:
iload 4
ifgt 44
41: aconst_null
astore 7
start local 7 42: iconst_0
istore 4
43: goto 50
end local 7 44: StackMap locals:
StackMap stack:
aload 1
iconst_0
iload 4
invokestatic java.lang.String.copyValueOf:([CII)Ljava/lang/String;
astore 7
start local 7 45: iload 4
iload 3
if_icmpge 49
aload 1
iload 4
caload
bipush 58
if_icmpne 49
46: iinc 4 1
47: goto 49
48: StackMap locals: java.lang.String
StackMap stack:
iinc 4 1
49: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmpge 50
aload 1
iload 4
caload
bipush 32
if_icmple 48
50: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmplt 53
51: new java.lang.String
dup
invokespecial java.lang.String.<init>:()V
astore 8
start local 8 52: goto 54
end local 8 53: StackMap locals:
StackMap stack:
aload 1
iload 4
iload 3
iload 4
isub
invokestatic java.lang.String.copyValueOf:([CII)Ljava/lang/String;
astore 8
start local 8 54: 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 58
55: 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
56: 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;
57: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
58: 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
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 59: StackMap locals: sun.net.httpserver.Request char[] int
StackMap stack:
iload 2
bipush 10
if_icmpeq 60
iload 2
bipush 13
if_icmpeq 60
iload 2
ifge 6
60: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request.hdrs:Lcom/sun/net/httpserver/Headers;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 61 0 this Lsun/net/httpserver/Request;
4 61 1 s [C
5 61 2 firstc I
7 59 3 len I
8 59 4 keyend I
13 34 5 c I
35 59 5 c I
11 59 6 inKey Z
31 33 7 ns [C
42 44 7 k Ljava/lang/String;
45 59 7 k Ljava/lang/String;
52 53 8 v Ljava/lang/String;
54 59 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