public class PublisherContent extends AbstractSingleProcessor<ContentChunk,ContentChunk> implements ReactiveRequest.Content
ReactiveRequest.Content that wraps a Publisher.| Constructor and Description |
|---|
PublisherContent(org.reactivestreams.Publisher<ContentChunk> publisher,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
long |
getLength() |
void |
onNext(ContentChunk chunk) |
cancel, downStream, downStreamOnNext, onComplete, onError, onFailure, onRequest, onSubscribe, toString, upStream, upStreamRequestisCancelled, request, subscribe, subscriberclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromPublisher, fromPublisher, fromStringpublic PublisherContent(org.reactivestreams.Publisher<ContentChunk> publisher, String contentType)
public long getLength()
getLength in interface ReactiveRequest.Contentpublic String getContentType()
getContentType in interface ReactiveRequest.Contentmedia_type[;charset=<charset>]public void onNext(ContentChunk chunk)
onNext in interface org.reactivestreams.Subscriber<ContentChunk>Copyright © 2017–2024 The Jetty Project. All rights reserved.