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 processorproviding support for Thymeleaf templates.- Author:
- Dmytro Dovnar (dimonmc@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description ThymeleafViewProcessor(Configuration config, InjectionManager injectionManager)Create an instance of this processor with injectedconfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.thymeleaf.TemplateEngineresolve(String templatePath, Reader reader)voidwriteTo(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 Detail
-
ThymeleafViewProcessor
@Inject public ThymeleafViewProcessor(Configuration config, InjectionManager injectionManager)
Create an instance of this processor with injectedconfig.- Parameters:
config- config to configure this processor from.injectionManager- injection manager.
-
-
Method Detail
-
resolve
protected org.thymeleaf.TemplateEngine resolve(String templatePath, Reader reader) throws Exception
- 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
-
-