Interface WebTemplateWriter
-
- All Known Implementing Classes:
BeanWebTemplateWriter,LinkWebTemplateWriter,PropertyWebTemplateWriter,StaticWebTemplateWriter
public interface WebTemplateWriterInterface to write the template content toServerWriter.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(ServerWriter writer, boolean isDefaultCharset, java.lang.Object bean, ServerHttpConnection connection, java.lang.String templatePath)Writes the template content to theServerWriter.
-
-
-
Method Detail
-
write
void write(ServerWriter writer, boolean isDefaultCharset, java.lang.Object bean, ServerHttpConnection connection, java.lang.String templatePath) throws HttpException
Writes the template content to theServerWriter.- Parameters:
writer-ServerWriterto receive the template content.isDefaultCharset- Indicates if the defaultCharsetfor outputting the template is being used. While theCharsetmay be programmatically changed, it is expected in the majority of cases to be using the defaultCharsetconfigured for the template. This flag allows static content to be cached in bytes (using defaultCharset) for improved performance.bean- Bean to potentially obtain data. May benullif template contents does not require a bean.connection-ServerHttpConnection.templatePath- Current path for theWebTemplate. As the path may be dynamic (contain path parameters), this is the path to be used by links in rending of theWebTemplate.- Throws:
HttpException- If fails to write content.
-
-