Module methanol
Class ForwardingBodySubscriber<T>
- java.lang.Object
-
- com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<java.util.List<java.nio.ByteBuffer>>
-
- com.github.mizosoft.methanol.internal.extensions.ForwardingBodySubscriber<T>
-
- All Implemented Interfaces:
java.net.http.HttpResponse.BodySubscriber<T>,java.util.concurrent.Flow.Subscriber<java.util.List<java.nio.ByteBuffer>>
public class ForwardingBodySubscriber<T> extends ForwardingSubscriber<java.util.List<java.nio.ByteBuffer>> implements java.net.http.HttpResponse.BodySubscriber<T>
-
-
Field Summary
-
Fields inherited from class com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber
upstream
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForwardingBodySubscriber(java.net.http.HttpResponse.BodySubscriber<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.http.HttpResponse.BodySubscriber<T>delegate()Returns the downstream to which signals are forwarded.java.util.concurrent.CompletionStage<T>getBody()-
Methods inherited from class com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber
onComplete, onError, onNext, onSubscribe, toString
-
-
-
-
Constructor Detail
-
ForwardingBodySubscriber
protected ForwardingBodySubscriber(java.net.http.HttpResponse.BodySubscriber<T> delegate)
-
-
Method Detail
-
delegate
protected final java.net.http.HttpResponse.BodySubscriber<T> delegate()
Description copied from class:ForwardingSubscriberReturns the downstream to which signals are forwarded.- Specified by:
delegatein classForwardingSubscriber<java.util.List<java.nio.ByteBuffer>>
-
-