Package org.grails.web.sitemesh
Class GrailsLayoutDecoratorMapper
- java.lang.Object
-
- com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
-
- org.grails.web.sitemesh.GrailsLayoutDecoratorMapper
-
- All Implemented Interfaces:
com.opensymphony.module.sitemesh.DecoratorMapper
public class GrailsLayoutDecoratorMapper extends com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapperImplements 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.StringLAYOUT_ATTRIBUTEstatic java.lang.StringNONE_LAYOUTstatic java.lang.StringRENDERING_VIEW
-
Constructor Summary
Constructors Constructor Description GrailsLayoutDecoratorMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.opensymphony.module.sitemesh.DecoratorgetDecorator(javax.servlet.http.HttpServletRequest request, com.opensymphony.module.sitemesh.Page page)com.opensymphony.module.sitemesh.DecoratorgetNamedDecorator(javax.servlet.http.HttpServletRequest request, java.lang.String name)voidinit(com.opensymphony.module.sitemesh.Config c, java.util.Properties properties, com.opensymphony.module.sitemesh.DecoratorMapper parentMapper)
-
-
-
Field Detail
-
LAYOUT_ATTRIBUTE
public static final java.lang.String LAYOUT_ATTRIBUTE
- See Also:
- Constant Field Values
-
NONE_LAYOUT
public static final java.lang.String NONE_LAYOUT
- See Also:
- Constant Field Values
-
RENDERING_VIEW
public static final java.lang.String RENDERING_VIEW
- See Also:
- Constant Field Values
-
-
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:
initin interfacecom.opensymphony.module.sitemesh.DecoratorMapper- Overrides:
initin classcom.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:
getDecoratorin interfacecom.opensymphony.module.sitemesh.DecoratorMapper- Overrides:
getDecoratorin classcom.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
-
getNamedDecorator
public com.opensymphony.module.sitemesh.Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request, java.lang.String name)- Specified by:
getNamedDecoratorin interfacecom.opensymphony.module.sitemesh.DecoratorMapper- Overrides:
getNamedDecoratorin classcom.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
-
-