public class MetaTagBasedDecoratorSelector<C extends SiteMeshContext>extends PathBasedDecoratorSelector<C>
DecoratorSelector
implementation that selects a decorator based on the meta tag in the page header PathMapper
Constructor and Description |
---|
MetaTagBasedDecoratorSelector() |
Modifier and Type | Method and Description |
---|---|
MetaTagBasedDecoratorSelector | put(String contentPath, String... decoratorPaths) |
String[] | selectDecoratorPaths(Content content, C siteMeshContext) Implementations should never return null. |
getPathMapper
public MetaTagBasedDecoratorSelector put(String contentPath, String... decoratorPaths)
put
in class PathBasedDecoratorSelector<C extends SiteMeshContext>
public String[] selectDecoratorPaths(Content content, C siteMeshContext) throws IOException
DecoratorSelector
selectDecoratorPaths
in interface DecoratorSelector<C extends SiteMeshContext>
selectDecoratorPaths
in class PathBasedDecoratorSelector<C extends SiteMeshContext>
IOException
Copyright © 2014. All Rights Reserved.