public class org.jboss.resteasy.core.request.ServerDrivenNegotiation
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.core.request.ServerDrivenNegotiation
super_class: java.lang.Object
{
private java.util.Map<javax.ws.rs.core.MediaType, org.jboss.resteasy.core.request.QualityValue> requestedMediaTypes;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljavax/ws/rs/core/MediaType;Lorg/jboss/resteasy/core/request/QualityValue;>;
private java.util.Map<java.lang.String, org.jboss.resteasy.core.request.QualityValue> requestedCharacterSets;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/request/QualityValue;>;
private java.util.Map<java.lang.String, org.jboss.resteasy.core.request.QualityValue> requestedEncodings;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/request/QualityValue;>;
private java.util.Map<java.util.Locale, org.jboss.resteasy.core.request.QualityValue> requestedLanguages;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/util/Locale;Lorg/jboss/resteasy/core/request/QualityValue;>;
private int mediaRadix;
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
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
2: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
3: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedEncodings:Ljava/util/Map;
4: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedLanguages:Ljava/util/Map;
5: aload 0
iconst_1
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.mediaRadix:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
public void setAcceptHeaders(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
1: aload 1
ifnonnull 3
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
invokestatic org.jboss.resteasy.core.request.AcceptHeaders.getMediaTypeQualityValues:(Ljava/lang/String;)Ljava/util/Map;
astore 5
start local 5 7: aload 5
ifnonnull 9
8: return
9: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map java.lang.String java.util.Iterator java.util.Map
StackMap stack:
aload 2
ifnonnull 11
10: aload 5
astore 2
goto 12
11: StackMap locals:
StackMap stack:
aload 2
aload 5
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 5 end local 3 12: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: aload 0
aload 2
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
14: aload 2
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 15: goto 17
16: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map java.util.Iterator
StackMap stack:
aload 0
aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.mediaRadix:I
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokeinterface java.util.Map.size:()I
invokestatic java.lang.Math.max:(II)I
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.mediaRadix:I
17: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
end local 3 18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 19 1 headerValues Ljava/util/List<Ljava/lang/String;>;
4 19 2 requested Ljava/util/Map<Ljavax/ws/rs/core/MediaType;Lorg/jboss/resteasy/core/request/QualityValue;>;
6 12 3 headerValue Ljava/lang/String;
7 12 5 mapping Ljava/util/Map<Ljavax/ws/rs/core/MediaType;Lorg/jboss/resteasy/core/request/QualityValue;>;
15 18 3 it Ljava/util/Iterator<Ljavax/ws/rs/core/MediaType;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
headerValues
public void setAcceptCharsetHeaders(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
1: aload 1
ifnonnull 3
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
invokestatic org.jboss.resteasy.core.request.AcceptHeaders.getStringQualityValues:(Ljava/lang/String;)Ljava/util/Map;
astore 5
start local 5 7: aload 5
ifnonnull 9
8: return
9: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map java.lang.String java.util.Iterator java.util.Map
StackMap stack:
aload 2
ifnonnull 11
10: aload 5
astore 2
goto 12
11: StackMap locals:
StackMap stack:
aload 2
aload 5
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 5 end local 3 12: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: aload 0
aload 2
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 15 1 headerValues Ljava/util/List<Ljava/lang/String;>;
4 15 2 requested Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/request/QualityValue;>;
6 12 3 headerValue Ljava/lang/String;
7 12 5 mapping Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/request/QualityValue;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
headerValues
public void setAcceptEncodingHeaders(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedEncodings:Ljava/util/Map;
1: aload 1
ifnonnull 3
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
invokestatic org.jboss.resteasy.core.request.AcceptHeaders.getStringQualityValues:(Ljava/lang/String;)Ljava/util/Map;
astore 5
start local 5 7: aload 5
ifnonnull 9
8: return
9: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map java.lang.String java.util.Iterator java.util.Map
StackMap stack:
aload 2
ifnonnull 11
10: aload 5
astore 2
goto 12
11: StackMap locals:
StackMap stack:
aload 2
aload 5
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 5 end local 3 12: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: aload 0
aload 2
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedEncodings:Ljava/util/Map;
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 15 1 headerValues Ljava/util/List<Ljava/lang/String;>;
4 15 2 requested Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/request/QualityValue;>;
6 12 3 headerValue Ljava/lang/String;
7 12 5 mapping Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/request/QualityValue;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
headerValues
public void setAcceptLanguageHeaders(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedLanguages:Ljava/util/Map;
1: aload 1
ifnonnull 3
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
invokestatic org.jboss.resteasy.core.request.AcceptHeaders.getLocaleQualityValues:(Ljava/lang/String;)Ljava/util/Map;
astore 5
start local 5 7: aload 5
ifnonnull 9
8: return
9: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map java.lang.String java.util.Iterator java.util.Map
StackMap stack:
aload 2
ifnonnull 11
10: aload 5
astore 2
goto 12
11: StackMap locals:
StackMap stack:
aload 2
aload 5
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 5 end local 3 12: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: aload 0
aload 2
putfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedLanguages:Ljava/util/Map;
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 15 1 headerValues Ljava/util/List<Ljava/lang/String;>;
4 15 2 requested Ljava/util/Map<Ljava/util/Locale;Lorg/jboss/resteasy/core/request/QualityValue;>;
6 12 3 headerValue Ljava/lang/String;
7 12 5 mapping Ljava/util/Map<Ljava/util/Locale;Lorg/jboss/resteasy/core/request/QualityValue;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
headerValues
public javax.ws.rs.core.Variant getBestMatch(java.util.List<javax.ws.rs.core.Variant>);
descriptor: (Ljava/util/List;)Ljavax/ws/rs/core/Variant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 16
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.Variant
astore 4
start local 4 4: new org.jboss.resteasy.core.request.VariantQuality
dup
invokespecial org.jboss.resteasy.core.request.VariantQuality.<init>:()V
astore 6
start local 6 5: aload 0
aload 4
aload 6
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.applyMediaType:(Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
ifne 7
6: goto 16
7: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant javax.ws.rs.core.Variant java.util.Iterator org.jboss.resteasy.core.request.VariantQuality
StackMap stack:
aload 0
aload 4
aload 6
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.applyCharacterSet:(Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
ifne 9
8: goto 16
9: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 6
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.applyEncoding:(Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
ifne 11
10: goto 16
11: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 6
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.applyLanguage:(Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
ifne 13
12: goto 16
13: StackMap locals:
StackMap stack:
aload 2
aload 3
aload 6
aload 4
invokestatic org.jboss.resteasy.core.request.ServerDrivenNegotiation.isBetterOption:(Lorg/jboss/resteasy/core/request/VariantQuality;Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;Ljavax/ws/rs/core/Variant;)Z
ifeq 16
14: aload 6
astore 2
15: aload 4
astore 3
end local 6 end local 4 16: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.List org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
17: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 18 1 available Ljava/util/List<Ljavax/ws/rs/core/Variant;>;
1 18 2 bestQuality Lorg/jboss/resteasy/core/request/VariantQuality;
2 18 3 bestOption Ljavax/ws/rs/core/Variant;
4 16 4 option Ljavax/ws/rs/core/Variant;
5 16 6 quality Lorg/jboss/resteasy/core/request/VariantQuality;
Signature: (Ljava/util/List<Ljavax/ws/rs/core/Variant;>;)Ljavax/ws/rs/core/Variant;
MethodParameters:
Name Flags
available
private static boolean isBetterOption(org.jboss.resteasy.core.request.VariantQuality, javax.ws.rs.core.Variant, org.jboss.resteasy.core.request.VariantQuality, javax.ws.rs.core.Variant);
descriptor: (Lorg/jboss/resteasy/core/request/VariantQuality;Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;Ljavax/ws/rs/core/Variant;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jboss.resteasy.core.request.VariantQuality.getOverallQuality:()Ljava/math/BigDecimal;
aload 2
invokevirtual org.jboss.resteasy.core.request.VariantQuality.getOverallQuality:()Ljava/math/BigDecimal;
invokevirtual java.math.BigDecimal.compareTo:(Ljava/math/BigDecimal;)I
istore 4
start local 4 3: iload 4
ifeq 6
4: iload 4
ifge 5
iconst_1
ireturn
StackMap locals: int
StackMap stack:
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jboss.resteasy.core.request.VariantQuality.getRequestMediaType:()Ljavax/ws/rs/core/MediaType;
astore 5
start local 5 7: aload 2
invokevirtual org.jboss.resteasy.core.request.VariantQuality.getRequestMediaType:()Ljavax/ws/rs/core/MediaType;
astore 6
start local 6 8: aload 5
ifnull 25
aload 6
ifnull 25
9: aload 5
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 6
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
10: aload 5
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 6
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
11: aload 5
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokeinterface java.util.Map.size:()I
istore 7
start local 7 12: aload 6
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokeinterface java.util.Map.size:()I
istore 8
start local 8 13: iload 8
iload 7
if_icmple 15
14: iconst_1
ireturn
15: StackMap locals: org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant int javax.ws.rs.core.MediaType javax.ws.rs.core.MediaType int int
StackMap stack:
iload 8
iload 7
if_icmpge 25
16: iconst_0
ireturn
end local 8 end local 7 17: StackMap locals:
StackMap stack:
aload 5
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
18: iconst_1
ireturn
19: StackMap locals:
StackMap stack:
aload 6
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
20: iconst_0
ireturn
21: StackMap locals:
StackMap stack:
aload 5
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 23
22: iconst_1
ireturn
23: StackMap locals:
StackMap stack:
aload 6
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
24: iconst_0
ireturn
25: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.ws.rs.core.Variant.getMediaType:()Ljavax/ws/rs/core/MediaType;
astore 7
start local 7 26: aload 3
invokevirtual javax.ws.rs.core.Variant.getMediaType:()Ljavax/ws/rs/core/MediaType;
astore 8
start local 8 27: aload 7
ifnull 44
aload 8
ifnull 44
28: aload 7
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 8
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 40
29: aload 7
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 8
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 36
30: aload 7
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokeinterface java.util.Map.size:()I
istore 9
start local 9 31: aload 8
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokeinterface java.util.Map.size:()I
istore 10
start local 10 32: iload 10
iload 9
if_icmple 34
33: iconst_1
ireturn
34: StackMap locals: org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.Variant int javax.ws.rs.core.MediaType javax.ws.rs.core.MediaType javax.ws.rs.core.MediaType javax.ws.rs.core.MediaType int int
StackMap stack:
iload 10
iload 9
if_icmpge 44
35: iconst_0
ireturn
end local 10 end local 9 36: StackMap locals:
StackMap stack:
ldc "*"
aload 7
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 38
37: iconst_1
ireturn
38: StackMap locals:
StackMap stack:
ldc "*"
aload 8
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 44
39: iconst_0
ireturn
40: StackMap locals:
StackMap stack:
ldc "*"
aload 7
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 42
41: iconst_1
ireturn
42: StackMap locals:
StackMap stack:
ldc "*"
aload 8
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 44
43: iconst_0
ireturn
44: StackMap locals:
StackMap stack:
aload 1
invokestatic org.jboss.resteasy.core.request.ServerDrivenNegotiation.getExplicitness:(Ljavax/ws/rs/core/Variant;)I
aload 3
invokestatic org.jboss.resteasy.core.request.ServerDrivenNegotiation.getExplicitness:(Ljavax/ws/rs/core/Variant;)I
if_icmpge 45
iconst_1
ireturn
StackMap locals:
StackMap stack:
45: iconst_0
ireturn
end local 8 end local 7 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 46 0 bestQuality Lorg/jboss/resteasy/core/request/VariantQuality;
0 46 1 best Ljavax/ws/rs/core/Variant;
0 46 2 optionQuality Lorg/jboss/resteasy/core/request/VariantQuality;
0 46 3 option Ljavax/ws/rs/core/Variant;
3 46 4 signum I
7 46 5 bestRequestMediaType Ljavax/ws/rs/core/MediaType;
8 46 6 optionRequestMediaType Ljavax/ws/rs/core/MediaType;
12 17 7 bestCount I
13 17 8 optionCount I
26 46 7 bestType Ljavax/ws/rs/core/MediaType;
27 46 8 optionType Ljavax/ws/rs/core/MediaType;
31 36 9 bestCount I
32 36 10 optionCount I
MethodParameters:
Name Flags
bestQuality
best
optionQuality
option
private static int getExplicitness(javax.ws.rs.core.Variant);
descriptor: (Ljavax/ws/rs/core/Variant;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual javax.ws.rs.core.Variant.getMediaType:()Ljavax/ws/rs/core/MediaType;
ifnull 3
2: iinc 1 1
3: StackMap locals: int
StackMap stack:
aload 0
invokevirtual javax.ws.rs.core.Variant.getEncoding:()Ljava/lang/String;
ifnull 5
4: iinc 1 1
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.ws.rs.core.Variant.getLanguage:()Ljava/util/Locale;
ifnull 7
6: iinc 1 1
7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 variant Ljavax/ws/rs/core/Variant;
1 8 1 explicitness I
MethodParameters:
Name Flags
variant
private boolean applyMediaType(javax.ws.rs.core.Variant, org.jboss.resteasy.core.request.VariantQuality);
descriptor: (Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=15, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.ws.rs.core.Variant.getMediaType:()Ljavax/ws/rs/core/MediaType;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: iconst_1
ireturn
5: StackMap locals: javax.ws.rs.core.MediaType
StackMap stack:
aload 3
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
astore 4
start local 4 6: ldc "*"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aconst_null
astore 4
8: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
astore 5
start local 5 9: ldc "*"
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: aconst_null
astore 5
11: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
astore 6
start local 6 12: aload 6
invokeinterface java.util.Map.isEmpty:()Z
ifeq 14
13: aconst_null
astore 6
14: StackMap locals: java.util.Map
StackMap stack:
getstatic org.jboss.resteasy.core.request.QualityValue.NOT_ACCEPTABLE:Lorg/jboss/resteasy/core/request/QualityValue;
astore 7
start local 7 15: iconst_m1
istore 8
start local 8 16: aconst_null
astore 9
start local 9 17: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 11
goto 47
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.MediaType java.lang.String java.lang.String java.util.Map org.jboss.resteasy.core.request.QualityValue int javax.ws.rs.core.MediaType top java.util.Iterator
StackMap stack:
18: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
astore 10
start local 10 19: iconst_0
istore 12
start local 12 20: aload 4
ifnull 26
21: aload 10
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
astore 13
start local 13 22: aload 13
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
23: iload 12
aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.mediaRadix:I
bipush 100
imul
iadd
istore 12
goto 26
24: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.MediaType java.lang.String java.lang.String java.util.Map org.jboss.resteasy.core.request.QualityValue int javax.ws.rs.core.MediaType javax.ws.rs.core.MediaType java.util.Iterator int java.lang.String
StackMap stack:
ldc "*"
aload 13
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 26
25: goto 47
end local 13 26: StackMap locals:
StackMap stack:
aload 5
ifnull 32
27: aload 10
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
astore 13
start local 13 28: aload 13
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 30
29: iload 12
aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.mediaRadix:I
bipush 10
imul
iadd
istore 12
goto 32
30: StackMap locals: java.lang.String
StackMap stack:
ldc "*"
aload 13
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 32
31: goto 47
end local 13 32: StackMap locals:
StackMap stack:
aload 10
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
astore 13
start local 13 33: aload 13
ifnull 37
aload 13
invokeinterface java.util.Map.size:()I
ifle 37
34: aload 0
aload 13
aload 6
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.hasRequiredParameters:(Ljava/util/Map;Ljava/util/Map;)Z
ifne 36
35: goto 47
36: StackMap locals: java.util.Map
StackMap stack:
iload 12
aload 13
invokeinterface java.util.Map.size:()I
iadd
istore 12
37: StackMap locals:
StackMap stack:
iload 12
iload 8
if_icmple 42
38: iload 12
istore 8
39: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
aload 10
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 7
40: aload 10
astore 9
41: goto 47
42: StackMap locals:
StackMap stack:
iload 12
iload 8
if_icmpne 47
43: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedMediaTypes:Ljava/util/Map;
aload 10
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 14
start local 14 44: aload 7
aload 14
invokevirtual org.jboss.resteasy.core.request.QualityValue.compareTo:(Lorg/jboss/resteasy/core/request/QualityValue;)I
ifge 47
45: aload 14
astore 7
46: aload 10
astore 9
end local 14 end local 13 end local 12 end local 10 47: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.MediaType java.lang.String java.lang.String java.util.Map org.jboss.resteasy.core.request.QualityValue int javax.ws.rs.core.MediaType top java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
48: aload 7
invokevirtual org.jboss.resteasy.core.request.QualityValue.isAcceptable:()Z
ifne 50
49: iconst_0
ireturn
50: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality javax.ws.rs.core.MediaType java.lang.String java.lang.String java.util.Map org.jboss.resteasy.core.request.QualityValue int javax.ws.rs.core.MediaType
StackMap stack:
aload 2
aload 7
invokevirtual org.jboss.resteasy.core.request.VariantQuality.setMediaTypeQualityValue:(Lorg/jboss/resteasy/core/request/QualityValue;)V
51: aload 2
aload 9
invokevirtual org.jboss.resteasy.core.request.VariantQuality.setRequestMediaType:(Ljavax/ws/rs/core/MediaType;)V
52: iconst_1
ireturn
end local 9 end local 8 end local 7 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 53 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 53 1 option Ljavax/ws/rs/core/Variant;
0 53 2 quality Lorg/jboss/resteasy/core/request/VariantQuality;
3 53 3 mediaType Ljavax/ws/rs/core/MediaType;
6 53 4 type Ljava/lang/String;
9 53 5 subtype Ljava/lang/String;
12 53 6 parameters Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
15 53 7 bestQuality Lorg/jboss/resteasy/core/request/QualityValue;
16 53 8 bestMatchCount I
17 53 9 bestRequestMediaType Ljavax/ws/rs/core/MediaType;
19 47 10 requested Ljavax/ws/rs/core/MediaType;
20 47 12 matchCount I
22 26 13 requestedType Ljava/lang/String;
28 32 13 requestedSubtype Ljava/lang/String;
33 47 13 requestedParameters Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
44 47 14 qualityValue Lorg/jboss/resteasy/core/request/QualityValue;
MethodParameters:
Name Flags
option
quality
private boolean hasRequiredParameters(java.util.Map<java.lang.String, java.lang.String>, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;Ljava/util/Map;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 14
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 5: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 6: aload 2
aload 5
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 7: aload 7
ifnonnull 12
ldc "charset"
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
8: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
ifnull 14
9: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
aconst_null
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 14
10: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
aload 6
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 14
11: iconst_0
ireturn
12: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.Map java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 6
aload 7
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 14
13: iconst_0
ireturn
end local 7 end local 6 end local 5 end local 3 14: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
15: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 16 1 required Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 16 2 available Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 14 3 requiredEntry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
5 14 5 name Ljava/lang/String;
6 14 6 value Ljava/lang/String;
7 14 7 availableValue Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
required
available
private boolean applyCharacterSet(javax.ws.rs.core.Variant, org.jboss.resteasy.core.request.VariantQuality);
descriptor: (Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.ws.rs.core.Variant.getMediaType:()Ljavax/ws/rs/core/MediaType;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: iconst_1
ireturn
5: StackMap locals: javax.ws.rs.core.MediaType
StackMap stack:
aload 3
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "charset"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 4
ifnonnull 8
7: iconst_1
ireturn
8: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 5
start local 5 9: aload 5
ifnonnull 11
10: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedCharacterSets:Ljava/util/Map;
aconst_null
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 5
11: StackMap locals: org.jboss.resteasy.core.request.QualityValue
StackMap stack:
aload 5
ifnonnull 13
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.jboss.resteasy.core.request.QualityValue.isAcceptable:()Z
ifne 14
iconst_0
ireturn
14: StackMap locals:
StackMap stack:
aload 2
aload 5
invokevirtual org.jboss.resteasy.core.request.VariantQuality.setCharacterSetQualityValue:(Lorg/jboss/resteasy/core/request/QualityValue;)V
15: iconst_1
ireturn
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 16 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 16 1 option Ljavax/ws/rs/core/Variant;
0 16 2 quality Lorg/jboss/resteasy/core/request/VariantQuality;
3 16 3 mediaType Ljavax/ws/rs/core/MediaType;
6 16 4 charsetParameter Ljava/lang/String;
9 16 5 value Lorg/jboss/resteasy/core/request/QualityValue;
MethodParameters:
Name Flags
option
quality
private boolean applyEncoding(javax.ws.rs.core.Variant, org.jboss.resteasy.core.request.VariantQuality);
descriptor: (Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedEncodings:Ljava/util/Map;
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.ws.rs.core.Variant.getEncoding:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: iconst_1
ireturn
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedEncodings:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 4
start local 4 6: aload 4
ifnonnull 8
7: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedEncodings:Ljava/util/Map;
aconst_null
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 4
8: StackMap locals: org.jboss.resteasy.core.request.QualityValue
StackMap stack:
aload 4
ifnonnull 10
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.jboss.resteasy.core.request.QualityValue.isAcceptable:()Z
ifne 11
iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.request.VariantQuality.setEncodingQualityValue:(Lorg/jboss/resteasy/core/request/QualityValue;)V
12: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 13 1 option Ljavax/ws/rs/core/Variant;
0 13 2 quality Lorg/jboss/resteasy/core/request/VariantQuality;
3 13 3 encoding Ljava/lang/String;
6 13 4 value Lorg/jboss/resteasy/core/request/QualityValue;
MethodParameters:
Name Flags
option
quality
private boolean hasCountry(java.util.Locale);
descriptor: (Ljava/util/Locale;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.util.Locale.getCountry:()Ljava/lang/String;
ifnull 1
ldc ""
aload 1
invokevirtual java.util.Locale.getCountry:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 2 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
private boolean applyLanguage(javax.ws.rs.core.Variant, org.jboss.resteasy.core.request.VariantQuality);
descriptor: (Ljavax/ws/rs/core/Variant;Lorg/jboss/resteasy/core/request/VariantQuality;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedLanguages:Ljava/util/Map;
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.ws.rs.core.Variant.getLanguage:()Ljava/util/Locale;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: iconst_1
ireturn
5: StackMap locals: java.util.Locale
StackMap stack:
aconst_null
astore 4
start local 4 6: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedLanguages:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 20
StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality java.util.Locale org.jboss.resteasy.core.request.QualityValue top java.util.Iterator
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 8: aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.util.Locale
astore 7
start local 7 9: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 8
start local 8 10: aload 7
ifnonnull 11
goto 20
11: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality java.util.Locale org.jboss.resteasy.core.request.QualityValue java.util.Map$Entry java.util.Iterator java.util.Locale org.jboss.resteasy.core.request.QualityValue
StackMap stack:
aload 7
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
aload 3
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 20
12: aload 0
aload 7
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.hasCountry:(Ljava/util/Locale;)Z
ifeq 16
aload 0
aload 3
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.hasCountry:(Ljava/util/Locale;)Z
ifeq 16
13: aload 7
invokevirtual java.util.Locale.getCountry:()Ljava/lang/String;
aload 3
invokevirtual java.util.Locale.getCountry:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 20
14: aload 8
astore 4
15: goto 21
16: StackMap locals:
StackMap stack:
aload 0
aload 7
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.hasCountry:(Ljava/util/Locale;)Z
aload 0
aload 3
invokevirtual org.jboss.resteasy.core.request.ServerDrivenNegotiation.hasCountry:(Ljava/util/Locale;)Z
if_icmpne 19
17: aload 8
astore 4
18: goto 21
19: StackMap locals:
StackMap stack:
aload 8
astore 4
end local 8 end local 7 end local 5 20: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality java.util.Locale org.jboss.resteasy.core.request.QualityValue top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
21: StackMap locals: org.jboss.resteasy.core.request.ServerDrivenNegotiation javax.ws.rs.core.Variant org.jboss.resteasy.core.request.VariantQuality java.util.Locale org.jboss.resteasy.core.request.QualityValue
StackMap stack:
aload 4
ifnonnull 23
22: aload 0
getfield org.jboss.resteasy.core.request.ServerDrivenNegotiation.requestedLanguages:Ljava/util/Map;
aconst_null
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.request.QualityValue
astore 4
23: StackMap locals:
StackMap stack:
aload 4
ifnonnull 25
24: iconst_0
ireturn
25: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.jboss.resteasy.core.request.QualityValue.isAcceptable:()Z
ifne 26
iconst_0
ireturn
26: StackMap locals:
StackMap stack:
aload 2
aload 4
invokevirtual org.jboss.resteasy.core.request.VariantQuality.setLanguageQualityValue:(Lorg/jboss/resteasy/core/request/QualityValue;)V
27: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/jboss/resteasy/core/request/ServerDrivenNegotiation;
0 28 1 option Ljavax/ws/rs/core/Variant;
0 28 2 quality Lorg/jboss/resteasy/core/request/VariantQuality;
3 28 3 language Ljava/util/Locale;
6 28 4 value Lorg/jboss/resteasy/core/request/QualityValue;
8 20 5 entry Ljava/util/Map$Entry<Ljava/util/Locale;Lorg/jboss/resteasy/core/request/QualityValue;>;
9 20 7 locale Ljava/util/Locale;
10 20 8 qualityValue Lorg/jboss/resteasy/core/request/QualityValue;
MethodParameters:
Name Flags
option
quality
}
SourceFile: "ServerDrivenNegotiation.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map