public class org.springframework.web.accept.PathExtensionContentNegotiationStrategy extends org.springframework.web.accept.AbstractMappingContentNegotiationStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.accept.PathExtensionContentNegotiationStrategy
super_class: org.springframework.web.accept.AbstractMappingContentNegotiationStrategy
{
private org.springframework.web.util.UrlPathHelper urlPathHelper;
descriptor: Lorg/springframework/web/util/UrlPathHelper;
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
aconst_null
invokespecial org.springframework.web.accept.PathExtensionContentNegotiationStrategy.<init>:(Ljava/util/Map;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/accept/PathExtensionContentNegotiationStrategy;
public void <init>(java.util.Map<java.lang.String, org.springframework.http.MediaType>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.<init>:(Ljava/util/Map;)V
1: aload 0
new org.springframework.web.util.UrlPathHelper
dup
invokespecial org.springframework.web.util.UrlPathHelper.<init>:()V
putfield org.springframework.web.accept.PathExtensionContentNegotiationStrategy.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
2: aload 0
iconst_0
invokevirtual org.springframework.web.accept.PathExtensionContentNegotiationStrategy.setUseRegisteredExtensionsOnly:(Z)V
3: aload 0
iconst_1
invokevirtual org.springframework.web.accept.PathExtensionContentNegotiationStrategy.setIgnoreUnknownExtensions:(Z)V
4: aload 0
getfield org.springframework.web.accept.PathExtensionContentNegotiationStrategy.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
iconst_0
invokevirtual org.springframework.web.util.UrlPathHelper.setUrlDecode:(Z)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/web/accept/PathExtensionContentNegotiationStrategy;
0 6 1 mediaTypes Ljava/util/Map<Ljava/lang/String;Lorg/springframework/http/MediaType;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Lorg/springframework/http/MediaType;>;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
mediaTypes
public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper);
descriptor: (Lorg/springframework/web/util/UrlPathHelper;)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.springframework.web.accept.PathExtensionContentNegotiationStrategy.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/accept/PathExtensionContentNegotiationStrategy;
0 2 1 urlPathHelper Lorg/springframework/web/util/UrlPathHelper;
MethodParameters:
Name Flags
urlPathHelper
public void setUseJaf(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack: org.springframework.web.accept.PathExtensionContentNegotiationStrategy
1: iconst_1
StackMap locals: org.springframework.web.accept.PathExtensionContentNegotiationStrategy int
StackMap stack: org.springframework.web.accept.PathExtensionContentNegotiationStrategy int
2: invokevirtual org.springframework.web.accept.PathExtensionContentNegotiationStrategy.setUseRegisteredExtensionsOnly:(Z)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/accept/PathExtensionContentNegotiationStrategy;
0 4 1 useJaf Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
useJaf
protected java.lang.String getMediaTypeKey(org.springframework.web.context.request.NativeWebRequest);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljavax/servlet/http/HttpServletRequest;
invokeinterface org.springframework.web.context.request.NativeWebRequest.getNativeRequest:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.servlet.http.HttpServletRequest
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: javax.servlet.http.HttpServletRequest
StackMap stack:
aload 0
getfield org.springframework.web.accept.PathExtensionContentNegotiationStrategy.urlPathHelper:Lorg/springframework/web/util/UrlPathHelper;
aload 2
invokevirtual org.springframework.web.util.UrlPathHelper.getLookupPathForRequest:(Ljavax/servlet/http/HttpServletRequest;)Ljava/lang/String;
astore 3
start local 3 4: aload 3
invokestatic org.springframework.web.util.UriUtils.extractFileExtension:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 5: aload 4
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 6
aload 4
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
goto 7
StackMap locals: java.lang.String java.lang.String
StackMap stack:
6: aconst_null
StackMap locals:
StackMap stack: java.lang.String
7: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/web/accept/PathExtensionContentNegotiationStrategy;
0 8 1 webRequest Lorg/springframework/web/context/request/NativeWebRequest;
1 8 2 request Ljavax/servlet/http/HttpServletRequest;
4 8 3 path Ljava/lang/String;
5 8 4 extension Ljava/lang/String;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
webRequest
public org.springframework.http.MediaType getMediaTypeForResource(org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;)Lorg/springframework/http/MediaType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ldc "Resource must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aconst_null
astore 2
start local 2 2: aload 1
invokeinterface org.springframework.core.io.Resource.getFilename:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
invokestatic org.springframework.util.StringUtils.getFilenameExtension:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 4
ifnull 6
5: aload 0
aload 4
invokevirtual org.springframework.web.accept.PathExtensionContentNegotiationStrategy.lookupMediaType:(Ljava/lang/String;)Lorg/springframework/http/MediaType;
astore 2
6: StackMap locals: org.springframework.http.MediaType java.lang.String java.lang.String
StackMap stack:
aload 2
ifnonnull 8
7: aload 3
invokestatic org.springframework.http.MediaTypeFactory.getMediaType:(Ljava/lang/String;)Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.springframework.http.MediaType
astore 2
8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/web/accept/PathExtensionContentNegotiationStrategy;
0 9 1 resource Lorg/springframework/core/io/Resource;
2 9 2 mediaType Lorg/springframework/http/MediaType;
3 9 3 filename Ljava/lang/String;
4 9 4 extension Ljava/lang/String;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
resource
}
SourceFile: "PathExtensionContentNegotiationStrategy.java"