Interface TemplateCall
- All Known Implementing Classes:
FreemarkerCall,ThymeleafCall
public interface TemplateCall
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Return this template nameprocess()Render the template to a StringvoidRender the template to a Writerjavax.ws.rs.core.Responseprocess(javax.ws.rs.core.Response.ResponseBuilder responseBuilder) Render the template as the entity for a ResponseBuilder, returning the built ResponseSets a variable which is then exposed to the view layerSets a number of variables which are then exposed to the view layer
-
Method Details
-
getName
String getName()Return this template name- Returns:
-
set
Sets a variable which is then exposed to the view layer- Parameters:
name-value-- Returns:
-
setAll
Sets a number of variables which are then exposed to the view layer- Parameters:
values-- Returns:
-
process
String process()Render the template to a String- Returns:
-
process
Render the template to a Writer -
process
javax.ws.rs.core.Response process(javax.ws.rs.core.Response.ResponseBuilder responseBuilder) Render the template as the entity for a ResponseBuilder, returning the built Response- Returns:
- the result of calling responseBuilder.
-