public class PropertiesFilterConfigurator extends PropertiesConfigurator
decoratorMappings
: A list of mappings of path patterns to decorators.
Each entry should consist of pattern=decorator, separated by whitespace or commas. If multiple decorators
are required, they should be delimited with a pipe | char (and no whitespace)
e.g. /admin/*=/decorators/admin.html, *.secret=/decorators/secret.html|/decorators/common.html
mimeTypes
(optional): A list of mime-types, separated by whitespace
or commas, that should attempt to be decorated. Defaults to text/html
.
tagRuleBundles
(optional): The names of any
additional TagRuleBundle
s to install, separated by whitespace or commas.
These will be added to the default bundles (as set up in
BaseSiteMeshBuilder.setupDefaults()
):
CoreHtmlTagRuleBundle
and
DecoratorTagRuleBundle
.
Note: The contentProcessor
and tagRuleBundles
are mutually exclusive
- you should not set them both.
contentProcessor
(optional): The name of the
ContentProcessor
to use.
Note: The contentProcessor
and tagRuleBundles
are mutually exclusive
- you should not set them both.
exclude
(optional): A list of path patterns to exclude from
decoration, separated by whitespace or commas. e.g. /javadoc/*, somepage.html, *.jsp
Where a name is used, this typically means the fully qualified class name, which must
have a default constructor. However, a custom ObjectFactory
implementation (passed into
the #ConfigPropertiesBuilder(org.sitemesh.config.ObjectFactory)
constructor may change the behavior of this
(e.g. to plug into a dependency injection framework).
Modifier and Type | Field and Description |
---|---|
static String |
DECORATOR_SELECTOR |
static String |
EXCLUDE_PARAM |
static String |
INCLUDE_ERROR_PAGES_PARAM |
static String |
MIME_TYPES_PARAM |
CONTENT_PROCESSOR_PARAM, DECORATOR_MAPPINGS_PARAM, TAG_RULE_BUNDLES_PARAM
Constructor and Description |
---|
PropertiesFilterConfigurator(ObjectFactory objectFactory,
Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
configureFilter(BaseSiteMeshFilterBuilder builder) |
configureCommon, getObjectFactory
public static final String EXCLUDE_PARAM
public static final String MIME_TYPES_PARAM
public static final String INCLUDE_ERROR_PAGES_PARAM
public static final String DECORATOR_SELECTOR
public PropertiesFilterConfigurator(ObjectFactory objectFactory, Map<String,String> properties)
public void configureFilter(BaseSiteMeshFilterBuilder builder)
Copyright © 2015. All Rights Reserved.