de.deepamehta.plugins.webactivator.provider
Class ThymeleafViewProcessor
java.lang.Object
de.deepamehta.plugins.webactivator.provider.ThymeleafViewProcessor
- All Implemented Interfaces:
- com.sun.jersey.spi.template.ViewProcessor<String>
@Provider
public class ThymeleafViewProcessor
- extends Object
- implements com.sun.jersey.spi.template.ViewProcessor<String>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uriInfo
@Context
private javax.ws.rs.core.UriInfo uriInfo
logger
private Logger logger
ThymeleafViewProcessor
public ThymeleafViewProcessor()
resolve
public String resolve(String templateName)
- Specified by:
resolve
in interface com.sun.jersey.spi.template.ViewProcessor<String>
writeTo
public void writeTo(String templateName,
com.sun.jersey.api.view.Viewable viewable,
OutputStream out)
throws IOException
- Specified by:
writeTo
in interface com.sun.jersey.spi.template.ViewProcessor<String>
- Throws:
IOException
matchedPlugin
private WebActivatorPlugin matchedPlugin()
- Returns the plugin that matches the current request.
processTemplate
private void processTemplate(org.thymeleaf.TemplateEngine templateEngine,
String templateName,
org.thymeleaf.context.IContext context,
OutputStream out)
throws IOException
- Throws:
IOException
Copyright © 2015. All Rights Reserved.