public abstract class org.springframework.web.accept.AbstractMappingContentNegotiationStrategy extends org.springframework.web.accept.MappingMediaTypeFileExtensionResolver implements org.springframework.web.accept.ContentNegotiationStrategy
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.web.accept.AbstractMappingContentNegotiationStrategy
super_class: org.springframework.web.accept.MappingMediaTypeFileExtensionResolver
{
protected final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private boolean useRegisteredExtensionsOnly;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean ignoreUnknownExtensions;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.util.Map<java.lang.String, org.springframework.http.MediaType>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.springframework.web.accept.MappingMediaTypeFileExtensionResolver.<init>:(Ljava/util/Map;)V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.logger:Lorg/apache/commons/logging/Log;
2: aload 0
iconst_0
putfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.useRegisteredExtensionsOnly:Z
3: aload 0
iconst_0
putfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.ignoreUnknownExtensions:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 5 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 setUseRegisteredExtensionsOnly(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
putfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.useRegisteredExtensionsOnly:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 2 1 useRegisteredExtensionsOnly Z
MethodParameters:
Name Flags
useRegisteredExtensionsOnly
public boolean isUseRegisteredExtensionsOnly();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.useRegisteredExtensionsOnly:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
public void setIgnoreUnknownExtensions(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
putfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.ignoreUnknownExtensions:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 2 1 ignoreUnknownExtensions Z
MethodParameters:
Name Flags
ignoreUnknownExtensions
public boolean isIgnoreUnknownExtensions();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.ignoreUnknownExtensions:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
public java.util.List<org.springframework.http.MediaType> resolveMediaTypes(org.springframework.web.context.request.NativeWebRequest);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
aload 1
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.getMediaTypeKey:(Lorg/springframework/web/context/request/NativeWebRequest;)Ljava/lang/String;
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey:(Lorg/springframework/web/context/request/NativeWebRequest;Ljava/lang/String;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 1 1 webRequest Lorg/springframework/web/context/request/NativeWebRequest;
Exceptions:
throws org.springframework.web.HttpMediaTypeNotAcceptableException
Signature: (Lorg/springframework/web/context/request/NativeWebRequest;)Ljava/util/List<Lorg/springframework/http/MediaType;>;
MethodParameters:
Name Flags
webRequest
public java.util.List<org.springframework.http.MediaType> resolveMediaTypeKey(org.springframework.web.context.request.NativeWebRequest, java.lang.String);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 9
1: aload 0
aload 2
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.lookupMediaType:(Ljava/lang/String;)Lorg/springframework/http/MediaType;
astore 3
start local 3 2: aload 3
ifnull 5
3: aload 0
aload 2
aload 3
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.handleMatch:(Ljava/lang/String;Lorg/springframework/http/MediaType;)V
4: aload 3
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
5: StackMap locals: org.springframework.http.MediaType
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.handleNoMatch:(Lorg/springframework/web/context/request/NativeWebRequest;Ljava/lang/String;)Lorg/springframework/http/MediaType;
astore 3
6: aload 3
ifnull 9
7: aload 0
aload 2
aload 3
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.addMapping:(Ljava/lang/String;Lorg/springframework/http/MediaType;)V
8: aload 3
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
end local 3 9: StackMap locals:
StackMap stack:
getstatic org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.MEDIA_TYPE_ALL_LIST:Ljava/util/List;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 10 1 webRequest Lorg/springframework/web/context/request/NativeWebRequest;
0 10 2 key Ljava/lang/String;
2 9 3 mediaType Lorg/springframework/http/MediaType;
Exceptions:
throws org.springframework.web.HttpMediaTypeNotAcceptableException
Signature: (Lorg/springframework/web/context/request/NativeWebRequest;Ljava/lang/String;)Ljava/util/List<Lorg/springframework/http/MediaType;>;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
webRequest
key
protected abstract java.lang.String getMediaTypeKey(org.springframework.web.context.request.NativeWebRequest);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;)Ljava/lang/String;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
request
protected void handleMatch(java.lang.String, org.springframework.http.MediaType);
descriptor: (Ljava/lang/String;Lorg/springframework/http/MediaType;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 1 1 key Ljava/lang/String;
0 1 2 mediaType Lorg/springframework/http/MediaType;
MethodParameters:
Name Flags
key
mediaType
protected org.springframework.http.MediaType handleNoMatch(org.springframework.web.context.request.NativeWebRequest, java.lang.String);
descriptor: (Lorg/springframework/web/context/request/NativeWebRequest;Ljava/lang/String;)Lorg/springframework/http/MediaType;
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 org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.isUseRegisteredExtensionsOnly:()Z
ifne 4
1: new java.lang.StringBuilder
dup
ldc "file."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.springframework.http.MediaTypeFactory.getMediaType:(Ljava/lang/String;)Ljava/util/Optional;
astore 3
start local 3 2: aload 3
invokevirtual java.util.Optional.isPresent:()Z
ifeq 4
3: aload 3
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast org.springframework.http.MediaType
areturn
end local 3 4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.isIgnoreUnknownExtensions:()Z
ifeq 6
5: aconst_null
areturn
6: StackMap locals:
StackMap stack:
new org.springframework.web.HttpMediaTypeNotAcceptableException
dup
aload 0
invokevirtual org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.getAllMediaTypes:()Ljava/util/List;
invokespecial org.springframework.web.HttpMediaTypeNotAcceptableException.<init>:(Ljava/util/List;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/web/accept/AbstractMappingContentNegotiationStrategy;
0 7 1 request Lorg/springframework/web/context/request/NativeWebRequest;
0 7 2 key Ljava/lang/String;
2 4 3 mediaType Ljava/util/Optional<Lorg/springframework/http/MediaType;>;
Exceptions:
throws org.springframework.web.HttpMediaTypeNotAcceptableException
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
request
key
}
SourceFile: "AbstractMappingContentNegotiationStrategy.java"