Class PublisherContent
java.lang.Object
org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher<O>
org.eclipse.jetty.reactive.client.internal.AbstractSingleProcessor<ContentChunk,ContentChunk>
org.eclipse.jetty.reactive.client.internal.PublisherContent
- All Implemented Interfaces:
ReactiveRequest.Content,org.reactivestreams.Processor<ContentChunk,,ContentChunk> org.reactivestreams.Publisher<ContentChunk>,org.reactivestreams.Subscriber<ContentChunk>,org.reactivestreams.Subscription
public class PublisherContent
extends AbstractSingleProcessor<ContentChunk,ContentChunk>
implements ReactiveRequest.Content
A
ReactiveRequest.Content that wraps a Publisher.-
Constructor Summary
ConstructorsConstructorDescriptionPublisherContent(org.reactivestreams.Publisher<ContentChunk> publisher, String contentType) -
Method Summary
Methods inherited from class org.eclipse.jetty.reactive.client.internal.AbstractSingleProcessor
cancel, downStream, downStreamOnNext, onComplete, onError, onFailure, onRequest, onSubscribe, toString, upStream, upStreamRequestMethods inherited from class org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher
isCancelled, request, subscribe, subscriberMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.reactivestreams.Publisher
subscribe
-
Constructor Details
-
PublisherContent
-
-
Method Details
-
getLength
public long getLength()- Specified by:
getLengthin interfaceReactiveRequest.Content- Returns:
- the content length
-
getContentType
- Specified by:
getContentTypein interfaceReactiveRequest.Content- Returns:
- the content type in the form
media_type[;charset=<charset>]
-
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<ContentChunk>
-