public class CloudEventHttpMessageWriter extends Object implements HttpMessageWriter<io.cloudevents.CloudEvent>
HttpMessageWriter for CloudEvents, converting
from a CloudEvent to an HTTP response. Supports the use of CloudEvent as an
output from a reactive endpoint.| Constructor and Description |
|---|
CloudEventHttpMessageWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite(ResolvableType elementType,
MediaType mediaType) |
List<MediaType> |
getWritableMediaTypes() |
reactor.core.publisher.Mono<Void> |
write(org.reactivestreams.Publisher<? extends io.cloudevents.CloudEvent> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWritableMediaTypes, writepublic List<MediaType> getWritableMediaTypes()
getWritableMediaTypes in interface HttpMessageWriter<io.cloudevents.CloudEvent>public boolean canWrite(ResolvableType elementType, MediaType mediaType)
canWrite in interface HttpMessageWriter<io.cloudevents.CloudEvent>public reactor.core.publisher.Mono<Void> write(org.reactivestreams.Publisher<? extends io.cloudevents.CloudEvent> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
write in interface HttpMessageWriter<io.cloudevents.CloudEvent>Copyright © 2022. All rights reserved.