public class org.springframework.web.servlet.resource.GzipResourceResolver extends org.springframework.web.servlet.resource.AbstractResourceResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.servlet.resource.GzipResourceResolver
super_class: org.springframework.web.servlet.resource.AbstractResourceResolver
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.web.servlet.resource.AbstractResourceResolver.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/resource/GzipResourceResolver;
protected org.springframework.core.io.Resource resolveResourceInternal(javax.servlet.http.HttpServletRequest, java.lang.String, java.util.List<? extends org.springframework.core.io.Resource>, org.springframework.web.servlet.resource.ResourceResolverChain);
descriptor: (Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;Ljava/util/List;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Lorg/springframework/core/io/Resource;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
aload 1
aload 2
aload 3
invokeinterface org.springframework.web.servlet.resource.ResourceResolverChain.resolveResource:(Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;Ljava/util/List;)Lorg/springframework/core/io/Resource;
astore 5
start local 5 1: aload 5
ifnull 2
aload 1
ifnull 3
aload 0
aload 1
invokevirtual org.springframework.web.servlet.resource.GzipResourceResolver.isGzipAccepted:(Ljavax/servlet/http/HttpServletRequest;)Z
ifne 3
2: StackMap locals: org.springframework.core.io.Resource
StackMap stack:
aload 5
areturn
3: StackMap locals:
StackMap stack:
new org.springframework.web.servlet.resource.GzipResourceResolver$GzippedResource
dup
aload 5
invokespecial org.springframework.web.servlet.resource.GzipResourceResolver$GzippedResource.<init>:(Lorg/springframework/core/io/Resource;)V
astore 6
start local 6 4: aload 6
invokeinterface org.springframework.core.io.Resource.exists:()Z
ifeq 9
5: aload 6
6: areturn
end local 6 7: StackMap locals:
StackMap stack: java.io.IOException
astore 6
start local 6 8: aload 0
getfield org.springframework.web.servlet.resource.GzipResourceResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "No gzip resource for ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokeinterface org.springframework.core.io.Resource.getFilename:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 6 9: StackMap locals:
StackMap stack:
aload 5
areturn
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 10 0 this Lorg/springframework/web/servlet/resource/GzipResourceResolver;
0 10 1 request Ljavax/servlet/http/HttpServletRequest;
0 10 2 requestPath Ljava/lang/String;
0 10 3 locations Ljava/util/List<+Lorg/springframework/core/io/Resource;>;
0 10 4 chain Lorg/springframework/web/servlet/resource/ResourceResolverChain;
1 10 5 resource Lorg/springframework/core/io/Resource;
4 7 6 gzipped Lorg/springframework/core/io/Resource;
8 9 6 ex Ljava/io/IOException;
Exception table:
from to target type
3 6 7 Class java.io.IOException
Signature: (Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;Ljava/util/List<+Lorg/springframework/core/io/Resource;>;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Lorg/springframework/core/io/Resource;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
2:
3:
MethodParameters:
Name Flags
request
requestPath
locations
chain
private boolean isGzipAccepted(javax.servlet.http.HttpServletRequest);
descriptor: (Ljavax/servlet/http/HttpServletRequest;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "Accept-Encoding"
invokeinterface javax.servlet.http.HttpServletRequest.getHeader:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "gzip"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 2
iconst_1
ireturn
StackMap locals: java.lang.String
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/resource/GzipResourceResolver;
0 3 1 request Ljavax/servlet/http/HttpServletRequest;
1 3 2 value Ljava/lang/String;
MethodParameters:
Name Flags
request
protected java.lang.String resolveUrlPathInternal(java.lang.String, java.util.List<? extends org.springframework.core.io.Resource>, org.springframework.web.servlet.resource.ResourceResolverChain);
descriptor: (Ljava/lang/String;Ljava/util/List;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 1
aload 2
invokeinterface org.springframework.web.servlet.resource.ResourceResolverChain.resolveUrlPath:(Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/resource/GzipResourceResolver;
0 1 1 resourceUrlPath Ljava/lang/String;
0 1 2 locations Ljava/util/List<+Lorg/springframework/core/io/Resource;>;
0 1 3 chain Lorg/springframework/web/servlet/resource/ResourceResolverChain;
Signature: (Ljava/lang/String;Ljava/util/List<+Lorg/springframework/core/io/Resource;>;Lorg/springframework/web/servlet/resource/ResourceResolverChain;)Ljava/lang/String;
MethodParameters:
Name Flags
resourceUrlPath
locations
chain
}
SourceFile: "GzipResourceResolver.java"
NestMembers:
org.springframework.web.servlet.resource.GzipResourceResolver$GzippedResource
InnerClasses:
final GzippedResource = org.springframework.web.servlet.resource.GzipResourceResolver$GzippedResource of org.springframework.web.servlet.resource.GzipResourceResolver
RuntimeVisibleAnnotations:
java.lang.Deprecated()