Class HttpSupport.RenderBuilder

java.lang.Object
org.javalite.activeweb.HttpSupport.HttpBuilder
org.javalite.activeweb.HttpSupport.RenderBuilder
Enclosing class:
HttpSupport

public class HttpSupport.RenderBuilder extends HttpSupport.HttpBuilder
  • Method Details

    • layout

      public HttpSupport.RenderBuilder layout(String 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

      public HttpSupport.RenderBuilder noLayout()
      Call this method to turn off all layouts. The view will be rendered raw - no layouts.
      Returns:
      instance of RenderBuilder
    • format

      public HttpSupport.RenderBuilder format(String 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