public class org.apache.coyote.CompressionConfig
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.coyote.CompressionConfig
super_class: java.lang.Object
{
private int compressionLevel;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.regex.Pattern noCompressionUserAgents;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0002) ACC_PRIVATE
private java.lang.String compressibleMimeType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] compressibleMimeTypes;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int compressionMinSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.coyote.CompressionConfig.compressionLevel:I
2: aload 0
aconst_null
putfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
3: aload 0
ldc "text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml"
putfield org.apache.coyote.CompressionConfig.compressibleMimeType:Ljava/lang/String;
4: aload 0
aconst_null
putfield org.apache.coyote.CompressionConfig.compressibleMimeTypes:[Ljava/lang/String;
5: aload 0
sipush 2048
putfield org.apache.coyote.CompressionConfig.compressionMinSize:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/coyote/CompressionConfig;
public void setCompression(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "on"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
iconst_1
putfield org.apache.coyote.CompressionConfig.compressionLevel:I
2: goto 14
StackMap locals:
StackMap stack:
3: aload 1
ldc "force"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 0
iconst_2
putfield org.apache.coyote.CompressionConfig.compressionLevel:I
5: goto 14
StackMap locals:
StackMap stack:
6: aload 1
ldc "off"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: aload 0
iconst_0
putfield org.apache.coyote.CompressionConfig.compressionLevel:I
8: goto 14
9: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
invokevirtual org.apache.coyote.CompressionConfig.setCompressionMinSize:(I)V
10: aload 0
iconst_1
putfield org.apache.coyote.CompressionConfig.compressionLevel:I
11: goto 14
StackMap locals:
StackMap stack: java.lang.Exception
12: pop
13: aload 0
iconst_0
putfield org.apache.coyote.CompressionConfig.compressionLevel:I
14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/coyote/CompressionConfig;
0 15 1 compression Ljava/lang/String;
Exception table:
from to target type
9 11 12 Class java.lang.Exception
MethodParameters:
Name Flags
compression
public java.lang.String getCompression();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.compressionLevel:I
tableswitch { // 0 - 2
0: 1
1: 2
2: 3
default: 4
}
1: StackMap locals:
StackMap stack:
ldc "off"
areturn
2: StackMap locals:
StackMap stack:
ldc "on"
areturn
3: StackMap locals:
StackMap stack:
ldc "force"
areturn
4: StackMap locals:
StackMap stack:
ldc "off"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/coyote/CompressionConfig;
public int getCompressionLevel();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.compressionLevel:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/coyote/CompressionConfig;
public java.lang.String getNoCompressionUserAgents();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
invokevirtual java.util.regex.Pattern.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/coyote/CompressionConfig;
public java.util.regex.Pattern getNoCompressionUserAgentsPattern();
descriptor: ()Ljava/util/regex/Pattern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/coyote/CompressionConfig;
public void setNoCompressionUserAgents(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.length:()I
ifne 3
1: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
2: goto 6
3: StackMap locals:
StackMap stack:
aload 0
4: aload 1
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
5: putfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/coyote/CompressionConfig;
0 7 1 noCompressionUserAgents Ljava/lang/String;
MethodParameters:
Name Flags
noCompressionUserAgents
public java.lang.String getCompressibleMimeType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.compressibleMimeType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/coyote/CompressionConfig;
public void setCompressibleMimeType(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.coyote.CompressionConfig.compressibleMimeType:Ljava/lang/String;
1: aload 0
aconst_null
putfield org.apache.coyote.CompressionConfig.compressibleMimeTypes:[Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/coyote/CompressionConfig;
0 3 1 valueS Ljava/lang/String;
MethodParameters:
Name Flags
valueS
public java.lang.String[] getCompressibleMimeTypes();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.compressibleMimeTypes:[Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
areturn
3: StackMap locals: java.lang.String[]
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 4: new java.util.StringTokenizer
dup
aload 0
getfield org.apache.coyote.CompressionConfig.compressibleMimeType:Ljava/lang/String;
ldc ","
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 5: goto 9
6: StackMap locals: java.util.List java.util.StringTokenizer
StackMap stack:
aload 3
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 4
start local 4 7: aload 4
invokevirtual java.lang.String.length:()I
ifle 9
8: aload 2
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 9: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 6
10: aload 2
aload 2
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 1
11: aload 0
aload 1
putfield org.apache.coyote.CompressionConfig.compressibleMimeTypes:[Ljava/lang/String;
12: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/coyote/CompressionConfig;
1 13 1 result [Ljava/lang/String;
4 13 2 values Ljava/util/List<Ljava/lang/String;>;
5 13 3 tokens Ljava/util/StringTokenizer;
7 9 4 token Ljava/lang/String;
public int getCompressionMinSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.coyote.CompressionConfig.compressionMinSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/coyote/CompressionConfig;
public void setCompressionMinSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.apache.coyote.CompressionConfig.compressionMinSize:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/coyote/CompressionConfig;
0 2 1 compressionMinSize I
MethodParameters:
Name Flags
compressionMinSize
public boolean useCompression(org.apache.coyote.Request, org.apache.coyote.Response);
descriptor: (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.coyote.CompressionConfig.compressionLevel:I
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.coyote.Response.getMimeHeaders:()Lorg/apache/tomcat/util/http/MimeHeaders;
astore 3
start local 3 3: aload 3
ldc "Content-Encoding"
invokevirtual org.apache.tomcat.util.http.MimeHeaders.getValue:(Ljava/lang/String;)Lorg/apache/tomcat/util/buf/MessageBytes;
astore 4
start local 4 4: aload 4
ifnull 8
5: aload 4
ldc "gzip"
invokevirtual org.apache.tomcat.util.buf.MessageBytes.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpne 7
6: aload 4
ldc "br"
invokevirtual org.apache.tomcat.util.buf.MessageBytes.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 8
7: StackMap locals: org.apache.tomcat.util.http.MimeHeaders org.apache.tomcat.util.buf.MessageBytes
StackMap stack:
iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.coyote.CompressionConfig.compressionLevel:I
iconst_2
if_icmpeq 16
9: aload 2
invokevirtual org.apache.coyote.Response.getContentLengthLong:()J
lstore 5
start local 5 10: lload 5
ldc -1
lcmp
ifeq 12
lload 5
aload 0
getfield org.apache.coyote.CompressionConfig.compressionMinSize:I
i2l
lcmp
ifge 12
11: iconst_0
ireturn
12: StackMap locals: long
StackMap stack:
aload 0
invokevirtual org.apache.coyote.CompressionConfig.getCompressibleMimeTypes:()[Ljava/lang/String;
astore 7
start local 7 13: aload 7
ifnull 16
14: aload 7
aload 2
invokevirtual org.apache.coyote.Response.getContentType:()Ljava/lang/String;
invokestatic org.apache.coyote.CompressionConfig.startsWithStringArray:([Ljava/lang/String;Ljava/lang/String;)Z
ifne 16
15: iconst_0
ireturn
end local 7 end local 5 16: StackMap locals:
StackMap stack:
aload 3
ldc "accept-encoding"
invokestatic org.apache.tomcat.util.http.ResponseUtil.addVaryFieldName:(Lorg/apache/tomcat/util/http/MimeHeaders;Ljava/lang/String;)V
17: aload 1
invokevirtual org.apache.coyote.Request.getMimeHeaders:()Lorg/apache/tomcat/util/http/MimeHeaders;
ldc "accept-encoding"
invokevirtual org.apache.tomcat.util.http.MimeHeaders.values:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 5
start local 5 18: iconst_0
istore 6
start local 6 19: goto 31
20: StackMap locals: java.util.Enumeration int
StackMap stack:
aconst_null
astore 7
start local 7 21: new java.io.StringReader
dup
aload 5
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokestatic org.apache.tomcat.util.http.parser.AcceptEncoding.parse:(Ljava/io/StringReader;)Ljava/util/List;
astore 7
22: goto 25
StackMap locals: org.apache.coyote.CompressionConfig org.apache.coyote.Request org.apache.coyote.Response org.apache.tomcat.util.http.MimeHeaders org.apache.tomcat.util.buf.MessageBytes java.util.Enumeration int java.util.List
StackMap stack: java.io.IOException
23: pop
24: iconst_0
ireturn
25: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 30
StackMap locals: org.apache.coyote.CompressionConfig org.apache.coyote.Request org.apache.coyote.Response org.apache.tomcat.util.http.MimeHeaders org.apache.tomcat.util.buf.MessageBytes java.util.Enumeration int java.util.List top java.util.Iterator
StackMap stack:
26: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.tomcat.util.http.parser.AcceptEncoding
astore 8
start local 8 27: ldc "gzip"
aload 8
invokevirtual org.apache.tomcat.util.http.parser.AcceptEncoding.getEncoding:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 30
28: iconst_1
istore 6
29: goto 31
end local 8 30: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 26
end local 7 31: StackMap locals: org.apache.coyote.CompressionConfig org.apache.coyote.Request org.apache.coyote.Response org.apache.tomcat.util.http.MimeHeaders org.apache.tomcat.util.buf.MessageBytes java.util.Enumeration int
StackMap stack:
iload 6
ifne 32
aload 5
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 20
32: StackMap locals:
StackMap stack:
iload 6
ifne 34
33: iconst_0
ireturn
34: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.coyote.CompressionConfig.compressionLevel:I
iconst_2
if_icmpeq 42
35: aload 0
getfield org.apache.coyote.CompressionConfig.noCompressionUserAgents:Ljava/util/regex/Pattern;
astore 7
start local 7 36: aload 7
ifnull 42
37: aload 1
invokevirtual org.apache.coyote.Request.getMimeHeaders:()Lorg/apache/tomcat/util/http/MimeHeaders;
ldc "user-agent"
invokevirtual org.apache.tomcat.util.http.MimeHeaders.getValue:(Ljava/lang/String;)Lorg/apache/tomcat/util/buf/MessageBytes;
astore 8
start local 8 38: aload 8
ifnull 42
39: aload 8
invokevirtual org.apache.tomcat.util.buf.MessageBytes.toString:()Ljava/lang/String;
astore 9
start local 9 40: aload 7
aload 9
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 42
41: iconst_0
ireturn
end local 9 end local 8 end local 7 42: StackMap locals:
StackMap stack:
aload 2
ldc -1
invokevirtual org.apache.coyote.Response.setContentLength:(J)V
43: aload 3
ldc "Content-Encoding"
invokevirtual org.apache.tomcat.util.http.MimeHeaders.setValue:(Ljava/lang/String;)Lorg/apache/tomcat/util/buf/MessageBytes;
ldc "gzip"
invokevirtual org.apache.tomcat.util.buf.MessageBytes.setString:(Ljava/lang/String;)V
44: iconst_1
ireturn
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 45 0 this Lorg/apache/coyote/CompressionConfig;
0 45 1 request Lorg/apache/coyote/Request;
0 45 2 response Lorg/apache/coyote/Response;
3 45 3 responseHeaders Lorg/apache/tomcat/util/http/MimeHeaders;
4 45 4 contentEncodingMB Lorg/apache/tomcat/util/buf/MessageBytes;
10 16 5 contentLength J
13 16 7 compressibleMimeTypes [Ljava/lang/String;
18 45 5 headerValues Ljava/util/Enumeration<Ljava/lang/String;>;
19 45 6 foundGzip Z
21 31 7 acceptEncodings Ljava/util/List<Lorg/apache/tomcat/util/http/parser/AcceptEncoding;>;
27 30 8 acceptEncoding Lorg/apache/tomcat/util/http/parser/AcceptEncoding;
36 42 7 noCompressionUserAgents Ljava/util/regex/Pattern;
38 42 8 userAgentValueMB Lorg/apache/tomcat/util/buf/MessageBytes;
40 42 9 userAgentValue Ljava/lang/String;
Exception table:
from to target type
21 22 23 Class java.io.IOException
MethodParameters:
Name Flags
request
response
private static boolean startsWithStringArray(java.lang.String[], java.lang.String);
descriptor: ([Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 1
aload 0
iload 2
aaload
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
arraylength
if_icmplt 4
end local 2 8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 sArray [Ljava/lang/String;
0 9 1 value Ljava/lang/String;
3 8 2 i I
MethodParameters:
Name Flags
sArray
value
}
SourceFile: "CompressionConfig.java"