public class CloudEventHttpMessageWriter extends Object implements org.springframework.http.codec.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(org.springframework.core.ResolvableType elementType,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getWritableMediaTypes() |
reactor.core.publisher.Mono<Void> |
write(org.reactivestreams.Publisher<? extends io.cloudevents.CloudEvent> inputStream,
org.springframework.core.ResolvableType elementType,
org.springframework.http.MediaType mediaType,
org.springframework.http.ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
public List<org.springframework.http.MediaType> getWritableMediaTypes()
getWritableMediaTypes in interface org.springframework.http.codec.HttpMessageWriter<io.cloudevents.CloudEvent>public boolean canWrite(org.springframework.core.ResolvableType elementType,
org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.codec.HttpMessageWriter<io.cloudevents.CloudEvent>public reactor.core.publisher.Mono<Void> write(org.reactivestreams.Publisher<? extends io.cloudevents.CloudEvent> inputStream, org.springframework.core.ResolvableType elementType, org.springframework.http.MediaType mediaType, org.springframework.http.ReactiveHttpOutputMessage message, Map<String,Object> hints)
write in interface org.springframework.http.codec.HttpMessageWriter<io.cloudevents.CloudEvent>Copyright © 2024. All rights reserved.