Uses of Record Class
io.jstach.opt.spring.example.hello.HelloModel
Packages that use HelloModel
-
Uses of HelloModel in io.jstach.opt.spring.example.hello
Fields in io.jstach.opt.spring.example.hello with type parameters of type HelloModelModifier and TypeFieldDescriptionfinal Template<HelloModel>
HelloController.view
(Optional) Spring will inject this template as the templates are either component scanned or loaded by the ServiceLoader into Spring's context.Methods in io.jstach.opt.spring.example.hello that return HelloModelModifier and TypeMethodDescriptionHelloController.hello()
Here we use JStachio runtime to resolve the renderer (in this case we are calling them Views) via Springs Http Message Converter.Methods in io.jstach.opt.spring.example.hello that return types with arguments of type HelloModelModifier and TypeMethodDescriptionHelloController.entity()
Here we use aResponseEntity
which allows use to set status codes with our model to be rendered.Methods in io.jstach.opt.spring.example.hello with parameters of type HelloModelModifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModel data, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.HelloModelView.execute
(HelloModel model, A a) HelloModelView.execute
(HelloModel model, A a, Formatter formatter, Escaper escaper) Renders the passed in model.HelloModelView.execute
(HelloModel model, ContextNode context, A a) HelloModelView.execute
(HelloModel model, StringBuilder sb) HelloModelView.render
(HelloModel data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.HelloModelView.render
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, ContextNode context, A outputStream) Constructor parameters in io.jstach.opt.spring.example.hello with type arguments of type HelloModelModifierConstructorDescriptionHelloController
(JStachio jstachio, Template<HelloModel> view) Placate JDK 18 Javadoc