Class ThymeleafViewProcessor
java.lang.Object
org.glassfish.jersey.server.mvc.spi.AbstractTemplateProcessor<org.thymeleaf.TemplateEngine>
org.glassfish.jersey.server.mvc.thymeleaf.ThymeleafViewProcessor
- All Implemented Interfaces:
TemplateProcessor<org.thymeleaf.TemplateEngine>
public final class ThymeleafViewProcessor
extends AbstractTemplateProcessor<org.thymeleaf.TemplateEngine>
Template processor providing support for Thymeleaf templates.- Author:
- Dmytro Dovnar (dimonmc@gmail.com)
-
Constructor Summary
ConstructorsConstructorDescriptionThymeleafViewProcessor(Configuration config, InjectionManager injectionManager) Create an instance of this processor with injectedconfig. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.thymeleaf.TemplateEnginevoidwriteTo(org.thymeleaf.TemplateEngine templateEngine, Viewable viewable, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream out) Methods inherited from class org.glassfish.jersey.server.mvc.spi.AbstractTemplateProcessor
getBasePath, getEncoding, getServletContext, getTemplateObjectFactory, resolve, setContentType
-
Constructor Details
-
ThymeleafViewProcessor
Create an instance of this processor with injectedconfig.- Parameters:
config- config to configure this processor from.injectionManager- injection manager.
-
-
Method Details
-
resolve
- Specified by:
resolvein classAbstractTemplateProcessor<org.thymeleaf.TemplateEngine>- Throws:
Exception
-
writeTo
public void writeTo(org.thymeleaf.TemplateEngine templateEngine, Viewable viewable, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream out) throws IOException- Throws:
IOException
-