public class org.springframework.web.util.ContentCachingRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.util.ContentCachingRequestWrapper
super_class: javax.servlet.http.HttpServletRequestWrapper
{
private static final java.lang.String FORM_CONTENT_TYPE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "application/x-www-form-urlencoded"
private final java.io.ByteArrayOutputStream cachedContent;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Integer contentCacheLimit;
descriptor: Ljava/lang/Integer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private javax.servlet.ServletInputStream inputStream;
descriptor: Ljavax/servlet/ServletInputStream;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.io.BufferedReader reader;
descriptor: Ljava/io/BufferedReader;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>(javax.servlet.http.HttpServletRequest);
descriptor: (Ljavax/servlet/http/HttpServletRequest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.servlet.http.HttpServletRequestWrapper.<init>:(Ljavax/servlet/http/HttpServletRequest;)V
1: aload 1
invokeinterface javax.servlet.http.HttpServletRequest.getContentLength:()I
istore 2
start local 2 2: aload 0
3: new java.io.ByteArrayOutputStream
dup
iload 2
iflt 4
iload 2
goto 5
StackMap locals: org.springframework.web.util.ContentCachingRequestWrapper javax.servlet.http.HttpServletRequest int
StackMap stack: org.springframework.web.util.ContentCachingRequestWrapper new 3 new 3
4: sipush 1024
StackMap locals: org.springframework.web.util.ContentCachingRequestWrapper javax.servlet.http.HttpServletRequest int
StackMap stack: org.springframework.web.util.ContentCachingRequestWrapper new 3 new 3 int
5: invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
putfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
6: aload 0
aconst_null
putfield org.springframework.web.util.ContentCachingRequestWrapper.contentCacheLimit:Ljava/lang/Integer;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
0 8 1 request Ljavax/servlet/http/HttpServletRequest;
2 8 2 contentLength I
MethodParameters:
Name Flags
request
public void <init>(javax.servlet.http.HttpServletRequest, int);
descriptor: (Ljavax/servlet/http/HttpServletRequest;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial javax.servlet.http.HttpServletRequestWrapper.<init>:(Ljavax/servlet/http/HttpServletRequest;)V
1: aload 0
new java.io.ByteArrayOutputStream
dup
iload 2
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
putfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
2: aload 0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putfield org.springframework.web.util.ContentCachingRequestWrapper.contentCacheLimit:Ljava/lang/Integer;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
0 4 1 request Ljavax/servlet/http/HttpServletRequest;
0 4 2 contentCacheLimit I
MethodParameters:
Name Flags
request
contentCacheLimit
public javax.servlet.ServletInputStream getInputStream();
descriptor: ()Ljavax/servlet/ServletInputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.inputStream:Ljavax/servlet/ServletInputStream;
ifnonnull 2
1: aload 0
new org.springframework.web.util.ContentCachingRequestWrapper$ContentCachingInputStream
dup
aload 0
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.getRequest:()Ljavax/servlet/ServletRequest;
invokeinterface javax.servlet.ServletRequest.getInputStream:()Ljavax/servlet/ServletInputStream;
invokespecial org.springframework.web.util.ContentCachingRequestWrapper$ContentCachingInputStream.<init>:(Lorg/springframework/web/util/ContentCachingRequestWrapper;Ljavax/servlet/ServletInputStream;)V
putfield org.springframework.web.util.ContentCachingRequestWrapper.inputStream:Ljavax/servlet/ServletInputStream;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.inputStream:Ljavax/servlet/ServletInputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
Exceptions:
throws java.io.IOException
public java.lang.String getCharacterEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokespecial javax.servlet.http.HttpServletRequestWrapper.getCharacterEncoding:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: ldc "ISO-8859-1"
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
1 4 1 enc Ljava/lang/String;
public java.io.BufferedReader getReader();
descriptor: ()Ljava/io/BufferedReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.reader:Ljava/io/BufferedReader;
ifnonnull 2
1: aload 0
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.getInputStream:()Ljavax/servlet/ServletInputStream;
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.getCharacterEncoding:()Ljava/lang/String;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
putfield org.springframework.web.util.ContentCachingRequestWrapper.reader:Ljava/io/BufferedReader;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.reader:Ljava/io/BufferedReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
Exceptions:
throws java.io.IOException
public java.lang.String getParameter(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifne 2
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.isFormPost:()Z
ifeq 2
1: aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.writeRequestParametersToCachedContent:()V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.servlet.http.HttpServletRequestWrapper.getParameter:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.util.Map<java.lang.String, java.lang.String[]> getParameterMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifne 2
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.isFormPost:()Z
ifeq 2
1: aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.writeRequestParametersToCachedContent:()V
2: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.servlet.http.HttpServletRequestWrapper.getParameterMap:()Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
Signature: ()Ljava/util/Map<Ljava/lang/String;[Ljava/lang/String;>;
public java.util.Enumeration<java.lang.String> getParameterNames();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifne 2
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.isFormPost:()Z
ifeq 2
1: aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.writeRequestParametersToCachedContent:()V
2: StackMap locals:
StackMap stack:
aload 0
invokespecial javax.servlet.http.HttpServletRequestWrapper.getParameterNames:()Ljava/util/Enumeration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
Signature: ()Ljava/util/Enumeration<Ljava/lang/String;>;
public java.lang.String[] getParameterValues(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifne 2
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.isFormPost:()Z
ifeq 2
1: aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.writeRequestParametersToCachedContent:()V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.servlet.http.HttpServletRequestWrapper.getParameterValues:(Ljava/lang/String;)[Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private boolean isFormPost();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.getContentType:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 4
aload 1
ldc "application/x-www-form-urlencoded"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 4
2: getstatic org.springframework.http.HttpMethod.POST:Lorg/springframework/http/HttpMethod;
aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.getMethod:()Ljava/lang/String;
invokevirtual org.springframework.http.HttpMethod.matches:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
StackMap locals: java.lang.String
StackMap stack:
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
1 5 1 contentType Ljava/lang/String;
private void writeRequestParametersToCachedContent();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.size:()I
ifne 23
1: aload 0
invokevirtual org.springframework.web.util.ContentCachingRequestWrapper.getCharacterEncoding:()Ljava/lang/String;
astore 1
start local 1 2: aload 0
invokespecial javax.servlet.http.HttpServletRequestWrapper.getParameterMap:()Ljava/util/Map;
astore 2
start local 2 3: aload 2
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 4: goto 19
5: StackMap locals: java.lang.String java.util.Map java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 2
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String[]
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 5
start local 5 7: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
start local 6 8: goto 16
9: StackMap locals: java.lang.String java.util.List java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 10: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
aload 4
aload 1
invokestatic java.net.URLEncoder.encode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
invokevirtual java.io.ByteArrayOutputStream.write:([B)V
11: aload 7
ifnull 16
12: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
bipush 61
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
13: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
aload 7
aload 1
invokestatic java.net.URLEncoder.encode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
invokevirtual java.io.ByteArrayOutputStream.write:([B)V
14: aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 16
15: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
bipush 38
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
end local 7 16: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 6 17: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 19
18: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
bipush 38
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
end local 5 end local 4 19: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 end local 2 end local 1 20: goto 23
21: StackMap locals: org.springframework.web.util.ContentCachingRequestWrapper
StackMap stack: java.io.IOException
astore 1
start local 1 22: new java.lang.IllegalStateException
dup
ldc "Failed to write request parameters to cached content"
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 23: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
2 20 1 requestEncoding Ljava/lang/String;
3 20 2 form Ljava/util/Map<Ljava/lang/String;[Ljava/lang/String;>;
4 20 3 nameIterator Ljava/util/Iterator<Ljava/lang/String;>;
6 19 4 name Ljava/lang/String;
7 19 5 values Ljava/util/List<Ljava/lang/String;>;
8 17 6 valueIterator Ljava/util/Iterator<Ljava/lang/String;>;
10 16 7 value Ljava/lang/String;
22 23 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 20 21 Class java.io.IOException
public byte[] getContentAsByteArray();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.ContentCachingRequestWrapper.cachedContent:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
protected void handleContentOverflow(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/ContentCachingRequestWrapper;
0 1 1 contentCacheLimit I
MethodParameters:
Name Flags
contentCacheLimit
}
SourceFile: "ContentCachingRequestWrapper.java"
NestMembers:
org.springframework.web.util.ContentCachingRequestWrapper$ContentCachingInputStream
InnerClasses:
private ContentCachingInputStream = org.springframework.web.util.ContentCachingRequestWrapper$ContentCachingInputStream of org.springframework.web.util.ContentCachingRequestWrapper