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