T
- The response type@Indexed(value=ServletResponseEncoder.class) public interface ServletResponseEncoder<T>
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
encode(ServletExchange<?,?> exchange,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
T value)
Encode the given value.
|
java.lang.Class<T> |
getResponseType() |
java.lang.Class<T> getResponseType()
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> encode(@Nonnull ServletExchange<?,?> exchange, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, @Nonnull T value)
exchange
- The changeannotationMetadata
- The annotation metadata declared on the methodvalue
- The value to encode