public class org.springframework.web.servlet.view.ContentNegotiatingViewResolver extends org.springframework.web.context.support.WebApplicationObjectSupport implements org.springframework.web.servlet.ViewResolver, org.springframework.core.Ordered, org.springframework.beans.factory.InitializingBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.servlet.view.ContentNegotiatingViewResolver
super_class: org.springframework.web.context.support.WebApplicationObjectSupport
{
private org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager;
descriptor: Lorg/springframework/web/accept/ContentNegotiationManager;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final org.springframework.web.accept.ContentNegotiationManagerFactoryBean cnmFactoryBean;
descriptor: Lorg/springframework/web/accept/ContentNegotiationManagerFactoryBean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean useNotAcceptableStatusCode;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.List<org.springframework.web.servlet.View> defaultViews;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/springframework/web/servlet/View;>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.util.List<org.springframework.web.servlet.ViewResolver> viewResolvers;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/springframework/web/servlet/ViewResolver;>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private int order;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final org.springframework.web.servlet.View NOT_ACCEPTABLE_VIEW;
descriptor: Lorg/springframework/web/servlet/View;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.springframework.web.servlet.view.ContentNegotiatingViewResolver$1
dup
invokespecial org.springframework.web.servlet.view.ContentNegotiatingViewResolver$1.<init>:()V
putstatic org.springframework.web.servlet.view.ContentNegotiatingViewResolver.NOT_ACCEPTABLE_VIEW:Lorg/springframework/web/servlet/View;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.web.context.support.WebApplicationObjectSupport.<init>:()V
1: aload 0
new org.springframework.web.accept.ContentNegotiationManagerFactoryBean
dup
invokespecial org.springframework.web.accept.ContentNegotiationManagerFactoryBean.<init>:()V
putfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.cnmFactoryBean:Lorg/springframework/web/accept/ContentNegotiationManagerFactoryBean;
2: aload 0
iconst_0
putfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.useNotAcceptableStatusCode:Z
3: aload 0
ldc -2147483648
putfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.order:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
public void setContentNegotiationManager(org.springframework.web.accept.ContentNegotiationManager);
descriptor: (Lorg/springframework/web/accept/ContentNegotiationManager;)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.servlet.view.ContentNegotiatingViewResolver.contentNegotiationManager:Lorg/springframework/web/accept/ContentNegotiationManager;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 2 1 contentNegotiationManager Lorg/springframework/web/accept/ContentNegotiationManager;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
contentNegotiationManager
public org.springframework.web.accept.ContentNegotiationManager getContentNegotiationManager();
descriptor: ()Lorg/springframework/web/accept/ContentNegotiationManager;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.contentNegotiationManager:Lorg/springframework/web/accept/ContentNegotiationManager;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void setUseNotAcceptableStatusCode(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.servlet.view.ContentNegotiatingViewResolver.useNotAcceptableStatusCode:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 2 1 useNotAcceptableStatusCode Z
MethodParameters:
Name Flags
useNotAcceptableStatusCode
public boolean isUseNotAcceptableStatusCode();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.useNotAcceptableStatusCode:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
public void setDefaultViews(java.util.List<org.springframework.web.servlet.View>);
descriptor: (Ljava/util/List;)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.servlet.view.ContentNegotiatingViewResolver.defaultViews:Ljava/util/List;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 2 1 defaultViews Ljava/util/List<Lorg/springframework/web/servlet/View;>;
Signature: (Ljava/util/List<Lorg/springframework/web/servlet/View;>;)V
MethodParameters:
Name Flags
defaultViews
public java.util.List<org.springframework.web.servlet.View> getDefaultViews();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.defaultViews:Ljava/util/List;
ifnull 1
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.defaultViews:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
goto 2
1: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
2: StackMap locals:
StackMap stack: java.util.List
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
Signature: ()Ljava/util/List<Lorg/springframework/web/servlet/View;>;
public void setViewResolvers(java.util.List<org.springframework.web.servlet.ViewResolver>);
descriptor: (Ljava/util/List;)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.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 2 1 viewResolvers Ljava/util/List<Lorg/springframework/web/servlet/ViewResolver;>;
Signature: (Ljava/util/List<Lorg/springframework/web/servlet/ViewResolver;>;)V
MethodParameters:
Name Flags
viewResolvers
public java.util.List<org.springframework.web.servlet.ViewResolver> getViewResolvers();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
ifnull 1
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
goto 2
1: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
2: StackMap locals:
StackMap stack: java.util.List
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
Signature: ()Ljava/util/List<Lorg/springframework/web/servlet/ViewResolver;>;
public void setOrder(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.springframework.web.servlet.view.ContentNegotiatingViewResolver.order:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 2 1 order I
MethodParameters:
Name Flags
order
public int getOrder();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.order:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
protected void initServletContext(ServletContext);
descriptor: (LServletContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tServletContext cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
MethodParameters:
Name Flags
servletContext
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.contentNegotiationManager:Lorg/springframework/web/accept/ContentNegotiationManager;
ifnonnull 2
1: aload 0
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.cnmFactoryBean:Lorg/springframework/web/accept/ContentNegotiationManagerFactoryBean;
invokevirtual org.springframework.web.accept.ContentNegotiationManagerFactoryBean.build:()Lorg/springframework/web/accept/ContentNegotiationManager;
putfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.contentNegotiationManager:Lorg/springframework/web/accept/ContentNegotiationManager;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
ifnull 3
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.logger:Lorg/apache/commons/logging/Log;
ldc "No ViewResolvers configured"
invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
public org.springframework.web.servlet.View resolveViewName(java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/util/Locale;)Lorg/springframework/web/servlet/View;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tThe method getRequest() from the type ServletRequestAttributes refers to the missing type HttpServletRequest\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
viewName
locale
protected java.util.List<org.springframework.http.MediaType> getMediaTypes(HttpServletRequest);
descriptor: (LHttpServletRequest;)Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tHttpServletRequest cannot be resolved to a type\n\tNo exception of type HttpMediaTypeNotAcceptableException can be thrown; an exception type must be a subclass of Throwable\n\tThe method getMessage() is undefined for the type HttpMediaTypeNotAcceptableException\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
Signature: (LHttpServletRequest;)Ljava/util/List<Lorg/springframework/http/MediaType;>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
request
java.util.List<org.springframework.http.MediaType> getProducibleMediaTypes(HttpServletRequest);
descriptor: (LHttpServletRequest;)Ljava/util/List;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tHttpServletRequest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
Signature: (LHttpServletRequest;)Ljava/util/List<Lorg/springframework/http/MediaType;>;
MethodParameters:
Name Flags
request
private org.springframework.http.MediaType getMostSpecificMediaType(org.springframework.http.MediaType, org.springframework.http.MediaType);
descriptor: (Lorg/springframework/http/MediaType;Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokevirtual org.springframework.http.MediaType.copyQualityValue:(Lorg/springframework/http/MediaType;)Lorg/springframework/http/MediaType;
astore 2
1: getstatic org.springframework.http.MediaType.SPECIFICITY_COMPARATOR:Ljava/util/Comparator;
aload 1
aload 2
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
ifge 2
aload 1
goto 3
StackMap locals:
StackMap stack:
2: aload 2
StackMap locals:
StackMap stack: org.springframework.http.MediaType
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 4 1 acceptType Lorg/springframework/http/MediaType;
0 4 2 produceType Lorg/springframework/http/MediaType;
MethodParameters:
Name Flags
acceptType
produceType
private java.util.List<org.springframework.web.servlet.View> getCandidateViews(java.lang.String, java.util.Locale, java.util.List<org.springframework.http.MediaType>);
descriptor: (Ljava/lang/String;Ljava/util/Locale;Ljava/util/List;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 1: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
ifnull 22
2: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.contentNegotiationManager:Lorg/springframework/web/accept/ContentNegotiationManager;
ifnull 3
iconst_1
goto 4
StackMap locals: java.util.List
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: ldc "No ContentNegotiationManager set"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
5: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.viewResolvers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 21
StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.servlet.ViewResolver
astore 5
start local 5 7: aload 5
aload 1
aload 2
invokeinterface org.springframework.web.servlet.ViewResolver.resolveViewName:(Ljava/lang/String;Ljava/util/Locale;)Lorg/springframework/web/servlet/View;
astore 7
start local 7 8: aload 7
ifnull 10
9: aload 4
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List org.springframework.web.servlet.ViewResolver java.util.Iterator org.springframework.web.servlet.View
StackMap stack:
aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 20
StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List org.springframework.web.servlet.ViewResolver java.util.Iterator org.springframework.web.servlet.View top java.util.Iterator
StackMap stack:
11: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.http.MediaType
astore 8
start local 8 12: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.contentNegotiationManager:Lorg/springframework/web/accept/ContentNegotiationManager;
aload 8
invokevirtual org.springframework.web.accept.ContentNegotiationManager.resolveFileExtensions:(Lorg/springframework/http/MediaType;)Ljava/util/List;
astore 10
start local 10 13: aload 10
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 12
goto 19
StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List org.springframework.web.servlet.ViewResolver java.util.Iterator org.springframework.web.servlet.View org.springframework.http.MediaType java.util.Iterator java.util.List top java.util.Iterator
StackMap stack:
14: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 11
start local 11 15: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 13
start local 13 16: aload 5
aload 13
aload 2
invokeinterface org.springframework.web.servlet.ViewResolver.resolveViewName:(Ljava/lang/String;Ljava/util/Locale;)Lorg/springframework/web/servlet/View;
astore 7
17: aload 7
ifnull 19
18: aload 4
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 13 end local 11 19: StackMap locals:
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
end local 10 end local 8 20: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List org.springframework.web.servlet.ViewResolver java.util.Iterator org.springframework.web.servlet.View top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
end local 7 end local 5 21: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
22: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.lang.String java.util.Locale java.util.List java.util.List
StackMap stack:
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.defaultViews:Ljava/util/List;
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifne 24
23: aload 4
aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.defaultViews:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
24: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 25 1 viewName Ljava/lang/String;
0 25 2 locale Ljava/util/Locale;
0 25 3 requestedMediaTypes Ljava/util/List<Lorg/springframework/http/MediaType;>;
1 25 4 candidateViews Ljava/util/List<Lorg/springframework/web/servlet/View;>;
7 21 5 viewResolver Lorg/springframework/web/servlet/ViewResolver;
8 21 7 view Lorg/springframework/web/servlet/View;
12 20 8 requestedMediaType Lorg/springframework/http/MediaType;
13 20 10 extensions Ljava/util/List<Ljava/lang/String;>;
15 19 11 extension Ljava/lang/String;
16 19 13 viewNameWithExtension Ljava/lang/String;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/String;Ljava/util/Locale;Ljava/util/List<Lorg/springframework/http/MediaType;>;)Ljava/util/List<Lorg/springframework/web/servlet/View;>;
MethodParameters:
Name Flags
viewName
locale
requestedMediaTypes
private org.springframework.web.servlet.View getBestView(java.util.List<org.springframework.web.servlet.View>, java.util.List<org.springframework.http.MediaType>, org.springframework.web.context.request.RequestAttributes);
descriptor: (Ljava/util/List;Ljava/util/List;Lorg/springframework/web/context/request/RequestAttributes;)Lorg/springframework/web/servlet/View;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.util.List java.util.List org.springframework.web.context.request.RequestAttributes top java.util.Iterator
StackMap stack:
1: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.servlet.View
astore 4
start local 4 2: aload 4
instanceof org.springframework.web.servlet.SmartView
ifeq 6
3: aload 4
checkcast org.springframework.web.servlet.SmartView
astore 6
start local 6 4: aload 6
invokeinterface org.springframework.web.servlet.SmartView.isRedirectView:()Z
ifeq 6
5: aload 4
areturn
end local 6 end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
7: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 19
StackMap locals:
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.http.MediaType
astore 4
start local 4 9: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 18
StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.util.List java.util.List org.springframework.web.context.request.RequestAttributes org.springframework.http.MediaType java.util.Iterator top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.web.servlet.View
astore 6
start local 6 11: aload 6
invokeinterface org.springframework.web.servlet.View.getContentType:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 18
12: aload 6
invokeinterface org.springframework.web.servlet.View.getContentType:()Ljava/lang/String;
invokestatic org.springframework.http.MediaType.parseMediaType:(Ljava/lang/String;)Lorg/springframework/http/MediaType;
astore 8
start local 8 13: aload 4
aload 8
invokevirtual org.springframework.http.MediaType.isCompatibleWith:(Lorg/springframework/http/MediaType;)Z
ifeq 18
14: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 16
15: aload 0
getfield org.springframework.web.servlet.view.ContentNegotiatingViewResolver.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Selected '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' given "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
16: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.util.List java.util.List org.springframework.web.context.request.RequestAttributes org.springframework.http.MediaType java.util.Iterator org.springframework.web.servlet.View java.util.Iterator org.springframework.http.MediaType
StackMap stack:
aload 3
getstatic org.springframework.web.servlet.View.SELECTED_CONTENT_TYPE:Ljava/lang/String;
aload 4
iconst_0
invokeinterface org.springframework.web.context.request.RequestAttributes.setAttribute:(Ljava/lang/String;Ljava/lang/Object;I)V
17: aload 6
areturn
end local 8 end local 6 18: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.util.List java.util.List org.springframework.web.context.request.RequestAttributes org.springframework.http.MediaType java.util.Iterator top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
end local 4 19: StackMap locals: org.springframework.web.servlet.view.ContentNegotiatingViewResolver java.util.List java.util.List org.springframework.web.context.request.RequestAttributes top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
20: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/springframework/web/servlet/view/ContentNegotiatingViewResolver;
0 21 1 candidateViews Ljava/util/List<Lorg/springframework/web/servlet/View;>;
0 21 2 requestedMediaTypes Ljava/util/List<Lorg/springframework/http/MediaType;>;
0 21 3 attrs Lorg/springframework/web/context/request/RequestAttributes;
2 6 4 candidateView Lorg/springframework/web/servlet/View;
4 6 6 smartView Lorg/springframework/web/servlet/SmartView;
9 19 4 mediaType Lorg/springframework/http/MediaType;
11 18 6 candidateView Lorg/springframework/web/servlet/View;
13 18 8 candidateContentType Lorg/springframework/http/MediaType;
Signature: (Ljava/util/List<Lorg/springframework/web/servlet/View;>;Ljava/util/List<Lorg/springframework/http/MediaType;>;Lorg/springframework/web/context/request/RequestAttributes;)Lorg/springframework/web/servlet/View;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
candidateViews
requestedMediaTypes
attrs
}
SourceFile: "ContentNegotiatingViewResolver.java"
NestMembers:
org.springframework.web.servlet.view.ContentNegotiatingViewResolver$1
InnerClasses:
org.springframework.web.servlet.view.ContentNegotiatingViewResolver$1