class org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer extends org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer
super_class: org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer
{
private boolean sentEntity;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.jboss.resteasy.core.ResourceMethodInvoker method;
descriptor: Lorg/jboss/resteasy/core/ResourceMethodInvoker;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.jboss.resteasy.core.ResourceMethodInvoker, org.jboss.resteasy.spi.AsyncStreamProvider<?>);
descriptor: (Lorg/jboss/resteasy/core/ResourceMethodInvoker;Lorg/jboss/resteasy/spi/AsyncStreamProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer.<init>:(Lorg/jboss/resteasy/core/ResourceMethodInvoker;Lorg/jboss/resteasy/spi/AsyncStreamProvider;)V
1: aload 0
aload 1
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.method:Lorg/jboss/resteasy/core/ResourceMethodInvoker;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer;
0 3 1 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
0 3 2 asyncStreamProvider Lorg/jboss/resteasy/spi/AsyncStreamProvider<*>;
Signature: (Lorg/jboss/resteasy/core/ResourceMethodInvoker;Lorg/jboss/resteasy/spi/AsyncStreamProvider<*>;)V
MethodParameters:
Name Flags
method
asyncStreamProvider
protected void sendBuiltResponse(org.jboss.resteasy.specimpl.BuiltResponse, org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Ljava/util/function/Consumer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 2
aload 3
aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.dispatcher:Lorg/jboss/resteasy/core/SynchronousDispatcher;
invokevirtual org.jboss.resteasy.core.SynchronousDispatcher.getProviderFactory:()Lorg/jboss/resteasy/spi/ResteasyProviderFactory;
aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.method:Lorg/jboss/resteasy/core/ResourceMethodInvoker;
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
1: iconst_0
istore 5
start local 5 2: aload 1
ldc "Content-Type"
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getHeaderString:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 3: aload 6
ifnonnull 6
4: ldc "application/octet-stream"
astore 6
5: iconst_1
istore 5
6: StackMap locals: int java.lang.String
StackMap stack:
aload 6
invokestatic javax.ws.rs.core.MediaType.valueOf:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
astore 7
start local 7 7: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.method:Lorg/jboss/resteasy/core/ResourceMethodInvoker;
invokevirtual org.jboss.resteasy.core.ResourceMethodInvoker.getMethod:()Ljava/lang/reflect/Method;
ldc Lorg/jboss/resteasy/annotations/Stream;
invokevirtual java.lang.reflect.Method.getAnnotationsByType:(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
checkcast org.jboss.resteasy.annotations.Stream[]
astore 8
start local 8 8: aload 8
arraylength
ifle 15
9: aload 8
iconst_0
aaload
astore 9
start local 9 10: aload 9
invokeinterface org.jboss.resteasy.annotations.Stream.includeStreaming:()Z
ifeq 15
11: new java.util.HashMap
dup
aload 7
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 10
start local 10 12: aload 10
ldc "streaming"
ldc "true"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: new javax.ws.rs.core.MediaType
dup
aload 7
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
aload 7
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
aload 10
invokespecial javax.ws.rs.core.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
astore 7
14: iconst_1
istore 5
end local 10 end local 9 15: StackMap locals: javax.ws.rs.core.MediaType org.jboss.resteasy.annotations.Stream[]
StackMap stack:
iload 5
ifeq 21
16: new org.jboss.resteasy.specimpl.MultivaluedTreeMap
dup
invokespecial org.jboss.resteasy.specimpl.MultivaluedTreeMap.<init>:()V
astore 9
start local 9 17: aload 9
aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
invokeinterface javax.ws.rs.core.MultivaluedMap.putAll:(Ljava/util/Map;)V
18: aload 9
ldc "Content-Type"
invokeinterface javax.ws.rs.core.MultivaluedMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 9
ldc "Content-Type"
aload 7
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
20: aload 1
aload 9
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.setMetadata:(Ljavax/ws/rs/core/MultivaluedMap;)V
end local 9 21: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer.sendBuiltResponse:(Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Ljava/util/function/Consumer;)V
22: aload 0
iconst_1
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.sentEntity:Z
23: return
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 24 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer;
0 24 1 builtResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 24 2 httpRequest Lorg/jboss/resteasy/spi/HttpRequest;
0 24 3 httpResponse Lorg/jboss/resteasy/spi/HttpResponse;
0 24 4 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
2 24 5 resetMediaType Z
3 24 6 mediaTypeString Ljava/lang/String;
7 24 7 mediaType Ljavax/ws/rs/core/MediaType;
8 24 8 streams [Lorg/jboss/resteasy/annotations/Stream;
10 15 9 stream Lorg/jboss/resteasy/annotations/Stream;
12 15 10 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
17 21 9 headerMap Ljavax/ws/rs/core/MultivaluedMap<Ljava/lang/String;Ljava/lang/Object;>;
Exceptions:
throws java.io.IOException
Signature: (Lorg/jboss/resteasy/specimpl/BuiltResponse;Lorg/jboss/resteasy/spi/HttpRequest;Lorg/jboss/resteasy/spi/HttpResponse;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
builtResponse
httpRequest
httpResponse
onComplete
protected void addNextElement(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
invokedynamic accept(Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer;)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/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.lambda$0(Ljava/lang/Throwable;)V (7)
(Ljava/lang/Throwable;)V
invokevirtual org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.internalResume:(Ljava/lang/Object;Ljava/util/function/Consumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer;
0 2 1 element Ljava/lang/Object;
MethodParameters:
Name Flags
element
protected boolean ();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.sentEntity:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer;
private void lambda$0(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
1: aload 0
aload 1
invokevirtual org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.complete:(Ljava/lang/Throwable;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer.subscription:Lorg/reactivestreams/Subscription;
lconst_1
invokeinterface org.reactivestreams.Subscription.request:(J)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncRawStreamingResponseConsumer;
0 5 1 t Ljava/lang/Throwable;
}
SourceFile: "AsyncResponseConsumer.java"
NestHost: org.jboss.resteasy.core.AsyncResponseConsumer
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private AsyncRawStreamingResponseConsumer = org.jboss.resteasy.core.AsyncResponseConsumer$AsyncRawStreamingResponseConsumer of org.jboss.resteasy.core.AsyncResponseConsumer
private abstract AsyncStreamResponseConsumer = org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer of org.jboss.resteasy.core.AsyncResponseConsumer