public class CloudEventHttpMessageReader extends Object implements org.springframework.http.codec.HttpMessageReader<io.cloudevents.CloudEvent>
HttpMessageReader
for CloudEvents
, converting
from an HTTP request to a CloudEvent. Supports the use of CloudEvent
as an
input to a reactive endpoint.Constructor and Description |
---|
CloudEventHttpMessageReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(org.springframework.core.ResolvableType elementType,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getReadableMediaTypes() |
reactor.core.publisher.Flux<io.cloudevents.CloudEvent> |
read(org.springframework.core.ResolvableType elementType,
org.springframework.http.ReactiveHttpInputMessage message,
Map<String,Object> hints) |
reactor.core.publisher.Mono<io.cloudevents.CloudEvent> |
readMono(org.springframework.core.ResolvableType elementType,
org.springframework.http.ReactiveHttpInputMessage message,
Map<String,Object> hints) |
public List<org.springframework.http.MediaType> getReadableMediaTypes()
getReadableMediaTypes
in interface org.springframework.http.codec.HttpMessageReader<io.cloudevents.CloudEvent>
public boolean canRead(org.springframework.core.ResolvableType elementType, org.springframework.http.MediaType mediaType)
canRead
in interface org.springframework.http.codec.HttpMessageReader<io.cloudevents.CloudEvent>
public reactor.core.publisher.Flux<io.cloudevents.CloudEvent> read(org.springframework.core.ResolvableType elementType, org.springframework.http.ReactiveHttpInputMessage message, Map<String,Object> hints)
read
in interface org.springframework.http.codec.HttpMessageReader<io.cloudevents.CloudEvent>
public reactor.core.publisher.Mono<io.cloudevents.CloudEvent> readMono(org.springframework.core.ResolvableType elementType, org.springframework.http.ReactiveHttpInputMessage message, Map<String,Object> hints)
readMono
in interface org.springframework.http.codec.HttpMessageReader<io.cloudevents.CloudEvent>
Copyright © 2023. All rights reserved.