public class org.jboss.resteasy.core.ServerResponseWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.core.ServerResponseWriter
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/ServerResponseWriter;
public static void writeNomapResponse(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
iconst_1
invokestatic org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer;Z)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 2 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 2 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 2 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 2 4 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
Exceptions:
throws java.io.IOException
Signature: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
jaxrsResponse
request final
response final
providerFactory final
onComplete
public static void writeNomapResponse(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/jboss/resteasy/core/ServerResponseWriter.lambda$0(Ljava/lang/Throwable;)V (6)
(Ljava/lang/Throwable;)V
iconst_1
invokestatic org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer;Z)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 2 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 2 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 2 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
jaxrsResponse
request final
response final
providerFactory final
public static void writeNomapResponse(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, boolean);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/jboss/resteasy/core/ServerResponseWriter.lambda$1(Ljava/lang/Throwable;)V (6)
(Ljava/lang/Throwable;)V
iload 4
invokestatic org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer;Z)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 2 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 2 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 2 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 2 4 sendHeaders Z
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
jaxrsResponse
request final
response final
providerFactory final
sendHeaders
public static void writeNomapResponse(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, java.util.function.Consumer<java.lang.Throwable>, );
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=12, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
ldc Lorg/jboss/resteasy/core/ResourceMethodInvoker;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.jboss.resteasy.spi.HttpRequest.getAttribute:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.ResourceMethodInvoker
astore 6
start local 6 1: aload 0
aload 1
aload 2
aload 3
aload 6
invokestatic org.jboss.resteasy.core.ServerResponseWriter.setResponseMediaType:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)V
2: aload 0
aload 1
aload 2
aload 3
aload 6
aload 4
aload 0
aload 2
aload 3
iload 5
aload 6
aload 1
invokedynamic run(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;ZLorg/jboss/resteasy/core/ResourceMethodInvoker;Lorg/jboss/resteasy/spi/HttpRequest;)Lorg/jboss/resteasy/core/ServerResponseWriter$RunnableWithIOException;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/jboss/resteasy/core/ServerResponseWriter.lambda$2(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;ZLorg/jboss/resteasy/core/ResourceMethodInvoker;Lorg/jboss/resteasy/spi/HttpRequest;)V (6)
()V
invokestatic org.jboss.resteasy.core.ServerResponseWriter.executeFilters:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;Ljava/util/function/Consumer;Lorg/jboss/resteasy/core/ServerResponseWriter$RunnableWithIOException;)V
3: return
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 4 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 4 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 4 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 4 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 4 4 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
0 4 5 sendHeaders Z
1 4 6 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
Exceptions:
throws java.io.IOException
Signature: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;Z)V
MethodParameters:
Name Flags
jaxrsResponse
request final
response final
providerFactory final
onComplete
sendHeaders
public static void setResponseMediaType(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, org.jboss.resteasy.core.ResourceMethodInvoker);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
invokestatic org.jboss.resteasy.core.ServerResponseWriter.getResponseMediaType:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)Ljavax/ws/rs/core/MediaType;
astore 5
start local 5 1: aload 5
ifnull 3
2: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
aload 5
invokevirtual javax.ws.rs.core.MediaType.toString:()Ljava/lang/String;
invokeinterface javax.ws.rs.core.MultivaluedMap.putSingle:(Ljava/lang/Object;Ljava/lang/Object;)V
3: StackMap locals: javax.ws.rs.core.MediaType
StackMap stack:
return
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 4 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 4 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 4 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 4 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 4 4 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
1 4 5 mt Ljavax/ws/rs/core/MediaType;
MethodParameters:
Name Flags
jaxrsResponse
request
response
providerFactory
method
public static javax.ws.rs.core.MediaType getResponseMediaType(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, org.jboss.resteasy.core.ResourceMethodInvoker);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)Ljavax/ws/rs/core/MediaType;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aconst_null
astore 5
start local 5 1: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
ifnull 12
2: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMediaType:()Ljavax/ws/rs/core/MediaType;
dup
astore 5
ifnonnull 4
3: aload 1
aload 0
aload 3
aload 4
invokestatic org.jboss.resteasy.core.ServerResponseWriter.getDefaultContentType:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)Ljavax/ws/rs/core/MediaType;
astore 5
4: StackMap locals: javax.ws.rs.core.MediaType
StackMap stack:
iconst_1
istore 6
start local 6 5: ldc Lorg/jboss/resteasy/spi/ResteasyDeployment;
invokestatic org.jboss.resteasy.spi.ResteasyProviderFactory.getContextData:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.jboss.resteasy.spi.ResteasyDeployment
astore 7
start local 7 6: aload 7
ifnull 8
7: aload 7
invokevirtual org.jboss.resteasy.spi.ResteasyDeployment.isAddCharset:()Z
istore 6
8: StackMap locals: int org.jboss.resteasy.spi.ResteasyDeployment
StackMap stack:
iload 6
ifeq 12
9: aload 5
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "charset"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 12
10: aload 5
invokestatic org.jboss.resteasy.util.MediaTypeHelper.isTextLike:(Ljavax/ws/rs/core/MediaType;)Z
ifeq 12
11: aload 5
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.toString:()Ljava/lang/String;
invokevirtual javax.ws.rs.core.MediaType.withCharset:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
astore 5
end local 7 end local 6 12: StackMap locals:
StackMap stack:
aload 5
areturn
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 13 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 13 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 13 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 13 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 13 4 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
1 13 5 mt Ljavax/ws/rs/core/MediaType;
5 12 6 addCharset Z
6 12 7 deployment Lorg/jboss/resteasy/spi/ResteasyDeployment;
MethodParameters:
Name Flags
jaxrsResponse
request
response
providerFactory
method
private static void executeFilters(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, org.jboss.resteasy.core.ResourceMethodInvoker, java.util.function.Consumer<java.lang.Throwable>, org.jboss.resteasy.core.ServerResponseWriter$RunnableWithIOException);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;Ljava/util/function/Consumer;Lorg/jboss/resteasy/core/ServerResponseWriter$RunnableWithIOException;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=10, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aconst_null
astore 7
start local 7 1: aload 4
ifnull 4
2: aload 4
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getResponseFilters:()[Ljavax/ws/rs/container/ContainerResponseFilter;
astore 7
3: goto 5
4: StackMap locals: javax.ws.rs.container.ContainerResponseFilter[]
StackMap stack:
aload 3
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getContainerResponseFilterRegistry:()Lorg/jboss/resteasy/core/interception/ContainerResponseFilterRegistry;
aconst_null
aconst_null
invokevirtual org.jboss.resteasy.core.interception.ContainerResponseFilterRegistry.postMatch:(Ljava/lang/Class;Ljava/lang/reflect/AccessibleObject;)[Ljava/lang/Object;
checkcast javax.ws.rs.container.ContainerResponseFilter[]
astore 7
5: StackMap locals:
StackMap stack:
aload 7
ifnull 12
6: new org.jboss.resteasy.core.interception.ResponseContainerRequestContext
dup
aload 1
invokespecial org.jboss.resteasy.core.interception.ResponseContainerRequestContext.<init>:(Lorg/jboss/resteasy/spi/HttpRequest;)V
astore 8
start local 8 7: new org.jboss.resteasy.core.interception.ContainerResponseContextImpl
dup
aload 1
aload 2
aload 0
8: aload 8
aload 7
aload 5
aload 6
9: invokespecial org.jboss.resteasy.core.interception.ContainerResponseContextImpl.<init>:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/core/interception/ResponseContainerRequestContext;[Ljavax/ws/rs/container/ContainerResponseFilter;Ljava/util/function/Consumer;Lorg/jboss/resteasy/core/ServerResponseWriter$RunnableWithIOException;)V
astore 9
start local 9 10: aload 9
invokevirtual org.jboss.resteasy.core.interception.ContainerResponseContextImpl.filter:()V
end local 9 end local 8 11: goto 18
12: StackMap locals:
StackMap stack:
aload 6
invokeinterface org.jboss.resteasy.core.ServerResponseWriter$RunnableWithIOException.run:()V
13: aload 5
aconst_null
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
14: goto 18
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
start local 8 16: aload 5
aload 8
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
17: aload 8
invokestatic org.jboss.resteasy.core.SynchronousDispatcher.rethrow:(Ljava/lang/Throwable;)V
end local 8 18: StackMap locals:
StackMap stack:
return
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 19 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 19 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 19 2 response Lorg/jboss/resteasy/spi/HttpResponse;
0 19 3 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 19 4 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
0 19 5 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
0 19 6 continuation Lorg/jboss/resteasy/core/ServerResponseWriter$RunnableWithIOException;
1 19 7 responseFilters [Ljavax/ws/rs/container/ContainerResponseFilter;
7 11 8 requestContext Lorg/jboss/resteasy/core/interception/ResponseContainerRequestContext;
10 11 9 responseContext Lorg/jboss/resteasy/core/interception/ContainerResponseContextImpl;
16 18 8 t Ljava/lang/Throwable;
Exception table:
from to target type
12 14 15 Class java.lang.Throwable
Exceptions:
throws java.io.IOException
Signature: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;Lorg/jboss/resteasy/core/ServerResponseWriter$RunnableWithIOException;)V
MethodParameters:
Name Flags
jaxrsResponse
request
response
providerFactory
method
onComplete
continuation
protected static void setDefaultContentType(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, org.jboss.resteasy.core.ResourceMethodInvoker);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jboss.resteasy.core.ServerResponseWriter.getDefaultContentType:(Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)Ljavax/ws/rs/core/MediaType;
astore 4
start local 4 1: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
aload 4
invokeinterface javax.ws.rs.core.MultivaluedMap.putSingle:(Ljava/lang/Object;Ljava/lang/Object;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 request Lorg/jboss/resteasy/spi/HttpRequest;
0 3 1 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 3 2 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 3 3 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
1 3 4 chosen Ljavax/ws/rs/core/MediaType;
MethodParameters:
Name Flags
request
jaxrsResponse
providerFactory
method
protected static javax.ws.rs.core.MediaType getDefaultContentType(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, org.jboss.resteasy.core.ResourceMethodInvoker);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Lorg/jboss/resteasy/core/ResourceMethodInvoker;)Ljavax/ws/rs/core/MediaType;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=28, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ldc "RESTEASY_CHOSEN_ACCEPT"
invokeinterface org.jboss.resteasy.spi.HttpRequest.getAttribute:(Ljava/lang/String;)Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
astore 4
start local 4 1: aload 4
ifnull 2
aload 4
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "RESTEASY-SERVER-HAS-PRODUCES"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.Boolean.valueOf:(Ljava/lang/String;)Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
iconst_1
goto 3
StackMap locals: javax.ws.rs.core.MediaType
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 5
start local 5 4: iload 5
aload 3
ifnull 5
aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getProduces:()[Ljavax/ws/rs/core/MediaType;
ifnull 5
aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getProduces:()[Ljavax/ws/rs/core/MediaType;
arraylength
ifle 5
iconst_1
goto 6
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int
StackMap stack: int
5: iconst_0
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int
StackMap stack: int int
6: ior
istore 5
7: iload 5
aload 3
ifnull 8
aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getMethod:()Ljava/lang/reflect/Method;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljavax/ws/rs/Produces;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
ifnull 8
iconst_1
goto 9
StackMap locals:
StackMap stack: int
8: iconst_0
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int
StackMap stack: int int
9: ior
istore 5
10: iload 5
ifeq 44
11: aload 4
invokestatic org.jboss.resteasy.core.ServerResponseWriter.isConcrete:(Ljavax/ws/rs/core/MediaType;)Z
ifne 94
12: aconst_null
astore 6
start local 6 13: aload 3
ifnull 24
14: aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getProduces:()[Ljavax/ws/rs/core/MediaType;
arraylength
ifle 17
15: aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getProduces:()[Ljavax/ws/rs/core/MediaType;
astore 6
16: goto 24
17: StackMap locals: javax.ws.rs.core.MediaType[]
StackMap stack:
aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getMethod:()Ljava/lang/reflect/Method;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljavax/ws/rs/Produces;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast javax.ws.rs.Produces
invokeinterface javax.ws.rs.Produces.value:()[Ljava/lang/String;
astore 7
start local 7 18: aload 7
arraylength
anewarray javax.ws.rs.core.MediaType
astore 6
19: iconst_0
istore 8
start local 8 20: goto 23
21: StackMap locals: java.lang.String[] int
StackMap stack:
aload 6
iload 8
aload 7
iload 8
aaload
invokestatic javax.ws.rs.core.MediaType.valueOf:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
aastore
22: iinc 8 1
StackMap locals:
StackMap stack:
23: iload 8
aload 7
arraylength
if_icmplt 21
end local 8 end local 7 24: StackMap locals:
StackMap stack:
aload 6
ifnonnull 26
25: iconst_1
anewarray javax.ws.rs.core.MediaType
dup
iconst_0
getstatic javax.ws.rs.core.MediaType.WILDCARD_TYPE:Ljavax/ws/rs/core/MediaType;
aastore
astore 6
26: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpHeaders:()Ljavax/ws/rs/core/HttpHeaders;
invokeinterface javax.ws.rs.core.HttpHeaders.getAcceptableMediaTypes:()Ljava/util/List;
astore 7
start local 7 27: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 8
start local 8 28: iconst_0
istore 9
start local 9 29: iconst_0
istore 10
start local 10 30: aload 7
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 12
goto 41
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int javax.ws.rs.core.MediaType[] java.util.List java.util.List int int top java.util.Iterator
StackMap stack:
31: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
astore 11
start local 11 32: aload 6
dup
astore 16
arraylength
istore 15
iconst_0
istore 14
goto 40
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int javax.ws.rs.core.MediaType[] java.util.List java.util.List int int javax.ws.rs.core.MediaType java.util.Iterator top int int javax.ws.rs.core.MediaType[]
StackMap stack:
33: aload 16
iload 14
aaload
astore 13
start local 13 34: aload 13
aconst_null
aload 11
aconst_null
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mostSpecific:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
astore 17
start local 17 35: aload 17
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.isWildcardSubtype:()Z
ifeq 38
36: iload 9
aload 17
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.isWildcardType:()Z
ior
istore 9
37: iload 10
aload 17
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getType:()Ljava/lang/String;
ldc "application"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ior
istore 10
38: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int javax.ws.rs.core.MediaType[] java.util.List java.util.List int int javax.ws.rs.core.MediaType java.util.Iterator javax.ws.rs.core.MediaType int int javax.ws.rs.core.MediaType[] org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
StackMap stack:
aload 8
aload 17
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 17 end local 13 39: iinc 14 1
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int javax.ws.rs.core.MediaType[] java.util.List java.util.List int int javax.ws.rs.core.MediaType java.util.Iterator top int int javax.ws.rs.core.MediaType[]
StackMap stack:
40: iload 14
iload 15
if_icmplt 33
end local 11 41: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int javax.ws.rs.core.MediaType[] java.util.List java.util.List int int top java.util.Iterator
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 31
42: aload 4
aload 8
iload 9
iload 10
invokestatic org.jboss.resteasy.core.ServerResponseWriter.chooseFromM:(Ljavax/ws/rs/core/MediaType;Ljava/util/List;ZZ)Ljavax/ws/rs/core/MediaType;
astore 4
end local 10 end local 9 end local 8 end local 7 end local 6 43: goto 94
44: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int
StackMap stack:
getstatic javax.ws.rs.core.MediaType.WILDCARD_TYPE:Ljavax/ws/rs/core/MediaType;
astore 4
45: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntityClass:()Ljava/lang/Class;
astore 6
start local 6 46: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
pop
47: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getGenericType:()Ljava/lang/reflect/Type;
astore 7
start local 7 48: aload 7
ifnonnull 51
49: aload 3
ifnull 50
ldc Ljavax/ws/rs/core/Response;
aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getMethod:()Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 50
aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getGenericReturnType:()Ljava/lang/reflect/Type;
astore 7
goto 51
50: StackMap locals: java.lang.Class java.lang.reflect.Type
StackMap stack:
aload 6
astore 7
51: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getAnnotations:()[Ljava/lang/annotation/Annotation;
astore 8
start local 8 52: aload 8
ifnonnull 54
aload 3
ifnull 54
53: aload 3
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getMethodAnnotations:()[Ljava/lang/annotation/Annotation;
astore 8
54: StackMap locals: java.lang.annotation.Annotation[]
StackMap stack:
aload 0
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpHeaders:()Ljavax/ws/rs/core/HttpHeaders;
invokeinterface javax.ws.rs.core.HttpHeaders.getAcceptableMediaTypes:()Ljava/util/List;
astore 9
start local 9 55: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 10
start local 10 56: iconst_0
istore 11
start local 11 57: iconst_0
istore 12
start local 12 58: iconst_0
istore 13
start local 13 59: aload 9
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 15
goto 81
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int top java.util.Iterator
StackMap stack:
60: aload 15
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
astore 14
start local 14 61: aload 2
aload 6
aload 7
aload 8
aload 14
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getPossibleMessageBodyWritersMap:(Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;)Ljava/util/Map;
astore 16
start local 16 62: aload 16
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 18
goto 80
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator java.util.Map top java.util.Iterator
StackMap stack:
63: aload 18
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 17
start local 17 64: aload 17
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast javax.ws.rs.ext.MessageBodyWriter
astore 19
start local 19 65: aload 17
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Class
astore 20
start local 20 66: aload 19
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljavax/ws/rs/Produces;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast javax.ws.rs.Produces
astore 21
start local 21 67: aload 21
ifnonnull 68
goto 80
68: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator java.util.Map java.util.Map$Entry java.util.Iterator javax.ws.rs.ext.MessageBodyWriter java.lang.Class javax.ws.rs.Produces
StackMap stack:
aload 21
invokeinterface javax.ws.rs.Produces.value:()[Ljava/lang/String;
dup
astore 25
arraylength
istore 24
iconst_0
istore 23
goto 79
StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator java.util.Map java.util.Map$Entry java.util.Iterator javax.ws.rs.ext.MessageBodyWriter java.lang.Class javax.ws.rs.Produces top int int java.lang.String[]
StackMap stack:
69: aload 25
iload 23
aaload
astore 22
start local 22 70: iconst_1
istore 13
71: aload 22
invokestatic javax.ws.rs.core.MediaType.valueOf:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
astore 26
start local 26 72: aload 26
aload 14
invokevirtual javax.ws.rs.core.MediaType.isCompatible:(Ljavax/ws/rs/core/MediaType;)Z
ifeq 78
73: aload 26
aload 20
aload 14
aconst_null
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mostSpecific:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
astore 27
start local 27 74: aload 27
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.isWildcardSubtype:()Z
ifeq 77
75: iload 11
aload 27
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.isWildcardType:()Z
ior
istore 11
76: iload 12
aload 27
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getType:()Ljava/lang/String;
ldc "application"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ior
istore 12
77: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator java.util.Map java.util.Map$Entry java.util.Iterator javax.ws.rs.ext.MessageBodyWriter java.lang.Class javax.ws.rs.Produces java.lang.String int int java.lang.String[] javax.ws.rs.core.MediaType org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
StackMap stack:
aload 10
aload 27
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 27 end local 26 end local 22 78: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator java.util.Map java.util.Map$Entry java.util.Iterator javax.ws.rs.ext.MessageBodyWriter java.lang.Class javax.ws.rs.Produces top int int java.lang.String[]
StackMap stack:
iinc 23 1
StackMap locals:
StackMap stack:
79: iload 23
iload 24
if_icmplt 69
end local 21 end local 20 end local 19 end local 17 80: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator java.util.Map top java.util.Iterator
StackMap stack:
aload 18
invokeinterface java.util.Iterator.hasNext:()Z
ifne 63
end local 16 end local 14 81: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int top java.util.Iterator
StackMap stack:
aload 15
invokeinterface java.util.Iterator.hasNext:()Z
ifne 60
82: iload 13
ifne 93
83: aload 9
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 15
goto 92
StackMap locals:
StackMap stack:
84: aload 15
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
astore 14
start local 14 85: getstatic javax.ws.rs.core.MediaType.WILDCARD_TYPE:Ljavax/ws/rs/core/MediaType;
astore 16
start local 16 86: aload 16
aload 14
invokevirtual javax.ws.rs.core.MediaType.isCompatible:(Ljavax/ws/rs/core/MediaType;)Z
ifeq 92
87: aload 16
aconst_null
aload 14
aconst_null
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mostSpecific:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
astore 17
start local 17 88: aload 17
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.isWildcardSubtype:()Z
ifeq 91
89: iload 11
aload 17
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.isWildcardType:()Z
ior
istore 11
90: iload 12
aload 17
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getType:()Ljava/lang/String;
ldc "application"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ior
istore 12
91: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int javax.ws.rs.core.MediaType java.util.Iterator javax.ws.rs.core.MediaType org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
StackMap stack:
aload 10
aload 17
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 17 end local 16 end local 14 92: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int top java.util.Iterator
StackMap stack:
aload 15
invokeinterface java.util.Iterator.hasNext:()Z
ifne 84
93: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int java.lang.Class java.lang.reflect.Type java.lang.annotation.Annotation[] java.util.List java.util.List int int int
StackMap stack:
aload 4
aload 10
iload 11
iload 12
invokestatic org.jboss.resteasy.core.ServerResponseWriter.chooseFromM:(Ljavax/ws/rs/core/MediaType;Ljava/util/List;ZZ)Ljavax/ws/rs/core/MediaType;
astore 4
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 94: StackMap locals: org.jboss.resteasy.spi.HttpRequest org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.ResteasyProviderFactory org.jboss.resteasy.core.ResourceMethodInvoker javax.ws.rs.core.MediaType int
StackMap stack:
aload 4
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "RESTEASY-SERVER-HAS-PRODUCES"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 99
95: new java.util.HashMap
dup
aload 4
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 6
start local 6 96: aload 6
ldc "RESTEASY-SERVER-HAS-PRODUCES"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
97: aload 6
ldc "RESTEASY-SERVER-HAS-PRODUCES"
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
98: new javax.ws.rs.core.MediaType
dup
aload 4
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 4
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 6
invokespecial javax.ws.rs.core.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
astore 4
end local 6 99: StackMap locals:
StackMap stack:
aload 4
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "q"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
istore 6
start local 6 100: aload 4
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "qs"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
istore 7
start local 7 101: iload 6
ifne 102
iload 7
ifeq 108
102: StackMap locals: int int
StackMap stack:
new java.util.HashMap
dup
aload 4
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 8
start local 8 103: iload 6
ifeq 105
104: aload 8
ldc "q"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
105: StackMap locals: java.util.Map
StackMap stack:
iload 7
ifeq 107
106: aload 8
ldc "qs"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
107: StackMap locals:
StackMap stack:
new javax.ws.rs.core.MediaType
dup
aload 4
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 4
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 8
invokespecial javax.ws.rs.core.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
astore 4
end local 8 108: StackMap locals:
StackMap stack:
aload 4
areturn
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 109 0 request Lorg/jboss/resteasy/spi/HttpRequest;
0 109 1 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 109 2 providerFactory Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
0 109 3 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
1 109 4 chosen Ljavax/ws/rs/core/MediaType;
4 109 5 hasProduces Z
13 43 6 produces [Ljavax/ws/rs/core/MediaType;
18 24 7 producesValues [Ljava/lang/String;
20 24 8 i I
27 43 7 accepts Ljava/util/List<Ljavax/ws/rs/core/MediaType;>;
28 43 8 M Ljava/util/List<Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;>;
29 43 9 hasStarStar Z
30 43 10 hasApplicationStar Z
32 41 11 accept Ljavax/ws/rs/core/MediaType;
34 39 13 produce Ljavax/ws/rs/core/MediaType;
35 39 17 ms Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
46 94 6 type Ljava/lang/Class;
48 94 7 generic Ljava/lang/reflect/Type;
52 94 8 annotations [Ljava/lang/annotation/Annotation;
55 94 9 accepts Ljava/util/List<Ljavax/ws/rs/core/MediaType;>;
56 94 10 M Ljava/util/List<Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;>;
57 94 11 hasStarStar Z
58 94 12 hasApplicationStar Z
59 94 13 pFound Z
61 81 14 accept Ljavax/ws/rs/core/MediaType;
62 81 16 mbws Ljava/util/Map<Ljavax/ws/rs/ext/MessageBodyWriter<*>;Ljava/lang/Class<*>;>;
64 80 17 e Ljava/util/Map$Entry<Ljavax/ws/rs/ext/MessageBodyWriter<*>;Ljava/lang/Class<*>;>;
65 80 19 mbw Ljavax/ws/rs/ext/MessageBodyWriter<*>;
66 80 20 wt Ljava/lang/Class<*>;
67 80 21 produces Ljavax/ws/rs/Produces;
70 78 22 produceValue Ljava/lang/String;
72 78 26 produce Ljavax/ws/rs/core/MediaType;
74 78 27 ms Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
85 92 14 accept Ljavax/ws/rs/core/MediaType;
86 92 16 produce Ljavax/ws/rs/core/MediaType;
88 92 17 ms Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
96 99 6 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
100 109 6 hasQ Z
101 109 7 hasQs Z
103 108 8 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
request
jaxrsResponse
providerFactory
method
private static javax.ws.rs.core.MediaType chooseFromM(javax.ws.rs.core.MediaType, java.util.List<org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType>, boolean, boolean);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/util/List;ZZ)Ljavax/ws/rs/core/MediaType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
1: new javax.ws.rs.NotAcceptableException
dup
invokespecial javax.ws.rs.NotAcceptableException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: javax.ws.rs.core.MediaType java.util.List int int top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
astore 4
start local 4 5: aload 4
invokestatic org.jboss.resteasy.core.ServerResponseWriter.isConcrete:(Ljavax/ws/rs/core/MediaType;)Z
ifeq 8
6: aload 4
astore 0
7: goto 9
end local 4 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: StackMap locals: javax.ws.rs.core.MediaType java.util.List int int
StackMap stack:
aload 0
invokestatic org.jboss.resteasy.core.ServerResponseWriter.isConcrete:(Ljavax/ws/rs/core/MediaType;)Z
ifne 14
10: iload 2
ifne 11
iload 3
ifeq 13
11: StackMap locals:
StackMap stack:
getstatic javax.ws.rs.core.MediaType.APPLICATION_OCTET_STREAM_TYPE:Ljavax/ws/rs/core/MediaType;
astore 0
12: goto 14
13: StackMap locals:
StackMap stack:
new javax.ws.rs.NotAcceptableException
dup
invokespecial javax.ws.rs.NotAcceptableException.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 currentChoice Ljavax/ws/rs/core/MediaType;
0 15 1 M Ljava/util/List<Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;>;
0 15 2 hasStarStar Z
0 15 3 hasApplicationStar Z
5 8 4 m Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
Signature: (Ljavax/ws/rs/core/MediaType;Ljava/util/List<Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;>;ZZ)Ljavax/ws/rs/core/MediaType;
MethodParameters:
Name Flags
currentChoice
M
hasStarStar
hasApplicationStar
private static boolean isConcrete(javax.ws.rs.core.MediaType);
descriptor: (Ljavax/ws/rs/core/MediaType;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual javax.ws.rs.core.MediaType.isWildcardType:()Z
ifne 1
aload 0
invokevirtual javax.ws.rs.core.MediaType.isWildcardSubtype:()Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 m Ljavax/ws/rs/core/MediaType;
MethodParameters:
Name Flags
m
public static javax.ws.rs.core.MediaType resolveContentType(org.jboss.resteasy.specimpl.BuiltResponse);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;)Ljavax/ws/rs/core/MediaType;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
invokeinterface javax.ws.rs.core.MultivaluedMap.getFirst:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: getstatic javax.ws.rs.core.MediaType.WILDCARD_TYPE:Ljavax/ws/rs/core/MediaType;
areturn
4: StackMap locals: javax.ws.rs.core.MediaType java.lang.Object
StackMap stack:
aload 2
instanceof javax.ws.rs.core.MediaType
ifeq 7
5: aload 2
checkcast javax.ws.rs.core.MediaType
astore 1
6: goto 8
7: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic javax.ws.rs.core.MediaType.valueOf:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
astore 1
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 response Lorg/jboss/resteasy/specimpl/BuiltResponse;
1 9 1 responseContentType Ljavax/ws/rs/core/MediaType;
2 9 2 type Ljava/lang/Object;
MethodParameters:
Name Flags
response
public static void (org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpResponse);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpResponse;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
ifnull 17
1: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
2: ldc "Set-Cookie"
3: invokeinterface javax.ws.rs.core.MultivaluedMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 4: aload 2
ifnull 17
5: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 6: goto 15
7: StackMap locals: java.util.List java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 8: aload 4
instanceof javax.ws.rs.core.NewCookie
ifeq 13
9: aload 4
checkcast javax.ws.rs.core.NewCookie
astore 5
start local 5 10: aload 1
aload 5
invokeinterface org.jboss.resteasy.spi.HttpResponse.addNewCookie:(Ljavax/ws/rs/core/NewCookie;)V
11: aload 3
invokeinterface java.util.Iterator.remove:()V
end local 5 12: goto 15
13: StackMap locals: java.lang.Object
StackMap stack:
aload 1
invokeinterface org.jboss.resteasy.spi.HttpResponse.getOutputHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Set-Cookie"
aload 4
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
14: aload 3
invokeinterface java.util.Iterator.remove:()V
end local 4 15: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
16: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Set-Cookie"
invokeinterface javax.ws.rs.core.MultivaluedMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 17: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
ifnull 20
18: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
invokeinterface javax.ws.rs.core.MultivaluedMap.size:()I
ifle 20
19: aload 1
invokeinterface org.jboss.resteasy.spi.HttpResponse.getOutputHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
invokeinterface javax.ws.rs.core.MultivaluedMap.putAll:(Ljava/util/Map;)V
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 jaxrsResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 21 1 response Lorg/jboss/resteasy/spi/HttpResponse;
4 17 2 cookies Ljava/util/List<Ljava/lang/Object;>;
6 17 3 it Ljava/util/Iterator<Ljava/lang/Object;>;
8 15 4 next Ljava/lang/Object;
10 12 5 cookie Ljavax/ws/rs/core/NewCookie;
MethodParameters:
Name Flags
jaxrsResponse
response
private static org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType selectMostSpecific(org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType, org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType);
descriptor: (Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
1: aload 1
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
2: aload 0
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getSubtype:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 1
areturn
4: StackMap locals:
StackMap stack:
aload 0
areturn
5: StackMap locals:
StackMap stack:
aload 1
areturn
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 0
areturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.getSubtype:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
9: aload 1
areturn
10: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 m1 Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
0 11 1 m2 Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
MethodParameters:
Name Flags
m1
m2
private static org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType mostSpecific(javax.ws.rs.core.MediaType, java.lang.Class<?>, javax.ws.rs.core.MediaType, java.lang.Class<?>);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
1: aload 2
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
2: aload 0
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 2
aload 3
aload 0
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mixAddingQS:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mixAddingQ:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
areturn
5: StackMap locals:
StackMap stack:
aload 2
aload 3
aload 0
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mixAddingQS:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
areturn
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 0
aload 1
aload 2
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mixAddingQ:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
areturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
9: aload 2
aload 3
aload 0
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mixAddingQS:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
areturn
10: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic org.jboss.resteasy.core.ServerResponseWriter.mixAddingQ:(Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 p Ljavax/ws/rs/core/MediaType;
0 11 1 wtp Ljava/lang/Class<*>;
0 11 2 a Ljavax/ws/rs/core/MediaType;
0 11 3 wta Ljava/lang/Class<*>;
Signature: (Ljavax/ws/rs/core/MediaType;Ljava/lang/Class<*>;Ljavax/ws/rs/core/MediaType;Ljava/lang/Class<*>;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
MethodParameters:
Name Flags
p
wtp
a
wta
private static org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType mixAddingQ(javax.ws.rs.core.MediaType, java.lang.Class<?>, javax.ws.rs.core.MediaType);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
astore 3
start local 3 1: aload 2
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "q"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 2: aload 4
ifnull 5
3: new java.util.HashMap
dup
aload 3
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 3
4: aload 3
ldc "q"
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals: java.util.Map java.lang.String
StackMap stack:
new org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
dup
aload 0
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 0
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 3
aload 1
invokespecial org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/Class;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 p Ljavax/ws/rs/core/MediaType;
0 6 1 wtp Ljava/lang/Class<*>;
0 6 2 a Ljavax/ws/rs/core/MediaType;
1 6 3 pars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 6 4 q Ljava/lang/String;
Signature: (Ljavax/ws/rs/core/MediaType;Ljava/lang/Class<*>;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
MethodParameters:
Name Flags
p
wtp
a
private static org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType mixAddingQS(javax.ws.rs.core.MediaType, java.lang.Class<?>, javax.ws.rs.core.MediaType);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
astore 3
start local 3 1: aload 2
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "qs"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 2: aload 4
ifnull 5
3: new java.util.HashMap
dup
aload 3
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 3
4: aload 3
ldc "qs"
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals: java.util.Map java.lang.String
StackMap stack:
new org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
dup
aload 0
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 0
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 3
aload 1
invokespecial org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/Class;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 a Ljavax/ws/rs/core/MediaType;
0 6 1 wta Ljava/lang/Class<*>;
0 6 2 p Ljavax/ws/rs/core/MediaType;
1 6 3 pars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 6 4 qs Ljava/lang/String;
Signature: (Ljavax/ws/rs/core/MediaType;Ljava/lang/Class<*>;Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/core/ServerResponseWriter$SortableMediaType;
MethodParameters:
Name Flags
a
wta
p
private static void lambda$0(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 t Ljava/lang/Throwable;
private static void lambda$1(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 t Ljava/lang/Throwable;
private static void lambda$2(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpResponse, org.jboss.resteasy.spi.ResteasyProviderFactory, boolean, org.jboss.resteasy.core.ResourceMethodInvoker, org.jboss.resteasy.spi.HttpRequest);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpResponse;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;ZLorg/jboss/resteasy/core/ResourceMethodInvoker;Lorg/jboss/resteasy/spi/HttpRequest;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=12, locals=17, args_size=6
0: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
ifnull 1
aload 1
invokeinterface org.jboss.resteasy.spi.HttpResponse.getOutputStream:()Ljava/io/OutputStream;
ifnonnull 4
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getStatus:()I
invokeinterface org.jboss.resteasy.spi.HttpResponse.setStatus:(I)V
2: aload 0
aload 1
invokestatic org.jboss.resteasy.core.ServerResponseWriter.commitHeaders:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpResponse;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntityClass:()Ljava/lang/Class;
astore 6
start local 6 5: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
astore 7
start local 7 6: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getGenericType:()Ljava/lang/reflect/Type;
astore 8
start local 8 7: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getAnnotations:()[Ljava/lang/annotation/Annotation;
astore 9
start local 9 8: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMediaType:()Ljavax/ws/rs/core/MediaType;
astore 10
start local 10 9: aload 2
10: aload 6
aload 8
aload 9
aload 10
11: invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getMessageBodyWriter:(Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/ext/MessageBodyWriter;
astore 11
start local 11 12: aload 11
ifnull 14
13: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.LOGGER:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages;
ldc "MessageBodyWriter: %s"
aload 11
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages.debugf:(Ljava/lang/String;Ljava/lang/Object;)V
14: StackMap locals: org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.HttpResponse org.jboss.resteasy.spi.ResteasyProviderFactory int org.jboss.resteasy.core.ResourceMethodInvoker org.jboss.resteasy.spi.HttpRequest java.lang.Class java.lang.Object java.lang.reflect.Type java.lang.annotation.Annotation[] javax.ws.rs.core.MediaType javax.ws.rs.ext.MessageBodyWriter
StackMap stack:
aload 11
ifnonnull 16
15: new org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure
dup
aload 6
aload 10
invokespecial org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure.<init>:(Ljava/lang/Class;Ljavax/ws/rs/core/MediaType;)V
athrow
16: StackMap locals:
StackMap stack:
iload 3
ifeq 18
17: aload 1
aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getStatus:()I
invokeinterface org.jboss.resteasy.spi.HttpResponse.setStatus:(I)V
18: StackMap locals:
StackMap stack:
aload 0
astore 12
start local 12 19: new org.jboss.resteasy.core.ServerResponseWriter$1
dup
aload 12
aload 1
invokespecial org.jboss.resteasy.core.ServerResponseWriter$1.<init>:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpResponse;)V
astore 13
start local 13 20: iload 3
ifeq 21
new org.jboss.resteasy.util.CommitHeaderOutputStream
dup
aload 1
invokeinterface org.jboss.resteasy.spi.HttpResponse.getOutputStream:()Ljava/io/OutputStream;
aload 13
invokespecial org.jboss.resteasy.util.CommitHeaderOutputStream.<init>:(Ljava/io/OutputStream;Lorg/jboss/resteasy/util/CommitHeaderOutputStream$CommitCallback;)V
goto 22
StackMap locals: org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.util.CommitHeaderOutputStream$CommitCallback
StackMap stack:
21: aload 1
invokeinterface org.jboss.resteasy.spi.HttpResponse.getOutputStream:()Ljava/io/OutputStream;
StackMap locals:
StackMap stack: java.io.OutputStream
22: astore 14
start local 14 23: aconst_null
astore 15
start local 15 24: aload 4
ifnull 27
25: aload 4
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getWriterInterceptors:()[Ljavax/ws/rs/ext/WriterInterceptor;
astore 15
26: goto 28
27: StackMap locals: java.io.OutputStream javax.ws.rs.ext.WriterInterceptor[]
StackMap stack:
aload 2
invokevirtual org.jboss.resteasy.spi.ResteasyProviderFactory.getServerWriterInterceptorRegistry:()Lorg/jboss/resteasy/core/interception/WriterInterceptorRegistry;
aconst_null
aconst_null
invokevirtual org.jboss.resteasy.core.interception.WriterInterceptorRegistry.postMatch:(Ljava/lang/Class;Ljava/lang/reflect/AccessibleObject;)[Ljava/lang/Object;
checkcast javax.ws.rs.ext.WriterInterceptor[]
astore 15
28: StackMap locals:
StackMap stack:
new org.jboss.resteasy.core.interception.ServerWriterInterceptorContext
dup
aload 15
29: aload 2
aload 7
aload 6
aload 8
aload 9
aload 10
30: aload 0
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getMetadata:()Ljavax/ws/rs/core/MultivaluedMap;
aload 14
aload 5
31: invokespecial org.jboss.resteasy.core.interception.ServerWriterInterceptorContext.<init>:([Ljavax/ws/rs/ext/WriterInterceptor;Lorg/jboss/resteasy/spi/ResteasyProviderFactory;Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rs/core/MultivaluedMap;Ljava/io/OutputStream;Lorg/jboss/resteasy/spi/HttpRequest;)V
astore 16
start local 16 32: aload 16
invokevirtual org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed:()V
33: iload 3
ifeq 36
34: aload 1
aload 16
invokevirtual org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.getOutputStream:()Ljava/io/OutputStream;
invokeinterface org.jboss.resteasy.spi.HttpResponse.setOutputStream:(Ljava/io/OutputStream;)V
35: aload 13
invokeinterface org.jboss.resteasy.util.CommitHeaderOutputStream$CommitCallback.commit:()V
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 36: StackMap locals: org.jboss.resteasy.specimpl.BuiltResponse org.jboss.resteasy.spi.HttpResponse org.jboss.resteasy.spi.ResteasyProviderFactory int org.jboss.resteasy.core.ResourceMethodInvoker org.jboss.resteasy.spi.HttpRequest
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
5 36 6 type Ljava/lang/Class;
6 36 7 ent Ljava/lang/Object;
7 36 8 generic Ljava/lang/reflect/Type;
8 36 9 annotations [Ljava/lang/annotation/Annotation;
9 36 10 mt Ljavax/ws/rs/core/MediaType;
12 36 11 writer Ljavax/ws/rs/ext/MessageBodyWriter;
19 36 12 built Lorg/jboss/resteasy/specimpl/BuiltResponse;
20 36 13 callback Lorg/jboss/resteasy/util/CommitHeaderOutputStream$CommitCallback;
23 36 14 os Ljava/io/OutputStream;
24 36 15 writerInterceptors [Ljavax/ws/rs/ext/WriterInterceptor;
32 36 16 writerContext Lorg/jboss/resteasy/core/interception/AbstractWriterInterceptorContext;
Exceptions:
throws java.io.IOException
}
SourceFile: "ServerResponseWriter.java"
NestMembers:
org.jboss.resteasy.core.ServerResponseWriter$1 org.jboss.resteasy.core.ServerResponseWriter$2 org.jboss.resteasy.core.ServerResponseWriter$RunnableWithIOException org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
org.jboss.resteasy.core.ServerResponseWriter$1
public abstract RunnableWithIOException = org.jboss.resteasy.core.ServerResponseWriter$RunnableWithIOException of org.jboss.resteasy.core.ServerResponseWriter
private SortableMediaType = org.jboss.resteasy.core.ServerResponseWriter$SortableMediaType of org.jboss.resteasy.core.ServerResponseWriter
public abstract CommitCallback = org.jboss.resteasy.util.CommitHeaderOutputStream$CommitCallback of org.jboss.resteasy.util.CommitHeaderOutputStream