public class org.jboss.resteasy.core.AcceptParameterHttpPreprocessor implements javax.ws.rs.container.ContainerRequestFilter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.core.AcceptParameterHttpPreprocessor
super_class: java.lang.Object
{
private final java.lang.String paramMapping;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 // org.jboss.resteasy.core.AcceptParameterHttpPreprocessor this
start local 1 // java.lang.String paramMapping
0: .line 47
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 49
aload 1 /* paramMapping */
ifnull 2
aload 1 /* paramMapping */
ldc "\\s+"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifeq 3
2: .line 50
StackMap locals: org.jboss.resteasy.core.AcceptParameterHttpPreprocessor java.lang.String
StackMap stack:
new java.lang.IllegalArgumentException
dup
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.constructorMappingInvalid:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: .line 51
StackMap locals:
StackMap stack:
aload 0 /* this */
aload 1 /* paramMapping */
putfield org.jboss.resteasy.core.AcceptParameterHttpPreprocessor.paramMapping:Ljava/lang/String;
4: .line 52
return
end local 1 // java.lang.String paramMapping
end local 0 // org.jboss.resteasy.core.AcceptParameterHttpPreprocessor this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/core/AcceptParameterHttpPreprocessor;
0 5 1 paramMapping Ljava/lang/String;
MethodParameters:
Name Flags
paramMapping
public void filter(javax.ws.rs.container.ContainerRequestContext);
descriptor: (Ljavax/ws/rs/container/ContainerRequestContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 // org.jboss.resteasy.core.AcceptParameterHttpPreprocessor this
start local 1 // javax.ws.rs.container.ContainerRequestContext request
0: .line 57
aload 1 /* request */
invokeinterface javax.ws.rs.container.ContainerRequestContext.getUriInfo:()Ljavax/ws/rs/core/UriInfo;
iconst_0
invokeinterface javax.ws.rs.core.UriInfo.getQueryParameters:(Z)Ljavax/ws/rs/core/MultivaluedMap;
astore 2 /* params */
start local 2 // javax.ws.rs.core.MultivaluedMap params
1: .line 59
aload 2 /* params */
ifnull 12
2: .line 61
aload 2 /* params */
aload 0 /* this */
getfield org.jboss.resteasy.core.AcceptParameterHttpPreprocessor.paramMapping:Ljava/lang/String;
invokeinterface javax.ws.rs.core.MultivaluedMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 3 /* accepts */
start local 3 // java.util.List accepts
3: .line 63
aload 3 /* accepts */
ifnull 12
aload 3 /* accepts */
invokeinterface java.util.List.isEmpty:()Z
ifne 12
4: .line 65
aload 3 /* accepts */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals: org.jboss.resteasy.core.AcceptParameterHttpPreprocessor javax.ws.rs.container.ContainerRequestContext javax.ws.rs.core.MultivaluedMap java.util.List top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4 /* accept */
start local 4 // java.lang.String accept
6: .line 69
aload 4 /* accept */
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokestatic java.net.URLDecoder.decode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4 /* accept */
7: .line 70
aload 1 /* request */
invokeinterface javax.ws.rs.container.ContainerRequestContext.getHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Accept"
aload 4 /* accept */
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
8: .line 71
goto 11
9: .line 72
StackMap locals: org.jboss.resteasy.core.AcceptParameterHttpPreprocessor javax.ws.rs.container.ContainerRequestContext javax.ws.rs.core.MultivaluedMap java.util.List java.lang.String java.util.Iterator
StackMap stack: java.io.UnsupportedEncodingException
astore 6 /* e */
start local 6 // java.io.UnsupportedEncodingException e
10: .line 74
new java.lang.RuntimeException
dup
aload 6 /* e */
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 6 // java.io.UnsupportedEncodingException e
end local 4 // java.lang.String accept
11: .line 65
StackMap locals: org.jboss.resteasy.core.AcceptParameterHttpPreprocessor javax.ws.rs.container.ContainerRequestContext javax.ws.rs.core.MultivaluedMap java.util.List top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 // java.util.List accepts
12: .line 81
StackMap locals: org.jboss.resteasy.core.AcceptParameterHttpPreprocessor javax.ws.rs.container.ContainerRequestContext javax.ws.rs.core.MultivaluedMap
StackMap stack:
return
end local 2 // javax.ws.rs.core.MultivaluedMap params
end local 1 // javax.ws.rs.container.ContainerRequestContext request
end local 0 // org.jboss.resteasy.core.AcceptParameterHttpPreprocessor this
LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jboss/resteasy/core/AcceptParameterHttpPreprocessor;
0 13 1 request Ljavax/ws/rs/container/ContainerRequestContext;
1 13 2 params Ljavax/ws/rs/core/MultivaluedMap<Ljava/lang/String;Ljava/lang/String;>;
3 12 3 accepts Ljava/util/List<Ljava/lang/String;>;
6 11 4 accept Ljava/lang/String;
10 11 6 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
6 8 9 Class java.io.UnsupportedEncodingException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
request
}
SourceFile: "AcceptParameterHttpPreprocessor.java"
RuntimeVisibleAnnotations:
javax.ws.rs.container.PreMatching()