Package io.micronaut.views.turbo
Class TurboStreamBuilderMessageBodyWriter
java.lang.Object
io.micronaut.views.turbo.TurboStreamBuilderMessageBodyWriter
- All Implemented Interfaces:
io.micronaut.http.body.MessageBodyWriter<TurboStream.Builder>
@Produces("text/vnd.turbo-stream.html")
@Singleton
public class TurboStreamBuilderMessageBodyWriter
extends Object
implements io.micronaut.http.body.MessageBodyWriter<TurboStream.Builder>
- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionTurboStreamBuilderMessageBodyWriter
(TurboStreamRenderer turboStreamRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(@NonNull io.micronaut.core.type.Argument<TurboStream.Builder> type, @NonNull io.micronaut.http.MediaType mediaType, TurboStream.Builder turboStreamBuilder, @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
-
TurboStreamBuilderMessageBodyWriter
-
-
Method Details
-
writeTo
public void writeTo(@NonNull @NonNull io.micronaut.core.type.Argument<TurboStream.Builder> type, @NonNull @NonNull io.micronaut.http.MediaType mediaType, TurboStream.Builder turboStreamBuilder, @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<TurboStream.Builder>
- Throws:
io.micronaut.http.codec.CodecException
-