public abstract class jakarta.servlet.http.HttpServlet extends jakarta.servlet.GenericServlet
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jakarta.servlet.http.HttpServlet
super_class: jakarta.servlet.GenericServlet
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final java.lang.String METHOD_DELETE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "DELETE"
private static final java.lang.String METHOD_HEAD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "HEAD"
private static final java.lang.String METHOD_GET;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "GET"
private static final java.lang.String METHOD_OPTIONS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "OPTIONS"
private static final java.lang.String METHOD_POST;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "POST"
private static final java.lang.String METHOD_PUT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "PUT"
private static final java.lang.String METHOD_TRACE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "TRACE"
private static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "If-Modified-Since"
private static final java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Last-Modified"
private static final java.lang.String LSTRING_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jakarta.servlet.http.LocalStrings"
private static final java.util.ResourceBundle lStrings;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.Object ;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "jakarta.servlet.http.LocalStrings"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
1: putstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jakarta.servlet.GenericServlet.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValueLock:Ljava/lang/Object;
2: aload 0
aconst_null
putfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValue:Ljava/lang/String;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljakarta/servlet/http/HttpServlet;
protected void doGet(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
ldc "http.method_get_not_supported"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 1
aload 2
aload 3
invokevirtual jakarta.servlet.http.HttpServlet.sendMethodNotAllowed:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/HttpServlet;
0 3 1 req Ljakarta/servlet/http/HttpServletRequest;
0 3 2 resp Ljakarta/servlet/http/HttpServletResponse;
1 3 3 msg Ljava/lang/String;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
protected long getLastModified(jakarta.servlet.http.HttpServletRequest);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;)J
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc -1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/HttpServlet;
0 1 1 req Ljakarta/servlet/http/HttpServletRequest;
MethodParameters:
Name Flags
req
protected void doHead(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jakarta.servlet.DispatcherType.INCLUDE:Ljakarta/servlet/DispatcherType;
aload 1
invokeinterface jakarta.servlet.http.HttpServletRequest.getDispatcherType:()Ljakarta/servlet/DispatcherType;
invokevirtual jakarta.servlet.DispatcherType.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doGet:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
2: goto 6
3: StackMap locals:
StackMap stack:
new jakarta.servlet.http.NoBodyResponse
dup
aload 2
invokespecial jakarta.servlet.http.NoBodyResponse.<init>:(Ljakarta/servlet/http/HttpServletResponse;)V
astore 3
start local 3 4: aload 0
aload 1
aload 3
invokevirtual jakarta.servlet.http.HttpServlet.doGet:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
5: aload 3
invokevirtual jakarta.servlet.http.NoBodyResponse.setContentLength:()V
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljakarta/servlet/http/HttpServlet;
0 7 1 req Ljakarta/servlet/http/HttpServletRequest;
0 7 2 resp Ljakarta/servlet/http/HttpServletResponse;
4 6 3 response Ljakarta/servlet/http/NoBodyResponse;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
protected void doPost(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
ldc "http.method_post_not_supported"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 1
aload 2
aload 3
invokevirtual jakarta.servlet.http.HttpServlet.sendMethodNotAllowed:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/HttpServlet;
0 3 1 req Ljakarta/servlet/http/HttpServletRequest;
0 3 2 resp Ljakarta/servlet/http/HttpServletResponse;
1 3 3 msg Ljava/lang/String;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
protected void doPut(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
ldc "http.method_put_not_supported"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 1
aload 2
aload 3
invokevirtual jakarta.servlet.http.HttpServlet.sendMethodNotAllowed:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/HttpServlet;
0 3 1 req Ljakarta/servlet/http/HttpServletRequest;
0 3 2 resp Ljakarta/servlet/http/HttpServletResponse;
1 3 3 msg Ljava/lang/String;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
protected void doDelete(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
ldc "http.method_delete_not_supported"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 1
aload 2
aload 3
invokevirtual jakarta.servlet.http.HttpServlet.sendMethodNotAllowed:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljakarta/servlet/http/HttpServlet;
0 3 1 req Ljakarta/servlet/http/HttpServletRequest;
0 3 2 resp Ljakarta/servlet/http/HttpServletResponse;
1 3 3 msg Ljava/lang/String;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
private void sendMethodNotAllowed(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, java.lang.String);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface jakarta.servlet.http.HttpServletRequest.getProtocol:()Ljava/lang/String;
astore 4
start local 4 1: aload 4
invokevirtual java.lang.String.length:()I
ifeq 2
aload 4
ldc "0.9"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 2
aload 4
ldc "1.0"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 4
2: StackMap locals: java.lang.String
StackMap stack:
aload 2
sipush 400
aload 3
invokeinterface jakarta.servlet.http.HttpServletResponse.sendError:(ILjava/lang/String;)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 2
sipush 405
aload 3
invokeinterface jakarta.servlet.http.HttpServletResponse.sendError:(ILjava/lang/String;)V
5: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljakarta/servlet/http/HttpServlet;
0 6 1 req Ljakarta/servlet/http/HttpServletRequest;
0 6 2 resp Ljakarta/servlet/http/HttpServletResponse;
0 6 3 msg Ljava/lang/String;
1 6 4 protocol Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
req
resp
msg
private java.lang.String ();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=13, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValue:Ljava/lang/String;
ifnonnull 48
1: aload 0
getfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValueLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValue:Ljava/lang/String;
ifnonnull 44
3: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic jakarta.servlet.http.HttpServlet.getAllDeclaredMethods:(Ljava/lang/Class;)[Ljava/lang/reflect/Method;
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: iconst_0
istore 4
start local 4 6: iconst_0
istore 5
start local 5 7: iconst_0
istore 6
start local 6 8: iconst_0
istore 7
start local 7 9: aload 2
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 25
StackMap locals: jakarta.servlet.http.HttpServlet java.lang.Object java.lang.reflect.Method[] int int int int int top int int java.lang.reflect.Method[]
StackMap stack:
10: aload 11
iload 9
aaload
astore 8
start local 8 11: aload 8
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
dup
astore 12
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 4
-1327047733: 12
-40588778: 13
95730379: 14
95739524: 15
default: 24
}
StackMap locals: jakarta.servlet.http.HttpServlet java.lang.Object java.lang.reflect.Method[] int int int int int java.lang.reflect.Method int int java.lang.reflect.Method[] java.lang.String
StackMap stack:
12: aload 12
ldc "doPost"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
goto 24
StackMap locals:
StackMap stack:
13: aload 12
ldc "doDelete"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
goto 24
StackMap locals:
StackMap stack:
14: aload 12
ldc "doGet"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
goto 24
StackMap locals:
StackMap stack:
15: aload 12
ldc "doPut"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
goto 24
16: StackMap locals:
StackMap stack:
iconst_1
istore 3
17: iconst_1
istore 4
18: goto 24
19: StackMap locals:
StackMap stack:
iconst_1
istore 5
20: goto 24
21: StackMap locals:
StackMap stack:
iconst_1
istore 6
22: goto 24
23: StackMap locals:
StackMap stack:
iconst_1
istore 7
end local 8 24: StackMap locals: jakarta.servlet.http.HttpServlet java.lang.Object java.lang.reflect.Method[] int int int int int top int int java.lang.reflect.Method[]
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
25: iload 9
iload 10
if_icmplt 10
26: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 8
start local 8 27: iload 3
ifeq 30
28: aload 8
ldc "GET"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
29: aload 8
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
30: StackMap locals: jakarta.servlet.http.HttpServlet java.lang.Object java.lang.reflect.Method[] int int int int int java.lang.StringBuilder
StackMap stack:
iload 4
ifeq 33
31: aload 8
ldc "HEAD"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
32: aload 8
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
33: StackMap locals:
StackMap stack:
iload 5
ifeq 36
34: aload 8
ldc "POST"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
35: aload 8
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
36: StackMap locals:
StackMap stack:
iload 6
ifeq 39
37: aload 8
ldc "PUT"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
38: aload 8
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
39: StackMap locals:
StackMap stack:
iload 7
ifeq 42
40: aload 8
ldc "DELETE"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
41: aload 8
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
42: StackMap locals:
StackMap stack:
aload 8
ldc "OPTIONS"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
43: aload 0
aload 8
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValue:Ljava/lang/String;
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 44: StackMap locals: jakarta.servlet.http.HttpServlet java.lang.Object
StackMap stack:
aload 1
monitorexit
45: goto 48
StackMap locals:
StackMap stack: java.lang.Throwable
46: aload 1
monitorexit
47: athrow
48: StackMap locals:
StackMap stack:
aload 0
getfield jakarta.servlet.http.HttpServlet.cachedAllowHeaderValue:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Ljakarta/servlet/http/HttpServlet;
4 44 2 methods [Ljava/lang/reflect/Method;
5 44 3 allowGet Z
6 44 4 allowHead Z
7 44 5 allowPost Z
8 44 6 allowPut Z
9 44 7 allowDelete Z
11 24 8 method Ljava/lang/reflect/Method;
27 44 8 allow Ljava/lang/StringBuilder;
Exception table:
from to target type
2 45 46 any
46 47 46 any
private static java.lang.reflect.Method[] getAllDeclaredMethods(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)[Ljava/lang/reflect/Method;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ldc Ljakarta/servlet/http/HttpServlet;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
invokestatic jakarta.servlet.http.HttpServlet.getAllDeclaredMethods:(Ljava/lang/Class;)[Ljava/lang/reflect/Method;
astore 1
start local 1 3: aload 0
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
astore 2
start local 2 4: aload 1
ifnull 14
aload 1
arraylength
ifle 14
5: aload 1
arraylength
aload 2
arraylength
iadd
anewarray java.lang.reflect.Method
6: astore 3
start local 3 7: aload 1
iconst_0
aload 3
iconst_0
8: aload 1
arraylength
9: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 2
iconst_0
aload 3
aload 1
arraylength
11: aload 2
arraylength
12: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 3
astore 2
end local 3 14: StackMap locals: java.lang.reflect.Method[] java.lang.reflect.Method[]
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 c Ljava/lang/Class<*>;
3 15 1 parentMethods [Ljava/lang/reflect/Method;
4 15 2 thisMethods [Ljava/lang/reflect/Method;
7 14 3 allMethods [Ljava/lang/reflect/Method;
Signature: (Ljava/lang/Class<*>;)[Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
c
protected void doOptions(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jakarta.servlet.http.HttpServlet.getCachedAllowHeaderValue:()Ljava/lang/String;
astore 3
start local 3 1: aload 1
invokestatic jakarta.servlet.http.HttpServlet$TomcatHack.getAllowTrace:(Ljakarta/servlet/http/HttpServletRequest;)Z
ifeq 6
2: aload 3
invokevirtual java.lang.String.length:()I
ifne 5
3: ldc "TRACE"
astore 3
4: goto 6
5: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
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;
ldc "TRACE"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
6: StackMap locals:
StackMap stack:
aload 2
ldc "Allow"
aload 3
invokeinterface jakarta.servlet.http.HttpServletResponse.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljakarta/servlet/http/HttpServlet;
0 8 1 req Ljakarta/servlet/http/HttpServletRequest;
0 8 2 resp Ljakarta/servlet/http/HttpServletResponse;
1 8 3 allow Ljava/lang/String;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
protected void doTrace(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: ldc "\r\n"
astore 4
start local 4 1: new java.lang.StringBuilder
dup
ldc "TRACE "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface jakarta.servlet.http.HttpServletRequest.getRequestURI:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokeinterface jakarta.servlet.http.HttpServletRequest.getProtocol:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: astore 5
start local 5 4: aload 1
invokeinterface jakarta.servlet.http.HttpServletRequest.getHeaderNames:()Ljava/util/Enumeration;
astore 6
start local 6 5: goto 9
6: StackMap locals: jakarta.servlet.http.HttpServlet jakarta.servlet.http.HttpServletRequest jakarta.servlet.http.HttpServletResponse top java.lang.String java.lang.StringBuilder java.util.Enumeration
StackMap stack:
aload 6
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 7: aload 5
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: aload 1
aload 7
invokeinterface jakarta.servlet.http.HttpServletRequest.getHeader:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 9: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 6
10: aload 5
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 5
invokevirtual java.lang.StringBuilder.length:()I
istore 3
start local 3 12: aload 2
ldc "message/http"
invokeinterface jakarta.servlet.http.HttpServletResponse.setContentType:(Ljava/lang/String;)V
13: aload 2
iload 3
invokeinterface jakarta.servlet.http.HttpServletResponse.setContentLength:(I)V
14: aload 2
invokeinterface jakarta.servlet.http.HttpServletResponse.getOutputStream:()Ljakarta/servlet/ServletOutputStream;
astore 7
start local 7 15: aload 7
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jakarta.servlet.ServletOutputStream.print:(Ljava/lang/String;)V
16: aload 7
invokevirtual jakarta.servlet.ServletOutputStream.close:()V
17: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljakarta/servlet/http/HttpServlet;
0 18 1 req Ljakarta/servlet/http/HttpServletRequest;
0 18 2 resp Ljakarta/servlet/http/HttpServletResponse;
12 18 3 responseLength I
1 18 4 CRLF Ljava/lang/String;
4 18 5 buffer Ljava/lang/StringBuilder;
5 18 6 reqHeaderEnum Ljava/util/Enumeration<Ljava/lang/String;>;
7 9 7 headerName Ljava/lang/String;
15 18 7 out Ljakarta/servlet/ServletOutputStream;
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
protected void service(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse);
descriptor: (Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface jakarta.servlet.http.HttpServletRequest.getMethod:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
ldc "GET"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
2: aload 0
aload 1
invokevirtual jakarta.servlet.http.HttpServlet.getLastModified:(Ljakarta/servlet/http/HttpServletRequest;)J
lstore 4
start local 4 3: lload 4
ldc -1
lcmp
ifne 6
4: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doGet:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
5: goto 41
6: StackMap locals: java.lang.String long
StackMap stack:
aload 1
ldc "If-Modified-Since"
invokeinterface jakarta.servlet.http.HttpServletRequest.getDateHeader:(Ljava/lang/String;)J
lstore 6
start local 6 7: goto 10
end local 6 StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
8: pop
9: ldc -1
lstore 6
start local 6 10: StackMap locals: long
StackMap stack:
lload 6
lload 4
ldc 1000
ldiv
ldc 1000
lmul
lcmp
ifge 14
11: aload 0
aload 2
lload 4
invokevirtual jakarta.servlet.http.HttpServlet.maybeSetLastModified:(Ljakarta/servlet/http/HttpServletResponse;J)V
12: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doGet:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
13: goto 41
14: StackMap locals:
StackMap stack:
aload 2
sipush 304
invokeinterface jakarta.servlet.http.HttpServletResponse.setStatus:(I)V
end local 6 end local 4 15: goto 41
StackMap locals:
StackMap stack:
16: aload 3
ldc "HEAD"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
17: aload 0
aload 1
invokevirtual jakarta.servlet.http.HttpServlet.getLastModified:(Ljakarta/servlet/http/HttpServletRequest;)J
lstore 4
start local 4 18: aload 0
aload 2
lload 4
invokevirtual jakarta.servlet.http.HttpServlet.maybeSetLastModified:(Ljakarta/servlet/http/HttpServletResponse;J)V
19: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doHead:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
end local 4 20: goto 41
StackMap locals:
StackMap stack:
21: aload 3
ldc "POST"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
22: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doPost:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
23: goto 41
StackMap locals:
StackMap stack:
24: aload 3
ldc "PUT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 27
25: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doPut:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
26: goto 41
StackMap locals:
StackMap stack:
27: aload 3
ldc "DELETE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 30
28: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doDelete:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
29: goto 41
StackMap locals:
StackMap stack:
30: aload 3
ldc "OPTIONS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 33
31: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doOptions:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
32: goto 41
StackMap locals:
StackMap stack:
33: aload 3
ldc "TRACE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 36
34: aload 0
aload 1
aload 2
invokevirtual jakarta.servlet.http.HttpServlet.doTrace:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
35: goto 41
36: StackMap locals:
StackMap stack:
getstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
ldc "http.method_not_implemented"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 37: iconst_1
anewarray java.lang.Object
astore 5
start local 5 38: aload 5
iconst_0
aload 3
aastore
39: aload 4
aload 5
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 4
40: aload 2
sipush 501
aload 4
invokeinterface jakarta.servlet.http.HttpServletResponse.sendError:(ILjava/lang/String;)V
end local 5 end local 4 41: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljakarta/servlet/http/HttpServlet;
0 42 1 req Ljakarta/servlet/http/HttpServletRequest;
0 42 2 resp Ljakarta/servlet/http/HttpServletResponse;
1 42 3 method Ljava/lang/String;
3 15 4 lastModified J
7 8 6 ifModifiedSince J
10 15 6 ifModifiedSince J
18 20 4 lastModified J
37 41 4 errMsg Ljava/lang/String;
38 41 5 errArgs [Ljava/lang/Object;
Exception table:
from to target type
6 7 8 Class java.lang.IllegalArgumentException
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
resp
private void maybeSetLastModified(jakarta.servlet.http.HttpServletResponse, long);
descriptor: (Ljakarta/servlet/http/HttpServletResponse;J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "Last-Modified"
invokeinterface jakarta.servlet.http.HttpServletResponse.containsHeader:(Ljava/lang/String;)Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
lload 2
lconst_0
lcmp
iflt 4
3: aload 1
ldc "Last-Modified"
lload 2
invokeinterface jakarta.servlet.http.HttpServletResponse.setDateHeader:(Ljava/lang/String;J)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljakarta/servlet/http/HttpServlet;
0 5 1 resp Ljakarta/servlet/http/HttpServletResponse;
0 5 2 lastModified J
MethodParameters:
Name Flags
resp
lastModified
public void service(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse);
descriptor: (Ljakarta/servlet/ServletRequest;Ljakarta/servlet/ServletResponse;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast jakarta.servlet.http.HttpServletRequest
astore 3
start local 3 1: aload 2
checkcast jakarta.servlet.http.HttpServletResponse
astore 4
start local 4 2: goto 5
end local 4 end local 3 StackMap locals:
StackMap stack: java.lang.ClassCastException
3: pop
4: new jakarta.servlet.ServletException
dup
getstatic jakarta.servlet.http.HttpServlet.lStrings:Ljava/util/ResourceBundle;
ldc "http.non_http"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial jakarta.servlet.ServletException.<init>:(Ljava/lang/String;)V
athrow
start local 3 start local 4 5: StackMap locals: jakarta.servlet.http.HttpServletRequest jakarta.servlet.http.HttpServletResponse
StackMap stack:
aload 0
aload 3
aload 4
invokevirtual jakarta.servlet.http.HttpServlet.service:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;)V
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljakarta/servlet/http/HttpServlet;
0 7 1 req Ljakarta/servlet/ServletRequest;
0 7 2 res Ljakarta/servlet/ServletResponse;
1 3 3 request Ljakarta/servlet/http/HttpServletRequest;
5 7 3 request Ljakarta/servlet/http/HttpServletRequest;
2 3 4 response Ljakarta/servlet/http/HttpServletResponse;
5 7 4 response Ljakarta/servlet/http/HttpServletResponse;
Exception table:
from to target type
0 2 3 Class java.lang.ClassCastException
Exceptions:
throws jakarta.servlet.ServletException, java.io.IOException
MethodParameters:
Name Flags
req
res
}
SourceFile: "HttpServlet.java"
NestMembers:
jakarta.servlet.http.HttpServlet$TomcatHack
InnerClasses:
private TomcatHack = jakarta.servlet.http.HttpServlet$TomcatHack of jakarta.servlet.http.HttpServlet