Class GrailsLayoutDecoratorMapper

  • All Implemented Interfaces:
    com.opensymphony.module.sitemesh.DecoratorMapper

    public class GrailsLayoutDecoratorMapper
    extends com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
    Implements the SiteMesh decorator mapper interface and allows grails views to map to grails layouts.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LAYOUT_ATTRIBUTE  
      static java.lang.String NONE_LAYOUT  
      static java.lang.String RENDERING_VIEW  
      • Fields inherited from class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper

        config, parent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.opensymphony.module.sitemesh.Decorator getDecorator​(javax.servlet.http.HttpServletRequest request, com.opensymphony.module.sitemesh.Page page)  
      com.opensymphony.module.sitemesh.Decorator getNamedDecorator​(javax.servlet.http.HttpServletRequest request, java.lang.String name)  
      void init​(com.opensymphony.module.sitemesh.Config c, java.util.Properties properties, com.opensymphony.module.sitemesh.DecoratorMapper parentMapper)  
      • Methods inherited from class java.lang.Object

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

      • GrailsLayoutDecoratorMapper

        public GrailsLayoutDecoratorMapper()
    • Method Detail

      • init

        public void init​(com.opensymphony.module.sitemesh.Config c,
                         java.util.Properties properties,
                         com.opensymphony.module.sitemesh.DecoratorMapper parentMapper)
                  throws java.lang.InstantiationException
        Specified by:
        init in interface com.opensymphony.module.sitemesh.DecoratorMapper
        Overrides:
        init in class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
        Throws:
        java.lang.InstantiationException
      • getDecorator

        public com.opensymphony.module.sitemesh.Decorator getDecorator​(javax.servlet.http.HttpServletRequest request,
                                                                       com.opensymphony.module.sitemesh.Page page)
        Specified by:
        getDecorator in interface com.opensymphony.module.sitemesh.DecoratorMapper
        Overrides:
        getDecorator in class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
      • getNamedDecorator

        public com.opensymphony.module.sitemesh.Decorator getNamedDecorator​(javax.servlet.http.HttpServletRequest request,
                                                                            java.lang.String name)
        Specified by:
        getNamedDecorator in interface com.opensymphony.module.sitemesh.DecoratorMapper
        Overrides:
        getNamedDecorator in class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper