|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The DecoratorMapper is responsible for determining which
Decorator should be used for a
Page.
Implementations of this are returned by the Factory,
and should be thread-safe.
| Method Summary | |
Decorator |
getDecorator(HttpServletRequest request,
Page page)
Return appropriate Decorator for a certain Page. |
Decorator |
getNamedDecorator(HttpServletRequest request,
String name)
Return a Decorator with given name. |
void |
init(Config config,
Properties properties,
DecoratorMapper parent)
Initialize the mapper. |
| Method Detail |
public void init(Config config,
Properties properties,
DecoratorMapper parent)
throws InstantiationException
config - Config supplied by Servlet or Filter.properties - Any initialization properties (specific to implementation).
InstantiationException - should be thrown if the implementation
cannot be initialized properly.
public Decorator getDecorator(HttpServletRequest request,
Page page)
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.
public Decorator getNamedDecorator(HttpServletRequest request,
String name)
Decorator with given name.
|
www.opensymphony.com/sitemesh/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||