class org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer 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$AsyncGeneralStreamingSseResponseConsumer
super_class: org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer
{
private org.jboss.resteasy.plugins.providers.sse.SseImpl sse;
descriptor: Lorg/jboss/resteasy/plugins/providers/sse/SseImpl;
flags: (0x0002) ACC_PRIVATE
private javax.ws.rs.sse.SseEventSink sseEventSink;
descriptor: Ljavax/ws/rs/sse/SseEventSink;
flags: (0x0002) ACC_PRIVATE
private volatile boolean onCompleteReceived;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean sendingEvent;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private 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: (0x0002) ACC_PRIVATE
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
iconst_0
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.onCompleteReceived:Z
2: aload 0
iconst_0
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sendingEvent:Z
3: aload 0
new org.jboss.resteasy.plugins.providers.sse.SseImpl
dup
invokespecial org.jboss.resteasy.plugins.providers.sse.SseImpl.<init>:()V
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sse:Lorg/jboss/resteasy/plugins/providers/sse/SseImpl;
4: aload 0
ldc Ljavax/ws/rs/sse/SseEventSink;
invokestatic org.jboss.resteasy.spi.ResteasyProviderFactory.getContextData:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.ws.rs.sse.SseEventSink
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sseEventSink:Ljavax/ws/rs/sse/SseEventSink;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
0 6 1 method Lorg/jboss/resteasy/core/ResourceMethodInvoker;
0 6 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 doComplete();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.subscription:Lorg/reactivestreams/Subscription;
ifnull 2
1: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.subscription:Lorg/reactivestreams/Subscription;
invokeinterface org.reactivestreams.Subscription.cancel:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sseEventSink:Ljavax/ws/rs/sse/SseEventSink;
invokeinterface javax.ws.rs.sse.SseEventSink.close:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
protected void addNextElement(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer.addNextElement:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
0 2 1 element Ljava/lang/Object;
MethodParameters:
Name Flags
element
public synchronized void onComplete();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.onCompleteReceived:Z
1: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sendingEvent:Z
ifne 3
2: aload 0
invokespecial org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer.onComplete:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
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=10, 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$AsyncGeneralStreamingSseResponseConsumer.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$AsyncGeneralStreamingSseResponseConsumer.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: aconst_null
astore 5
start local 5 2: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
instanceof javax.ws.rs.sse.OutboundSseEvent
ifeq 5
3: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
checkcast javax.ws.rs.sse.OutboundSseEvent
astore 6
start local 6 4: aload 6
invokeinterface javax.ws.rs.sse.OutboundSseEvent.getMediaType:()Ljavax/ws/rs/core/MediaType;
astore 5
end local 6 5: StackMap locals: javax.ws.rs.core.MediaType
StackMap stack:
aconst_null
astore 6
start local 6 6: aload 3
invokeinterface org.jboss.resteasy.spi.HttpResponse.getOutputHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
invokeinterface javax.ws.rs.core.MultivaluedMap.getFirst:(Ljava/lang/Object;)Ljava/lang/Object;
astore 7
start local 7 7: aload 7
ifnull 21
8: aload 7
instanceof java.lang.String
ifeq 11
9: aload 7
checkcast java.lang.String
invokestatic javax.ws.rs.core.MediaType.valueOf:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
astore 6
10: goto 15
11: StackMap locals: javax.ws.rs.core.MediaType java.lang.Object
StackMap stack:
aload 7
instanceof javax.ws.rs.core.MediaType
ifeq 14
12: aload 7
checkcast javax.ws.rs.core.MediaType
astore 6
13: goto 15
14: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
aload 7
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.expectedStringOrMediaType:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 5
ifnonnull 22
16: aload 6
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "element-type"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 17: aload 8
ifnull 18
aload 8
invokestatic javax.ws.rs.core.MediaType.valueOf:(Ljava/lang/String;)Ljavax/ws/rs/core/MediaType;
goto 19
StackMap locals: java.lang.String
StackMap stack:
18: getstatic javax.ws.rs.core.MediaType.TEXT_PLAIN_TYPE:Ljavax/ws/rs/core/MediaType;
StackMap locals:
StackMap stack: javax.ws.rs.core.MediaType
19: astore 5
end local 8 20: goto 22
21: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
aload 7
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.expectedStringOrMediaType:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sse:Lorg/jboss/resteasy/plugins/providers/sse/SseImpl;
invokevirtual org.jboss.resteasy.plugins.providers.sse.SseImpl.newEventBuilder:()Ljavax/ws/rs/sse/OutboundSseEvent$Builder;
23: aload 5
invokeinterface javax.ws.rs.sse.OutboundSseEvent$Builder.mediaType:(Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/sse/OutboundSseEvent$Builder;
24: aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntityClass:()Ljava/lang/Class;
aload 1
invokevirtual org.jboss.resteasy.specimpl.BuiltResponse.getEntity:()Ljava/lang/Object;
invokeinterface javax.ws.rs.sse.OutboundSseEvent$Builder.data:(Ljava/lang/Class;Ljava/lang/Object;)Ljavax/ws/rs/sse/OutboundSseEvent$Builder;
25: invokeinterface javax.ws.rs.sse.OutboundSseEvent$Builder.build:()Ljavax/ws/rs/sse/OutboundSseEvent;
26: astore 8
start local 8 27: ldc "application"
aload 6
invokevirtual javax.ws.rs.core.MediaType.getType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 31
28: ldc "x-stream-general"
aload 6
invokevirtual javax.ws.rs.core.MediaType.getSubtype:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 31
29: aload 8
instanceof org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl
ifeq 31
30: aload 8
checkcast org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl.setEscape:(Ljava/lang/Boolean;)V
31: StackMap locals: javax.ws.rs.sse.OutboundSseEvent
StackMap stack:
aload 0
iconst_1
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sendingEvent:Z
32: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sseEventSink:Ljavax/ws/rs/sse/SseEventSink;
aload 8
invokeinterface javax.ws.rs.sse.SseEventSink.send:(Ljavax/ws/rs/sse/OutboundSseEvent;)Ljava/util/concurrent/CompletionStage;
aload 0
aload 4
invokedynamic accept(Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;Ljava/util/function/Consumer;)Ljava/util/function/BiConsumer;
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;Ljava/lang/Object;)V
org/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.lambda$0(Ljava/util/function/Consumer;Ljava/lang/Object;Ljava/lang/Throwable;)V (7)
(Ljava/lang/Object;Ljava/lang/Throwable;)V
invokeinterface java.util.concurrent.CompletionStage.whenComplete:(Ljava/util/function/BiConsumer;)Ljava/util/concurrent/CompletionStage;
pop
33: goto 37
StackMap locals:
StackMap stack: java.lang.Exception
34: astore 9
start local 9 35: aload 0
aload 9
invokevirtual org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.complete:(Ljava/lang/Throwable;)V
36: aload 4
aload 9
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 9 37: StackMap locals:
StackMap stack:
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 38 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
0 38 1 builtResponse Lorg/jboss/resteasy/specimpl/BuiltResponse;
0 38 2 httpRequest Lorg/jboss/resteasy/spi/HttpRequest;
0 38 3 httpResponse Lorg/jboss/resteasy/spi/HttpResponse;
0 38 4 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
2 38 5 elementType Ljavax/ws/rs/core/MediaType;
4 5 6 entity Ljavax/ws/rs/sse/OutboundSseEvent;
6 38 6 contentType Ljavax/ws/rs/core/MediaType;
7 38 7 o Ljava/lang/Object;
17 20 8 et Ljava/lang/String;
27 38 8 event Ljavax/ws/rs/sse/OutboundSseEvent;
35 37 9 x Ljava/lang/Exception;
Exception table:
from to target type
32 33 34 Class java.lang.Exception
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 boolean ();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
private void lambda$0(java.util.function.Consumer, java.lang.Object, java.lang.Throwable);
descriptor: (Ljava/util/function/Consumer;Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 2 start local 3 0: aload 0
dup
astore 4
monitorenter
1: aload 0
iconst_0
putfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.sendingEvent:Z
2: aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.onCompleteReceived:Z
ifeq 4
3: aload 0
invokespecial org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer.onComplete:()V
goto 10
4: StackMap locals: org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer
StackMap stack:
aload 3
ifnull 8
5: aload 0
aload 3
invokevirtual org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.complete:(Ljava/lang/Throwable;)V
6: aload 1
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer.subscription:Lorg/reactivestreams/Subscription;
lconst_1
invokeinterface org.reactivestreams.Subscription.request:(J)V
9: aload 1
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
10: StackMap locals:
StackMap stack:
aload 4
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 4
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jboss/resteasy/core/AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer;
0 15 2 val Ljava/lang/Object;
0 15 3 ex Ljava/lang/Throwable;
Exception table:
from to target type
1 11 12 any
12 13 12 any
}
SourceFile: "AsyncResponseConsumer.java"
NestHost: org.jboss.resteasy.core.AsyncResponseConsumer
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Builder = javax.ws.rs.sse.OutboundSseEvent$Builder of javax.ws.rs.sse.OutboundSseEvent
private AsyncGeneralStreamingSseResponseConsumer = org.jboss.resteasy.core.AsyncResponseConsumer$AsyncGeneralStreamingSseResponseConsumer of org.jboss.resteasy.core.AsyncResponseConsumer
private abstract AsyncStreamResponseConsumer = org.jboss.resteasy.core.AsyncResponseConsumer$AsyncStreamResponseConsumer of org.jboss.resteasy.core.AsyncResponseConsumer