Class InlineDecoratorMapper

java.lang.Object
com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
com.opensymphony.module.sitemesh.mapper.InlineDecoratorMapper
All Implemented Interfaces:
DecoratorMapper, RequestConstants

public class InlineDecoratorMapper extends AbstractDecoratorMapper implements 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:
  • Constructor Details

    • InlineDecoratorMapper

      public InlineDecoratorMapper()
  • Method Details

    • getDecorator

      public Decorator getDecorator(javax.servlet.http.HttpServletRequest request, Page page)
      Description copied from interface: DecoratorMapper
      Return appropriate Decorator for 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:
      getDecorator in interface DecoratorMapper
      Overrides:
      getDecorator in class AbstractDecoratorMapper
      Parameters:
      request - the request
      page - the page
      Returns:
      the decorator