Class JteWritable

java.lang.Object
io.micronaut.views.jte.JteWritable
All Implemented Interfaces:
io.micronaut.core.io.Streamable, io.micronaut.core.io.Writable

public class JteWritable extends Object implements io.micronaut.core.io.Writable
Turn JTE rendering logic into a Writable.
  • Constructor Details

    • JteWritable

      public JteWritable(gg.jte.TemplateEngine templateEngine, String viewName, Map<String,Object> data, Function<gg.jte.TemplateOutput,gg.jte.TemplateOutput> outputDecorator)
  • Method Details

    • writeTo

      public void writeTo(Writer out) throws IOException
      Specified by:
      writeTo in interface io.micronaut.core.io.Writable
      Throws:
      IOException
    • writeTo

      public void writeTo(OutputStream outputStream, Charset charset) throws IOException
      Specified by:
      writeTo in interface io.micronaut.core.io.Streamable
      Specified by:
      writeTo in interface io.micronaut.core.io.Writable
      Throws:
      IOException