Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getInitParameter​(java.lang.String paramName)  
      java.util.Iterator getInitParameterNames()  
      java.lang.String getName()  
      java.lang.String getPage()  
      java.lang.String getRole()  
      java.lang.String getURIPath()  
      protected void render​(com.opensymphony.sitemesh.Content content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext webAppContext)  
      • Methods inherited from class com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator

        render
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrailsNoDecorator

        public GrailsNoDecorator()
    • Method Detail

      • render

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

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

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

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

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

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

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