Package io.micronaut.views.turbo
Class TurboStreamListOfBuilderMessageBodyWriter
java.lang.Object
io.micronaut.views.turbo.TurboStreamListOfBuilderMessageBodyWriter
- All Implemented Interfaces:
io.micronaut.http.body.MessageBodyWriter<List<TurboStream.Builder>>
@Produces("text/vnd.turbo-stream.html")
@Singleton
public class TurboStreamListOfBuilderMessageBodyWriter
extends Object
implements io.micronaut.http.body.MessageBodyWriter<List<TurboStream.Builder>>
- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionTurboStreamListOfBuilderMessageBodyWriter
(TurboStreamRenderer turboStreamRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(@NonNull io.micronaut.core.type.Argument<List<TurboStream.Builder>> type, @NonNull io.micronaut.http.MediaType mediaType, List<TurboStream.Builder> turboStreamBuilders, @NonNull io.micronaut.core.type.MutableHeaders outgoingHeaders, @NonNull OutputStream outputStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.body.MessageBodyWriter
createSpecific, isBlocking, isWriteable, writeTo
-
Constructor Details
-
TurboStreamListOfBuilderMessageBodyWriter
-
-
Method Details
-
writeTo
public void writeTo(@NonNull @NonNull io.micronaut.core.type.Argument<List<TurboStream.Builder>> type, @NonNull @NonNull io.micronaut.http.MediaType mediaType, List<TurboStream.Builder> turboStreamBuilders, @NonNull @NonNull io.micronaut.core.type.MutableHeaders outgoingHeaders, @NonNull @NonNull OutputStream outputStream) throws io.micronaut.http.codec.CodecException - Specified by:
writeTo
in interfaceio.micronaut.http.body.MessageBodyWriter<List<TurboStream.Builder>>
- Throws:
io.micronaut.http.codec.CodecException
-