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, upStreamRequest
Methods inherited from class org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher
isCancelled, request, subscribe, subscriber
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.reactivestreams.Publisher
subscribe
-
Constructor Details
-
PublisherContent
-
-
Method Details
-
getLength
public long getLength()- Specified by:
getLength
in interfaceReactiveRequest.Content
- Returns:
- the content length
-
getContentType
- Specified by:
getContentType
in interfaceReactiveRequest.Content
- Returns:
- the content type in the form
media_type[;charset=<charset>]
-
onNext
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<ContentChunk>
-