io.helidon.common.reactive.Flow.Publisher<RequestChunk>public interface MediaPublisher extends io.helidon.common.reactive.Flow.Publisher<RequestChunk>
publisher of specific media type.| Modifier and Type | Method | Description |
|---|---|---|
MediaType |
mediaType() |
Returns a media type of published data.
|
static MediaPublisher |
of(MediaType publishedType,
io.helidon.common.reactive.Flow.Publisher<RequestChunk> publisher) |
Creates new instance.
|
static MediaPublisher |
of(MediaType publishedType,
java.lang.CharSequence charSequence) |
Creates a publisher of single
string. |
MediaType mediaType()
null for undefined.static MediaPublisher of(MediaType publishedType, io.helidon.common.reactive.Flow.Publisher<RequestChunk> publisher)
publishedType - a published media type.publisher - a publisher.static MediaPublisher of(MediaType publishedType, java.lang.CharSequence charSequence)
string.publishedType - a type. If contains charset then it is used, otherwise use UTF-8. If null then
text/plain is used as a default.charSequence - A sequence to publish.Copyright © 2018 Oracle Corporation. All rights reserved.