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