Class GrailsNoDecorator

java.lang.Object
com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
org.grails.web.sitemesh.GrailsNoDecorator
All Implemented Interfaces:
com.opensymphony.module.sitemesh.Decorator, com.opensymphony.sitemesh.Decorator

public class GrailsNoDecorator extends com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator implements com.opensymphony.module.sitemesh.Decorator
Grails version of Sitemesh's NoDecorator original version always calls response.setContentLength which would require the calculation of resulting bytes. Calculation would be extra overhead. bug exists for OutputStream / byte version: http://jira.opensymphony.com/browse/SIM-196 skip setting ContentLength because of that bug.
  • Constructor Details

    • GrailsNoDecorator

      public GrailsNoDecorator()
  • Method Details

    • render

      protected void render(com.opensymphony.sitemesh.Content content, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext webAppContext) throws IOException, jakarta.servlet.ServletException
      Specified by:
      render in class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getPage

      public String getPage()
      Specified by:
      getPage in interface com.opensymphony.module.sitemesh.Decorator
    • getName

      public String getName()
      Specified by:
      getName in interface com.opensymphony.module.sitemesh.Decorator
    • getURIPath

      public String getURIPath()
      Specified by:
      getURIPath in interface com.opensymphony.module.sitemesh.Decorator
    • getRole

      public String getRole()
      Specified by:
      getRole in interface com.opensymphony.module.sitemesh.Decorator
    • getInitParameter

      public String getInitParameter(String paramName)
      Specified by:
      getInitParameter in interface com.opensymphony.module.sitemesh.Decorator
    • getInitParameterNames

      public Iterator getInitParameterNames()
      Specified by:
      getInitParameterNames in interface com.opensymphony.module.sitemesh.Decorator