Class InlineDecoratorMapper
java.lang.Object
com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
com.opensymphony.module.sitemesh.mapper.InlineDecoratorMapper
- All Implemented Interfaces:
DecoratorMapper,RequestConstants
The InlineDecoratorMapper is used to determine the correct Decorator when using inline decorators.
It will check the request attribute value defined by the key
RequestConstants.DECORATOR and use the appropriate named Decorator. This is
passed across from the page:applyDecorator tag.
- Author:
- Joe Walnes
- See Also:
-
Field Summary
Fields inherited from class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
config, parentFields inherited from interface com.opensymphony.module.sitemesh.RequestConstants
DECORATOR, PAGE, ROBOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecorator(javax.servlet.http.HttpServletRequest request, Page page) Return appropriateDecoratorfor a certain Page.Methods inherited from class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
getNamedDecorator, init
-
Constructor Details
-
InlineDecoratorMapper
public InlineDecoratorMapper()
-
-
Method Details
-
getDecorator
Description copied from interface:DecoratorMapperReturn appropriateDecoratorfor a certain Page.The implementation can determine the result based on the actual request or the data of the parsed page. Typically this would call
getNamedDecorator()which would delegate to a parent DecoratorMapper.- Specified by:
getDecoratorin interfaceDecoratorMapper- Overrides:
getDecoratorin classAbstractDecoratorMapper- Parameters:
request- the requestpage- the page- Returns:
- the decorator
-