java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
io.jstach.opt.spring.web.JStachioHttpMessageConverter
- All Implemented Interfaces:
 HttpMessageConverter<Object>
Typesafe way to use JStachio in Spring Web.
 
 For this to work the controllers need to return JStache models and have the controller
 method return annotated with ResponseBody.
 
Example:
 @JStache
 public record HelloModel(String message){}
 @GetMapping(value = "/")
 @ResponseBody
 public HelloModel hello() {
     return new HelloModel("Spring Boot is now JStachioed!");
 }
  - Author:
 - agentgt
 
- 
Constructor Summary
ConstructorsConstructorDescriptionJStachioHttpMessageConverter(JStachio jstachio) Create http converter from jstachio - 
Method Summary
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes 
- 
Constructor Details
- 
JStachioHttpMessageConverter
Create http converter from jstachio- Parameters:
 jstachio- an instance usually created by spring
 
 - 
 - 
Method Details
- 
canRead
- Specified by:
 canReadin interfaceHttpMessageConverter<Object>- Overrides:
 canReadin classAbstractHttpMessageConverter<Object>
 
 -