de.deepamehta.plugins.webactivator.provider
Class ThymeleafViewProcessor

Show UML class diagram
java.lang.Object
  extended by 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>


Field Summary
private  Logger logger
           
private  javax.ws.rs.core.UriInfo uriInfo
           
 
Constructor Summary
ThymeleafViewProcessor()
           
 
Method Summary
private  WebActivatorPlugin matchedPlugin()
          Returns the plugin that matches the current request.
private  void processTemplate(org.thymeleaf.TemplateEngine templateEngine, String templateName, org.thymeleaf.context.IContext context, OutputStream out)
           
 String resolve(String templateName)
           
 void writeTo(String templateName, com.sun.jersey.api.view.Viewable viewable, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriInfo

@Context
private javax.ws.rs.core.UriInfo uriInfo

logger

private Logger logger
Constructor Detail

ThymeleafViewProcessor

public ThymeleafViewProcessor()
Method Detail

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.