Package org.javalite.activeweb
Class HttpSupport.RenderBuilder
java.lang.Object
org.javalite.activeweb.HttpSupport.HttpBuilder
org.javalite.activeweb.HttpSupport.RenderBuilder
- Enclosing class:
- HttpSupport
-
Method Summary
Modifier and TypeMethodDescriptionSets a format for the current request.protected org.javalite.activeweb.RenderTemplateResponse
Use this method to override a default layout configured.noLayout()
Call this method to turn off all layouts.Methods inherited from class org.javalite.activeweb.HttpSupport.HttpBuilder
contentType, getControllerResponse, header, status, statusCode
-
Method Details
-
layout
Use this method to override a default layout configured.- Parameters:
layout
- name of another layout.- Returns:
- instance of RenderBuilder
-
getRenderTemplateResponse
protected org.javalite.activeweb.RenderTemplateResponse getRenderTemplateResponse() -
noLayout
Call this method to turn off all layouts. The view will be rendered raw - no layouts.- Returns:
- instance of RenderBuilder
-
format
Sets a format for the current request. This is a intermediate extension for the template file. For instance, if the name of template file is document.xml.ftl, then the "xml" part is set with this method, the "document" is a template name, and "ftl" extension is assumed in case you use FreeMarker template manager.- Parameters:
format
- template format- Returns:
- instance of RenderBuilder
-